Update documentation deps

This commit is contained in:
Victor Zverovich 2024-05-26 09:10:57 -07:00
parent 1752d7fbbb
commit 95076981f7
5 changed files with 29 additions and 17 deletions

6
doc/_static/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

6
doc/_static/popper.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,7 @@
<meta name="description" content="Small, safe and fast formatting library">
<meta name="keywords" content="C++, formatting, printf, string, library">
<meta name="author" content="Victor Zverovich">
<link href="bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="_static/fmt.css">
{# Google Analytics #}
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-20116650-4"></script>
@ -32,7 +33,7 @@
{%- endmacro %}
{% block header %}
<nav class="navbar navbar-inverse">
<nav class="navbar navbar-expand-lg" data-bs-theme="dark">
<div class="tb-container">
<div class="row">
<div class="navbar-content">
@ -84,20 +85,20 @@
<div class="tb-container">
<h1>{fmt}</h1>
<p class="lead">A modern formatting library</p>
<div class="btn-group" role="group">
<div class="btn-group">
{% set name = 'fmt' if version.split('.')[0]|int >= 3 else 'cppformat' %}
<a class="btn btn-success"
href="{{download_url}}/{{version}}/{{name}}-{{version}}.zip">
<span class="glyphicon glyphicon-download"></span> Download
</a>
<button type="button" class="btn btn-success dropdown-toggle"
data-toggle="dropdown"><span class="caret"></span></button>
<button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden"></span>
</button>
<ul class="dropdown-menu">
{% for v in versions.split(',') %}
{% set name = 'fmt' if v.split('.')[0]|int >= 3 else 'cppformat' %}
<li><a href="{{download_url}}/{{v}}/{{name}}-{{v}}.zip">Version {{v}}
</a></li>
{% endfor %}
{% for v in versions.split(',') %}
{% set name = 'fmt' if v.split('.')[0]|int >= 3 else 'cppformat' %}
<li><a class="dropdown-item" href="{{download_url}}/{{v}}/{{name}}-{{v}}.zip">Version {{v}}</a></li>
{% endfor %}
</ul>
</div>
</div>
@ -144,5 +145,6 @@
{% block footer %}
{{ super() }}
{# Placed at the end of the document so the pages load faster. #}
<script src="_static/popper.min.js"></script>
<script src="_static/bootstrap.min.js"></script>
{% endblock %}

View File

@ -33,11 +33,9 @@ def create_build_env(venv_dir='virtualenv'):
pip.install('six')
# See: https://github.com/sphinx-doc/sphinx/issues/9777
pip.install('docutils==0.17.1')
# Jinja2 >= 3.1 incompatible with sphinx 3.3.0
# See: https://github.com/sphinx-doc/sphinx/issues/10291
pip.install('Jinja2<3.1')
pip.install('sphinx==3.3.0')
pip.install('michaeljones/breathe', 'v4.25.0')
pip.install('Jinja2')
pip.install('sphinx==5.0.2')
pip.install('michaeljones/breathe', 'v4.35.0')
def build_docs(version='dev', **kwargs):
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))