properdocs-theme-mkdocs 1.6.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- properdocs_theme_mkdocs-1.6.5/.gitignore +70 -0
- properdocs_theme_mkdocs-1.6.5/LICENSE +26 -0
- properdocs_theme_mkdocs-1.6.5/PKG-INFO +34 -0
- properdocs_theme_mkdocs-1.6.5/README.md +9 -0
- properdocs_theme_mkdocs-1.6.5/hatch_build.py +13 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/404.html +12 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/__init__.py +1 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/base.html +251 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/content.html +9 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/base.css +366 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/bootstrap.min.css +12 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/bootstrap.min.css.map +1 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/brands.min.css +6 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/fontawesome.min.css +9 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/solid.min.css +6 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/css/v4-font-face.min.css +6 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/img/favicon.ico +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/img/grid.png +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/js/base.js +287 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/js/bootstrap.bundle.min.js +7 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/js/bootstrap.bundle.min.js.map +1 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/js/darkmode.js +65 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/keyboard-modal.html +40 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/de/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/de/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/es/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/es/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/fa/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/fa/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/fr/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/fr/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/id/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/id/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/it/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/it/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/ja/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/ja/LC_MESSAGES/messages.po +100 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/nb/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/nb/LC_MESSAGES/messages.po +100 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/nl/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/nl/LC_MESSAGES/messages.po +101 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/nn/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/nn/LC_MESSAGES/messages.po +100 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/pl/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/pl/LC_MESSAGES/messages.po +103 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/pt_BR/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/pt_BR/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/ru/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/ru/LC_MESSAGES/messages.po +103 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/tr/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/tr/LC_MESSAGES/messages.po +102 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/uk/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/uk/LC_MESSAGES/messages.po +101 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/zh_CN/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/zh_CN/LC_MESSAGES/messages.po +101 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/zh_TW/LC_MESSAGES/messages.mo +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/locales/zh_TW/LC_MESSAGES/messages.po +100 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/main.html +10 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/messages.pot +101 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/mkdocs_theme.yml +28 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/nav-sub.html +14 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/search-modal.html +21 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/toc.html +26 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-brands-400.ttf +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-brands-400.woff2 +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-regular-400.ttf +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-regular-400.woff2 +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-solid-900.ttf +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-solid-900.woff2 +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-v4compatibility.ttf +0 -0
- properdocs_theme_mkdocs-1.6.5/properdocs_theme_mkdocs/webfonts/fa-v4compatibility.woff2 +0 -0
- properdocs_theme_mkdocs-1.6.5/pyproject.toml +54 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
node_modules/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
package*.json
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*,cover
|
|
48
|
+
.hypothesis/
|
|
49
|
+
|
|
50
|
+
# Translations
|
|
51
|
+
*.mo
|
|
52
|
+
|
|
53
|
+
# Scrapy stuff:
|
|
54
|
+
.scrapy
|
|
55
|
+
|
|
56
|
+
# PyBuilder
|
|
57
|
+
target/
|
|
58
|
+
|
|
59
|
+
# IPython Notebook
|
|
60
|
+
.ipynb_checkpoints
|
|
61
|
+
|
|
62
|
+
# pyenv
|
|
63
|
+
.python-version
|
|
64
|
+
|
|
65
|
+
# virtualenv
|
|
66
|
+
venv/
|
|
67
|
+
ENV/
|
|
68
|
+
|
|
69
|
+
# ProperDocs documentation
|
|
70
|
+
site*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Copyright © 2014-present, Tom Christie. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or
|
|
4
|
+
without modification, are permitted provided that the following
|
|
5
|
+
conditions are met:
|
|
6
|
+
|
|
7
|
+
Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
Redistributions in binary form must reproduce the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer in
|
|
11
|
+
the documentation and/or other materials provided with the
|
|
12
|
+
distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
15
|
+
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
16
|
+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
18
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
19
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
20
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
21
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
22
|
+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
23
|
+
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
24
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
25
|
+
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: properdocs-theme-mkdocs
|
|
3
|
+
Version: 1.6.5
|
|
4
|
+
Summary: 'mkdocs' theme for ProperDocs, originally made for MkDocs
|
|
5
|
+
Project-URL: Documentation, https://properdocs.org/
|
|
6
|
+
Project-URL: Source, https://github.com/properdocs/properdocs
|
|
7
|
+
Project-URL: Issues, https://github.com/properdocs/properdocs/issues
|
|
8
|
+
Author-email: Tom Christie <tom@tomchristie.com>
|
|
9
|
+
License-Expression: BSD-2-Clause
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: Web Environment
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Topic :: Documentation
|
|
20
|
+
Classifier: Topic :: Text Processing
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Requires-Dist: babel
|
|
23
|
+
Requires-Dist: properdocs
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# properdocs-theme-mkdocs
|
|
27
|
+
|
|
28
|
+
This package needs to be installed in order to use the "MkDocs" theme with the [ProperDocs](https://properdocs.org/) documentation generator:
|
|
29
|
+
|
|
30
|
+
pip install properdocs-theme-mkdocs
|
|
31
|
+
|
|
32
|
+
(See <https://properdocs.org/dev-guide/themes/>)
|
|
33
|
+
|
|
34
|
+
It originates as the "MkDocs" theme made for the [MkDocs](https://www.mkdocs.org/) documentation generator.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# properdocs-theme-mkdocs
|
|
2
|
+
|
|
3
|
+
This package needs to be installed in order to use the "MkDocs" theme with the [ProperDocs](https://properdocs.org/) documentation generator:
|
|
4
|
+
|
|
5
|
+
pip install properdocs-theme-mkdocs
|
|
6
|
+
|
|
7
|
+
(See <https://properdocs.org/dev-guide/themes/>)
|
|
8
|
+
|
|
9
|
+
It originates as the "MkDocs" theme made for the [MkDocs](https://www.mkdocs.org/) documentation generator.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CustomBuildHook(BuildHookInterface):
|
|
7
|
+
def initialize(self, version, build_data):
|
|
8
|
+
from babel.messages.frontend import compile_catalog
|
|
9
|
+
|
|
10
|
+
cmd = compile_catalog()
|
|
11
|
+
cmd.directory = os.path.join('properdocs_theme_mkdocs', 'locales')
|
|
12
|
+
cmd.finalize_options()
|
|
13
|
+
cmd.run()
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
|
|
3
|
+
{% block content %}
|
|
4
|
+
|
|
5
|
+
<div class="row-fluid">
|
|
6
|
+
<div id="main-content" class="span12">
|
|
7
|
+
<h1 id="404-page-not-found" style="text-align: center">404</h1>
|
|
8
|
+
<p style="text-align: center"><strong>{% trans %}Page not found{% endtrans %}</strong></p>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
{% endblock %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.6.5'
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="{{ config.theme.locale|default('en') }}" data-bs-theme="{{ config.theme.color_mode }}">
|
|
3
|
+
<head>
|
|
4
|
+
{%- block site_meta %}
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
+
{% if page and page.is_homepage %}<meta name="description" content="{{ config.site_description }}">{% endif %}
|
|
9
|
+
{% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
|
|
10
|
+
{% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
|
|
11
|
+
{% if config.site_favicon %}<link rel="shortcut icon" href="{{ config.site_favicon|url }}">
|
|
12
|
+
{% else %}<link rel="shortcut icon" href="{{ 'img/favicon.ico'|url }}">{% endif %}
|
|
13
|
+
{%- endblock %}
|
|
14
|
+
|
|
15
|
+
{%- block htmltitle %}
|
|
16
|
+
<title>{% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
|
|
17
|
+
{%- endblock %}
|
|
18
|
+
|
|
19
|
+
{%- block styles %}
|
|
20
|
+
<link href="{{ 'css/bootstrap.min.css'|url }}" rel="stylesheet">
|
|
21
|
+
<link href="{{ 'css/fontawesome.min.css'|url }}" rel="stylesheet">
|
|
22
|
+
<link href="{{ 'css/brands.min.css'|url }}" rel="stylesheet">
|
|
23
|
+
<link href="{{ 'css/solid.min.css'|url }}" rel="stylesheet">
|
|
24
|
+
<link href="{{ 'css/v4-font-face.min.css'|url }}" rel="stylesheet">
|
|
25
|
+
<link href="{{ 'css/base.css'|url }}" rel="stylesheet">
|
|
26
|
+
{%- if config.theme.highlightjs %}
|
|
27
|
+
<link id="hljs-light" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/{{ config.theme.hljs_style }}.min.css" {% if config.theme.color_mode != "light" %}disabled{% endif %}>
|
|
28
|
+
<link id="hljs-dark" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/{{ config.theme.hljs_style_dark }}.min.css" {% if config.theme.color_mode != "dark" %}disabled{% endif %}>
|
|
29
|
+
{%- endif %}
|
|
30
|
+
{%- for path in config.extra_css %}
|
|
31
|
+
<link href="{{ path|url }}" rel="stylesheet">
|
|
32
|
+
{%- endfor %}
|
|
33
|
+
{%- endblock %}
|
|
34
|
+
|
|
35
|
+
{%- block libs %}
|
|
36
|
+
{%- if config.theme.highlightjs %}
|
|
37
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
|
|
38
|
+
{%- for lang in config.theme.hljs_languages %}
|
|
39
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/{{lang}}.min.js"></script>
|
|
40
|
+
{%- endfor %}
|
|
41
|
+
<script>hljs.highlightAll();</script>
|
|
42
|
+
{%- endif %}
|
|
43
|
+
{%- endblock %}
|
|
44
|
+
|
|
45
|
+
{%- block analytics %}
|
|
46
|
+
{%- if config.theme.analytics.gtag %}
|
|
47
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.theme.analytics.gtag }}"></script>
|
|
48
|
+
<script>
|
|
49
|
+
window.dataLayer = window.dataLayer || [];
|
|
50
|
+
function gtag(){dataLayer.push(arguments);}
|
|
51
|
+
gtag('js', new Date());
|
|
52
|
+
|
|
53
|
+
gtag('config', {{ config.theme.analytics.gtag|tojson }});
|
|
54
|
+
</script>
|
|
55
|
+
{%- elif config.google_analytics %}
|
|
56
|
+
<script>
|
|
57
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
58
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
59
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
60
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
|
61
|
+
|
|
62
|
+
ga('create', {{ config.google_analytics[0]|tojson }}, {{ config.google_analytics[1]|tojson }});
|
|
63
|
+
ga('send', 'pageview');
|
|
64
|
+
</script>
|
|
65
|
+
{%- endif %}
|
|
66
|
+
{%- endblock %}
|
|
67
|
+
|
|
68
|
+
{%- block extrahead %} {% endblock %}
|
|
69
|
+
</head>
|
|
70
|
+
|
|
71
|
+
<body{% if page and page.is_homepage %} class="homepage"{% endif %}>
|
|
72
|
+
<div class="navbar fixed-top navbar-expand-lg navbar-{% if config.theme.nav_style == "light" %}light{% else %}dark{% endif %} bg-{{ config.theme.nav_style }}">
|
|
73
|
+
<div class="container">
|
|
74
|
+
|
|
75
|
+
{%- block site_name %}
|
|
76
|
+
<a class="navbar-brand" href="{{ nav.homepage.url|url }}">{{ config.site_name }}</a>
|
|
77
|
+
{%- endblock %}
|
|
78
|
+
|
|
79
|
+
{%- if nav|length>1 or (page and (page.next_page or page.previous_page)) or config.repo_url %}
|
|
80
|
+
<!-- Expander button -->
|
|
81
|
+
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbar-collapse" aria-controls="navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">
|
|
82
|
+
<span class="navbar-toggler-icon"></span>
|
|
83
|
+
</button>
|
|
84
|
+
{%- endif %}
|
|
85
|
+
|
|
86
|
+
<!-- Expanded navigation -->
|
|
87
|
+
<div id="navbar-collapse" class="navbar-collapse collapse">
|
|
88
|
+
{%- block site_nav %}
|
|
89
|
+
{%- if nav|length>1 %}
|
|
90
|
+
<!-- Main navigation -->
|
|
91
|
+
<ul class="nav navbar-nav">
|
|
92
|
+
{%- for nav_item in nav %}
|
|
93
|
+
{%- if nav_item.children %}
|
|
94
|
+
<li class="nav-item dropdown">
|
|
95
|
+
<a href="#" class="nav-link dropdown-toggle{% if nav_item.active %} active" aria-current="page{% endif %}" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ nav_item.title }}</a>
|
|
96
|
+
<ul class="dropdown-menu">
|
|
97
|
+
{%- for nav_item in nav_item.children %}
|
|
98
|
+
{% include "nav-sub.html" %}
|
|
99
|
+
{%- endfor %}
|
|
100
|
+
</ul>
|
|
101
|
+
</li>
|
|
102
|
+
{%- else %}
|
|
103
|
+
<li class="nav-item">
|
|
104
|
+
<a href="{{ nav_item.url|url }}" class="nav-link{% if nav_item.active %} active" aria-current="page{% endif %}">{{ nav_item.title }}</a>
|
|
105
|
+
</li>
|
|
106
|
+
{%- endif %}
|
|
107
|
+
{%- endfor %}
|
|
108
|
+
</ul>
|
|
109
|
+
{%- endif %}
|
|
110
|
+
{%- endblock %}
|
|
111
|
+
|
|
112
|
+
<ul class="nav navbar-nav ms-md-auto">
|
|
113
|
+
{%- block search_button %}
|
|
114
|
+
{%- if 'search' in config.plugins %}
|
|
115
|
+
<li class="nav-item">
|
|
116
|
+
<a href="#" class="nav-link" data-bs-toggle="modal" data-bs-target="#properdocs_search_modal">
|
|
117
|
+
<i class="fa fa-search"></i> {% trans %}Search{% endtrans %}
|
|
118
|
+
</a>
|
|
119
|
+
</li>
|
|
120
|
+
{%- endif %}
|
|
121
|
+
{%- endblock %}
|
|
122
|
+
|
|
123
|
+
{%- block next_prev %}
|
|
124
|
+
{%- if page and (page.next_page or page.previous_page) %}
|
|
125
|
+
<li class="nav-item">
|
|
126
|
+
<a rel="prev" {% if page.previous_page %}href="{{ page.previous_page.url|url }}" class="nav-link"{% else %}class="nav-link disabled"{% endif %}>
|
|
127
|
+
<i class="fa fa-arrow-left"></i> {% trans %}Previous{% endtrans %}
|
|
128
|
+
</a>
|
|
129
|
+
</li>
|
|
130
|
+
<li class="nav-item">
|
|
131
|
+
<a rel="next" {% if page.next_page %}href="{{ page.next_page.url|url }}" class="nav-link"{% else %}class="nav-link disabled"{% endif %}>
|
|
132
|
+
{% trans %}Next{% endtrans %} <i class="fa fa-arrow-right"></i>
|
|
133
|
+
</a>
|
|
134
|
+
</li>
|
|
135
|
+
{%- endif %}
|
|
136
|
+
{%- endblock %}
|
|
137
|
+
|
|
138
|
+
{%- block repo %}
|
|
139
|
+
{%- if page and page.edit_url %}
|
|
140
|
+
<li class="nav-item">
|
|
141
|
+
<a href="{{ page.edit_url }}" class="nav-link">
|
|
142
|
+
{%- if config.repo_name == 'GitHub' -%}
|
|
143
|
+
<i class="fa-brands fa-github"></i> {% trans repo_name=config.repo_name %}Edit on {{ repo_name }}{% endtrans %}
|
|
144
|
+
{%- elif config.repo_name == 'Bitbucket' -%}
|
|
145
|
+
<i class="fa-brands fa-bitbucket"></i> {% trans repo_name=config.repo_name %}Edit on {{ repo_name }}{% endtrans %}
|
|
146
|
+
{%- elif config.repo_name == 'GitLab' -%}
|
|
147
|
+
<i class="fa-brands fa-gitlab"></i> {% trans repo_name=config.repo_name %}Edit on {{ repo_name }}{% endtrans %}
|
|
148
|
+
{%- elif config.repo_name -%}
|
|
149
|
+
{% trans repo_name=config.repo_name%}Edit on {{ repo_name }}{% endtrans %}
|
|
150
|
+
{% else %}
|
|
151
|
+
{% trans repo_name=config.repo_name%}Edit{% endtrans %}
|
|
152
|
+
{%- endif -%}
|
|
153
|
+
</a>
|
|
154
|
+
</li>
|
|
155
|
+
{%- elif config.repo_url %}
|
|
156
|
+
<li class="nav-item">
|
|
157
|
+
<a href="{{ config.repo_url }}" class="nav-link">
|
|
158
|
+
{%- if config.repo_name == 'GitHub' -%}
|
|
159
|
+
<i class="fa-brands fa-github"></i> {{ config.repo_name }}
|
|
160
|
+
{%- elif config.repo_name == 'Bitbucket' -%}
|
|
161
|
+
<i class="fa-brands fa-bitbucket"></i> {{ config.repo_name }}
|
|
162
|
+
{%- elif config.repo_name == 'GitLab' -%}
|
|
163
|
+
<i class="fa-brands fa-gitlab"></i> {{ config.repo_name }}
|
|
164
|
+
{%- else -%}
|
|
165
|
+
{{ config.repo_name }}
|
|
166
|
+
{%- endif -%}
|
|
167
|
+
</a>
|
|
168
|
+
</li>
|
|
169
|
+
{%- endif %}
|
|
170
|
+
{%- endblock %}
|
|
171
|
+
{%- if config.theme.user_color_mode_toggle %}
|
|
172
|
+
<li class="nav-item dropdown">
|
|
173
|
+
<button id="theme-menu" aria-expanded="false" data-bs-toggle="dropdown" data-bs-display="static" aria-label="Toggle theme" class="nav-link dropdown-toggle">
|
|
174
|
+
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
|
|
175
|
+
<span class="d-lg-none ms-2">Toggle theme</span>
|
|
176
|
+
</button>
|
|
177
|
+
<ul class="dropdown-menu dropdown-menu-end">
|
|
178
|
+
<li>
|
|
179
|
+
<button class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="{% if config.theme.color_mode == 'light' %}true{% else %}false{% endif %}">
|
|
180
|
+
<i class="fa-solid fa-sun fa-fw"></i>
|
|
181
|
+
<span class="ms-2">Light</span>
|
|
182
|
+
<i class="fa-solid fa-check ms-auto{% if config.theme.color_mode != 'light' %} d-none{% endif %}"></i>
|
|
183
|
+
</button>
|
|
184
|
+
</li>
|
|
185
|
+
<li>
|
|
186
|
+
<button class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="{% if config.theme.color_mode == 'dark' %}true{% else %}false{% endif %}">
|
|
187
|
+
<i class="fa-solid fa-moon fa-fw"></i>
|
|
188
|
+
<span class="ms-2">Dark</span>
|
|
189
|
+
<i class="fa-solid fa-check ms-auto{% if config.theme.color_mode != 'dark' %} d-none{% endif %}"></i>
|
|
190
|
+
</button>
|
|
191
|
+
</li>
|
|
192
|
+
<li>
|
|
193
|
+
<button class="dropdown-item d-flex align-items-center" data-bs-theme-value="auto" aria-pressed="{% if config.theme.color_mode == 'auto' %}true{% else %}false{% endif %}">
|
|
194
|
+
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
|
|
195
|
+
<span class="ms-2">Auto</span>
|
|
196
|
+
<i class="fa-solid fa-check ms-auto{% if config.theme.color_mode != 'auto' %} d-none{% endif %}"></i>
|
|
197
|
+
</button>
|
|
198
|
+
</li>
|
|
199
|
+
</ul>
|
|
200
|
+
</li>
|
|
201
|
+
{%- endif %}
|
|
202
|
+
</ul>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
{%- if config.theme.color_mode != "light" or config.theme.user_color_mode_toggle %}
|
|
207
|
+
<script src="{{ 'js/darkmode.js'|url }}"></script>
|
|
208
|
+
{%- endif %}
|
|
209
|
+
|
|
210
|
+
<div class="container">
|
|
211
|
+
<div class="row">
|
|
212
|
+
{%- block content %}
|
|
213
|
+
<div class="col-md-3">{% include "toc.html" %}</div>
|
|
214
|
+
<div class="col-md-9" role="main">{% include "content.html" %}</div>
|
|
215
|
+
{%- endblock %}
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
<footer class="col-md-12">
|
|
220
|
+
{%- block footer %}
|
|
221
|
+
<hr>
|
|
222
|
+
{%- if config.copyright %}
|
|
223
|
+
<p>{{ config.copyright }}</p>
|
|
224
|
+
{%- endif %}
|
|
225
|
+
<p>{% trans properdocs_link='<a href="https://properdocs.org/">ProperDocs</a>' %}Documentation built with {{ properdocs_link }}.{% endtrans %}</p>
|
|
226
|
+
{%- endblock %}
|
|
227
|
+
</footer>
|
|
228
|
+
|
|
229
|
+
{%- block scripts %}
|
|
230
|
+
<script src="{{ 'js/bootstrap.bundle.min.js'|url }}"></script>
|
|
231
|
+
<script>
|
|
232
|
+
var base_url = {{ base_url|tojson }},
|
|
233
|
+
shortcuts = {{ config.theme.shortcuts|tojson }};
|
|
234
|
+
</script>
|
|
235
|
+
<script src="{{ 'js/base.js'|url }}"></script>
|
|
236
|
+
{%- for script in config.extra_javascript %}
|
|
237
|
+
{{ script|script_tag }}
|
|
238
|
+
{%- endfor %}
|
|
239
|
+
{%- endblock %}
|
|
240
|
+
|
|
241
|
+
{% if 'search' in config.plugins %}{%- include "search-modal.html" %}{% endif %}
|
|
242
|
+
{%- include "keyboard-modal.html" %}
|
|
243
|
+
|
|
244
|
+
</body>
|
|
245
|
+
</html>
|
|
246
|
+
{% if page and page.is_homepage %}
|
|
247
|
+
<!--
|
|
248
|
+
ProperDocs version : {{ mkdocs_version }}
|
|
249
|
+
Build Date UTC : {{ build_date_utc }}
|
|
250
|
+
-->
|
|
251
|
+
{% endif %}
|