openstackdocstheme 3.4.1__tar.gz → 3.6.0__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.
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/.pre-commit-config.yaml +5 -11
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/.zuul.yaml +19 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/AUTHORS +5 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/ChangeLog +29 -0
- openstackdocstheme-3.6.0/PKG-INFO +67 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/README.rst +4 -10
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/conf.py +0 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/bindep.txt +1 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/conf.py +0 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/index.rst +9 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/__init__.py +5 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/ext.py +39 -29
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/page_context.py +20 -15
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/paths.py +5 -5
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/css.html +0 -7
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/header.html +111 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/layout.html +7 -10
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/os_search.html +1 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/script_footer.html +1 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/search.html +6 -6
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/sidebartoc.html +7 -1
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/sidebartoc_menu.html +20 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/sidebartoc_menu_apiref.html +40 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/css/bootstrap.css +12057 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/css/bootstrap.css.map +1 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/css/bootstrap.min.css +6 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/css/bootstrap.min.css.map +1 -0
- {openstackdocstheme-3.4.1/openstackdocstheme/theme/starlingxdocs → openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs}/static/css/combined.css +25 -12
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/css/search.css +2 -2
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/js/bootstrap.bundle.min.js +7 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/js/bootstrap.bundle.min.js.map +1 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/js/bootstrap.js +4494 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/js/bootstrap.min.js +7 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/js/docs.js +13 -3
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/js/navigation.js +0 -17
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/theme.conf +2 -1
- openstackdocstheme-3.6.0/openstackdocstheme/theme/starlingxdocs/header.html +40 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/starlingxdocs/sidebartoc_menu.html +6 -0
- openstackdocstheme-3.6.0/openstackdocstheme/theme/starlingxdocs/sidebartoc_menu_apiref.html +10 -0
- {openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs → openstackdocstheme-3.6.0/openstackdocstheme/theme/starlingxdocs}/static/css/combined.css +25 -12
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/theme.conf +1 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/version.py +4 -2
- openstackdocstheme-3.6.0/openstackdocstheme.egg-info/PKG-INFO +67 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme.egg-info/SOURCES.txt +7 -0
- openstackdocstheme-3.6.0/openstackdocstheme.egg-info/pbr.json +1 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme.egg-info/requires.txt +2 -2
- openstackdocstheme-3.6.0/pyproject.toml +62 -0
- openstackdocstheme-3.6.0/releasenotes/notes/add-sidebar-search-0e62a9438dca8309.yaml +4 -0
- openstackdocstheme-3.6.0/releasenotes/notes/remove-py38-py39-3d46233c4a0a859a.yaml +5 -0
- openstackdocstheme-3.6.0/releasenotes/source/_templates/.placeholder +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/source/conf.py +0 -1
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/requirements.txt +1 -1
- openstackdocstheme-3.6.0/setup.cfg +7 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/tox.ini +14 -6
- openstackdocstheme-3.4.1/PKG-INFO +0 -69
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/header.html +0 -112
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/sidebartoc_menu.html +0 -20
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/sidebartoc_menu_apiref.html +0 -40
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/static/css/bootstrap.css +0 -6757
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/static/css/bootstrap.min.css +0 -6
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/static/js/bootstrap.js +0 -2377
- openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/static/js/bootstrap.min.js +0 -7
- openstackdocstheme-3.4.1/openstackdocstheme/theme/starlingxdocs/header.html +0 -51
- openstackdocstheme-3.4.1/openstackdocstheme/theme/starlingxdocs/sidebartoc_menu.html +0 -6
- openstackdocstheme-3.4.1/openstackdocstheme/theme/starlingxdocs/sidebartoc_menu_apiref.html +0 -10
- openstackdocstheme-3.4.1/openstackdocstheme.egg-info/PKG-INFO +0 -69
- openstackdocstheme-3.4.1/openstackdocstheme.egg-info/pbr.json +0 -1
- openstackdocstheme-3.4.1/pyproject.toml +0 -6
- openstackdocstheme-3.4.1/setup.cfg +0 -37
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/CONTRIBUTING.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/HACKING.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/LICENSE +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/Makefile +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/_static/css/README.md +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/image.inc +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/index.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/parameters.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/service.inc +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/status.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/api-ref/source/update-server-resp.json +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/bin/docstheme-build-pdf +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/bin/docstheme-build-translated.sh +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/bin/docstheme-lang-display-name.py +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/requirements.txt +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/_static/css/.placeholder +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/configure_access_and_security_for_instances.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/create_and_manage_databases.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/create_and_manage_networks.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/dashboard_demo.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/figures/dashboard-project-tab.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/figures/dashboard_admin_project_tab.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/figures/doc-logo-fox.jpg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/index.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/launch-instance.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/doc/source/demo/section_dashboard_access_and_security.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/index.rst +0 -0
- /openstackdocstheme-3.4.1/openstackdocstheme/theme/openstackdocs/static/fonts/.gitkeep → /openstackdocstheme-3.6.0/openstackdocstheme/py.typed +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/footer.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/license_cc.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/localtoc.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/os_search_install.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/os_search_mobile.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/script_search.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/css/font-awesome.css +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/css/font-awesome.min.css +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/favicon.ico +0 -0
- /openstackdocstheme-3.4.1/releasenotes/source/_static/.placeholder → /openstackdocstheme-3.6.0/openstackdocstheme/theme/openstackdocs/static/fonts/.gitkeep +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/FontAwesome.otf +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/fontawesome-webfont.eot +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/fontawesome-webfont.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/fontawesome-webfont.ttf +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/fontawesome-webfont.woff +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/fontawesome-webfont.woff2 +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/glyphicons-halflings-regular.eot +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/glyphicons-halflings-regular.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/glyphicons-halflings-regular.ttf +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/glyphicons-halflings-regular.woff +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/docs/license.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/docs/superuser1.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/docs/superuser2.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/docs/superuser3.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/docs/superuser4.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-facebook-hover.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-facebook.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-linkedin-hover.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-linkedin.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-twitter-hover.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-twitter.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-youtube-hover.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/footer-youtube.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/loading.gif +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/logo-full.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/logo-full.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/logo-vert.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/logo-vert.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/openstack-logo-full.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/openstack-logo-full.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/openstack-logo-vert.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/openstack-logo-vert.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/images/search-icon.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/js/jquery-3.2.1.js +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/static/js/jquery-3.2.1.min.js +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs/titlerow.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs_pdf/logo-full.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/openstackdocs_pdf/pdftheme.sty +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/footer.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/StarlingX_Logo_RGB_Horizontal_2color.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/StarlingX_Logo_RGB_Horizontal_2color.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/StarlingX_Logo_RGB_Stacked_2color.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/StarlingX_Logo_RGB_Stacked_2color.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/logo-full.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/logo-full.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/logo-vert.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/static/images/logo-vert.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/stx_search.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/stx_search_install.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/stx_search_mobile.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs/titlerow.html +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs_pdf/logo-full.png +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs_pdf/logo-full.svg +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme/theme/starlingxdocs_pdf/pdftheme.sty +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme.egg-info/dependency_links.txt +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme.egg-info/not-zip-safe +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/openstackdocstheme.egg-info/top_level.txt +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/add-openstackdocs_auto_name-option-efbd1cf9a171f079.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/add-openstackdocs_auto_version-option-fd03f20373eede39.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/add-reno-8da9bd3ccb7bbeab.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/add-starlingxdocs-10a33318f8630486.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/add-translations-9238b0f56b677a6b.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/allow-disabling-toc-in-body-d98d3a6e633fa28e.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/autoconfigure-settings-7083fdeeb121da89.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/badge-6f8713da36a7e570.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/bug-project-e9ff50f6149d2be1.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/bug-title-fdbefea0408e2cbf.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/bug_project-d26160cfe5324694.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/css-cleanup-7fb30a2d1208bb4d.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/custom-bug-link-ec64bdf9ce357d16.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/disable_analytics-45d98d6fab71d2b1.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/do-not-display-local-toc-title-without-subtitles-4e1fc48705d66289.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/doc-bug-template-7234e7f00e0ff599.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/double-backticks-not-red-5ce6dbc828221929.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/get_openstack_logo_path-6cdb6538bc5893c3.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/last-updated-via-git-245fb14be3770a19.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/latex_engine-cc35cb3a4ad2fa00.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/local-project-search-e6f00a84f2eed0a6.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/lp1516819-b4bb7b0f10004cef.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/merge-latex-options-242f10c932f0e6af.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/norelease-ccd7722c078a73a2.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/opendev-5c528b2b4c737d59.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/pdf-version-56c223128dff8357.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/pdf_link-c6b0ed36dd12b0ef.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/renamed-opts-bbf5d1390ed6ba71.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/side-bar-config-d7e66388e252cadf.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/sidebar-top-page-link-252532ddf42a5acf.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/sidebar_dropdown_apiref-993b4dba4c0369f6.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/sidebarlinks-db0a8463f32ab95d.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/source_date_epoch-1078730ca0b29a4e.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/storyboard-5f67da8941aec6ae.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/storyboard-string-643a47e957b64557.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/storyboard-url-cee60d9449ec2980.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/strip-html-tags-from-navigation-titles-929c92a339413015.yaml +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/notes/version-dropdown-1aa39974f524dd75.yaml +0 -0
- {openstackdocstheme-3.4.1/releasenotes/source/_templates → openstackdocstheme-3.6.0/releasenotes/source/_static}/.placeholder +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/source/current.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/source/historic.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/releasenotes/source/index.rst +0 -0
- {openstackdocstheme-3.4.1 → openstackdocstheme-3.6.0}/setup.py +0 -0
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
-
rev:
|
|
3
|
+
rev: v6.0.0
|
|
4
4
|
hooks:
|
|
5
5
|
- id: trailing-whitespace
|
|
6
|
-
# Replaces or checks mixed line ending
|
|
7
6
|
- id: mixed-line-ending
|
|
8
7
|
args: ['--fix', 'lf']
|
|
9
8
|
exclude: '.*\.(svg)$'
|
|
10
|
-
|
|
11
|
-
- id: check-byte-order-marker
|
|
12
|
-
# Checks that non-binary executables have a proper shebang
|
|
9
|
+
- id: fix-byte-order-marker
|
|
13
10
|
- id: check-executables-have-shebangs
|
|
14
|
-
# Check for files that contain merge conflict strings.
|
|
15
11
|
- id: check-merge-conflict
|
|
16
|
-
# Check for debugger imports and py37+ breakpoint()
|
|
17
|
-
# calls in python source
|
|
18
12
|
- id: debug-statements
|
|
19
13
|
- id: check-yaml
|
|
20
14
|
files: .*\.(yaml|yml)$
|
|
21
15
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
22
|
-
rev: v0.
|
|
16
|
+
rev: v0.14.13
|
|
23
17
|
hooks:
|
|
24
|
-
- id: ruff
|
|
18
|
+
- id: ruff-check
|
|
25
19
|
args: ['--fix']
|
|
26
20
|
- id: ruff-format
|
|
27
21
|
- repo: https://opendev.org/openstack/hacking
|
|
28
|
-
rev:
|
|
22
|
+
rev: 8.0.0
|
|
29
23
|
hooks:
|
|
30
24
|
- id: hacking
|
|
31
25
|
additional_dependencies: []
|
|
@@ -48,6 +48,24 @@
|
|
|
48
48
|
- openstack/python-octaviaclient
|
|
49
49
|
- openstack/openstackdocstheme
|
|
50
50
|
|
|
51
|
+
- job:
|
|
52
|
+
name: openstackdocstheme-api-ref-tips
|
|
53
|
+
parent: build-openstack-api-ref
|
|
54
|
+
description: |
|
|
55
|
+
Build api-ref documentation for openstackdocstheme with main branch of
|
|
56
|
+
os-api-ref. Takes advantage of the base tox job's install-siblings feature.
|
|
57
|
+
# The job only tests the latest and shouldn't be run on the stable branches
|
|
58
|
+
branches:
|
|
59
|
+
regex: ^stable/.*$
|
|
60
|
+
negate: true
|
|
61
|
+
required-projects:
|
|
62
|
+
- name: openstack/os-api-ref
|
|
63
|
+
vars:
|
|
64
|
+
# Set work dir to openstackdocstheme so that if it's triggered by one of
|
|
65
|
+
# the other repos the tests will run in the same place
|
|
66
|
+
zuul_work_dir: src/opendev.org/openstack/openstackdocstheme
|
|
67
|
+
|
|
68
|
+
|
|
51
69
|
- project:
|
|
52
70
|
templates:
|
|
53
71
|
- check-requirements
|
|
@@ -70,6 +88,7 @@
|
|
|
70
88
|
- openstackdocstheme-openstack-tox-docs-starlingxdocs
|
|
71
89
|
- openstackdocstheme-cross-nova-tox-docs
|
|
72
90
|
- openstackdocstheme-cross-octaviaclient-tox-docs
|
|
91
|
+
- openstackdocstheme-api-ref-tips
|
|
73
92
|
gate:
|
|
74
93
|
jobs:
|
|
75
94
|
- openstack-tox-pep8
|
|
@@ -7,6 +7,7 @@ Anne Gentle <agentle@cisco.com>
|
|
|
7
7
|
Anne Gentle <anne@openstack.org>
|
|
8
8
|
Anne Gentle <annegentle@justwriteclick.com>
|
|
9
9
|
Artem Goncharov <Artem.goncharov@gmail.com>
|
|
10
|
+
Artem Goncharov <artem.goncharov@gmail.com>
|
|
10
11
|
Bernd <berndbausch@gmail.com>
|
|
11
12
|
Bernd Bausch <berndbausch@gmail.com>
|
|
12
13
|
Bernhard M. Wiedemann <bwiedemann@suse.de>
|
|
@@ -26,6 +27,7 @@ Eric Fried <openstack@fried.cc>
|
|
|
26
27
|
Flavio Percoco <flaper87@gmail.com>
|
|
27
28
|
Frank Kloeker <f.kloeker@telekom.de>
|
|
28
29
|
Gauvain Pocentek <gauvain.pocentek@objectif-libre.com>
|
|
30
|
+
Ghanshyam Mann <gmann@ghanshyammann.com>
|
|
29
31
|
Graham Hayes <graham.hayes@hpe.com>
|
|
30
32
|
Hangdong Zhang <hdzhang@fiberhome.com>
|
|
31
33
|
Harshada Mangesh Kakad <harshadak@metsi.co.uk>
|
|
@@ -33,6 +35,7 @@ Hervé Beraud <hberaud@redhat.com>
|
|
|
33
35
|
Hunt Xu <mhuntxu@gmail.com>
|
|
34
36
|
Ian Y. Choi <ianyrchoi@gmail.com>
|
|
35
37
|
Ildiko Vancsa <ildiko.vancsa@gmail.com>
|
|
38
|
+
Ivan Anfimov <lazekteam@gmail.com>
|
|
36
39
|
Jacky Hu <hudayou@hotmail.com>
|
|
37
40
|
James E. Blair <jeblair@redhat.com>
|
|
38
41
|
Jeremy Stanley <fungi@yuggoth.org>
|
|
@@ -44,6 +47,7 @@ Luong Anh Tuan <tuanla@vn.fujitsu.com>
|
|
|
44
47
|
MCamp859 <maryx.camp@intel.com>
|
|
45
48
|
Major Hayden <major@mhtx.net>
|
|
46
49
|
Maksim Malchuk <maksim.malchuk@gmail.com>
|
|
50
|
+
Mehdi Nassim KHODJA <khodjamehdinassim@gmail.com>
|
|
47
51
|
Michael Johnson <johnsomor@gmail.com>
|
|
48
52
|
Nguyen Hung Phuong <phuongnh@vn.fujitsu.com>
|
|
49
53
|
Nick Chase <nchase@mirantis.com>
|
|
@@ -52,6 +56,7 @@ Peter Matulis <peter.matulis@canonical.com>
|
|
|
52
56
|
Peter Tran <pete.tran02@gmail.com>
|
|
53
57
|
Petr Kovar <pkovar@redhat.com>
|
|
54
58
|
Petronio Carlos Bezerra <petroniocg@lsd.ufcg.edu.br>
|
|
59
|
+
Pierre Riteau <pierre@stackhpc.com>
|
|
55
60
|
Rob Cresswell <robert.cresswell@outlook.com>
|
|
56
61
|
Ruby Loo <ruby.loo@intel.com>
|
|
57
62
|
Ryan Selden <ryanx.seldon@intel.com>
|
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
3.6.0
|
|
5
|
+
-----
|
|
6
|
+
|
|
7
|
+
* ruff: Configure hacking as external linter
|
|
8
|
+
* Replace obsolete PCRE packages
|
|
9
|
+
* README: Trivial nits
|
|
10
|
+
* Add typing
|
|
11
|
+
* Bump sphinx min version
|
|
12
|
+
* Enable more ruff rules
|
|
13
|
+
* pre-commit: Bump dependencies
|
|
14
|
+
* Migrate setup configuration to pyproject.toml
|
|
15
|
+
* Drop Python 3.9 support
|
|
16
|
+
* Replace deprecated datetime.utcfromtimestamp
|
|
17
|
+
* Remove tags from README
|
|
18
|
+
* Removed code for IE versions below 9 and fix few urls for use https
|
|
19
|
+
* refactor(js): remove unused jQuery code
|
|
20
|
+
* feat: add project-scoped search bar to sidebar
|
|
21
|
+
|
|
22
|
+
3.5.0
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
* fix: close form element in search.html
|
|
26
|
+
* Add libpcre3-dev in bindep.txt for pcre.h
|
|
27
|
+
* Use releases.openstack.org instead of opendev.org
|
|
28
|
+
* fix: search functionality in search.html
|
|
29
|
+
* tox: Drop envdir
|
|
30
|
+
|
|
4
31
|
3.4.1
|
|
5
32
|
-----
|
|
6
33
|
|
|
7
34
|
* fix support for py39
|
|
35
|
+
* Upgrade bootstrap to 5.3
|
|
8
36
|
|
|
9
37
|
3.4.0
|
|
10
38
|
-----
|
|
@@ -23,6 +51,7 @@ CHANGES
|
|
|
23
51
|
* Don't offer to show unmaintained versions
|
|
24
52
|
* Fix series selection and sorting
|
|
25
53
|
* Fix lack of the Yoga version in dropdown list
|
|
54
|
+
* Update analytics tracking ID
|
|
26
55
|
* zuul: Add tips job
|
|
27
56
|
|
|
28
57
|
3.2.0
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openstackdocstheme
|
|
3
|
+
Version: 3.6.0
|
|
4
|
+
Summary: OpenStack Docs Theme
|
|
5
|
+
Author-email: OpenStack <openstack-discuss@lists.openstack.org>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://docs.openstack.org/openstackdocstheme
|
|
8
|
+
Project-URL: Repository, https://opendev.org/openstack/openstackdocstheme
|
|
9
|
+
Classifier: Environment :: OpenStack
|
|
10
|
+
Classifier: Intended Audience :: Information Technology
|
|
11
|
+
Classifier: Intended Audience :: System Administrators
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Documentation
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/x-rst
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: pbr!=2.1.0,>=2.0.0
|
|
26
|
+
Requires-Dist: dulwich>=0.15.0
|
|
27
|
+
Requires-Dist: sphinx>=8.0.0
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
|
|
31
|
+
==========================================
|
|
32
|
+
Open Infrastructure Projects Sphinx Themes
|
|
33
|
+
==========================================
|
|
34
|
+
|
|
35
|
+
.. image:: https://governance.openstack.org/tc/badges/openstackdocstheme.svg
|
|
36
|
+
|
|
37
|
+
Theme and extension support for Sphinx documentation that is published by
|
|
38
|
+
Open Infrastructure Foundation projects.
|
|
39
|
+
|
|
40
|
+
OpenStack docs.openstack.org Sphinx Theme
|
|
41
|
+
-----------------------------------------
|
|
42
|
+
|
|
43
|
+
Theme support for Sphinx documentation that is published to
|
|
44
|
+
docs.openstack.org and developer.openstack.org.
|
|
45
|
+
|
|
46
|
+
Intended for use by OpenStack `projects governed by the Technical Committee`_.
|
|
47
|
+
|
|
48
|
+
.. _`projects governed by the Technical Committee`: https://governance.openstack.org/tc/reference/projects/index.html
|
|
49
|
+
|
|
50
|
+
StarlingX docs.starlingx.io Sphinx Theme
|
|
51
|
+
----------------------------------------
|
|
52
|
+
|
|
53
|
+
Theme support for Sphinx documentation that is published to
|
|
54
|
+
docs.starlingx.io.
|
|
55
|
+
|
|
56
|
+
Intended for use by StarlingX `projects governed by the Technical Steering Committee`_.
|
|
57
|
+
|
|
58
|
+
.. _`projects governed by the Technical Steering Committee`: https://docs.starlingx.io/governance/reference/projects/index.html
|
|
59
|
+
|
|
60
|
+
References
|
|
61
|
+
----------
|
|
62
|
+
|
|
63
|
+
* Free software: Apache License, Version 2.0
|
|
64
|
+
* Documentation: https://docs.openstack.org/openstackdocstheme/latest/
|
|
65
|
+
* Release notes: https://docs.openstack.org/releasenotes/openstackdocstheme/
|
|
66
|
+
* Source: https://opendev.org/openstack/openstackdocstheme
|
|
67
|
+
* Bugs: https://launchpad.net/openstack-doc-tools
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Team and repository tags
|
|
3
|
-
========================
|
|
4
|
-
|
|
5
|
-
.. image:: https://governance.openstack.org/tc/badges/openstackdocstheme.svg
|
|
6
|
-
:target: https://governance.openstack.org/tc/reference/tags/index.html
|
|
7
|
-
|
|
8
|
-
.. Change things from this point on
|
|
9
|
-
|
|
1
|
+
==========================================
|
|
10
2
|
Open Infrastructure Projects Sphinx Themes
|
|
11
3
|
==========================================
|
|
12
4
|
|
|
5
|
+
.. image:: https://governance.openstack.org/tc/badges/openstackdocstheme.svg
|
|
6
|
+
|
|
13
7
|
Theme and extension support for Sphinx documentation that is published by
|
|
14
8
|
Open Infrastructure Foundation projects.
|
|
15
9
|
|
|
@@ -24,7 +18,7 @@ Intended for use by OpenStack `projects governed by the Technical Committee`_.
|
|
|
24
18
|
.. _`projects governed by the Technical Committee`: https://governance.openstack.org/tc/reference/projects/index.html
|
|
25
19
|
|
|
26
20
|
StarlingX docs.starlingx.io Sphinx Theme
|
|
27
|
-
|
|
21
|
+
----------------------------------------
|
|
28
22
|
|
|
29
23
|
Theme support for Sphinx documentation that is published to
|
|
30
24
|
docs.starlingx.io.
|
|
@@ -170,6 +170,15 @@ navigation in the ``html_theme_options`` in the ``conf.py`` file::
|
|
|
170
170
|
# ...
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
The search bar in the sidebar is disabled by default. To enable it, set
|
|
174
|
+
the ``sidebar_search`` option to ``True`` for project-scoped search::
|
|
175
|
+
|
|
176
|
+
html_theme_options = {
|
|
177
|
+
# ...
|
|
178
|
+
"sidebar_search": True,
|
|
179
|
+
# ...
|
|
180
|
+
}
|
|
181
|
+
|
|
173
182
|
If you are using this theme for documentation you want to release based on git
|
|
174
183
|
tags on your repository, set the release dropdown menu option in the
|
|
175
184
|
``html_theme_options`` in the ``conf.py`` file. By default it is set to
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
# License for the specific language governing permissions and limitations
|
|
13
13
|
# under the License.
|
|
14
14
|
|
|
15
|
+
from typing import Any
|
|
16
|
+
|
|
17
|
+
from sphinx import application
|
|
18
|
+
|
|
15
19
|
from . import ext
|
|
16
20
|
from . import page_context
|
|
17
21
|
from .paths import * # noqa
|
|
@@ -21,7 +25,7 @@ from .version import version_info
|
|
|
21
25
|
__version__ = version_info.version_string()
|
|
22
26
|
|
|
23
27
|
|
|
24
|
-
def setup(app):
|
|
28
|
+
def setup(app: application.Sphinx) -> dict[str, Any]:
|
|
25
29
|
ext.setup(app)
|
|
26
30
|
page_context.setup(app)
|
|
27
31
|
return {
|
|
@@ -16,53 +16,58 @@ import configparser
|
|
|
16
16
|
import os
|
|
17
17
|
import subprocess
|
|
18
18
|
import textwrap
|
|
19
|
+
from typing import Any
|
|
19
20
|
|
|
21
|
+
from docutils import nodes
|
|
22
|
+
import dulwich.errors
|
|
20
23
|
import dulwich.repo
|
|
21
24
|
from pbr import packaging
|
|
25
|
+
from sphinx import application
|
|
26
|
+
from sphinx.config import Config
|
|
22
27
|
from sphinx.ext import extlinks
|
|
23
28
|
from sphinx.util import logging
|
|
24
29
|
|
|
25
30
|
from . import version
|
|
26
31
|
from openstackdocstheme import paths
|
|
27
32
|
|
|
28
|
-
_series = None
|
|
29
|
-
_project = None
|
|
33
|
+
_series: str | None = None
|
|
34
|
+
_project: str | None = None
|
|
30
35
|
_giturl = 'https://opendev.org/{}/src/{}'
|
|
31
|
-
_html_context_data = None
|
|
36
|
+
_html_context_data: dict[str, Any] | None = None
|
|
32
37
|
|
|
33
38
|
logger = logging.getLogger(__name__)
|
|
34
39
|
|
|
35
40
|
|
|
36
|
-
def _has_stable_branches():
|
|
41
|
+
def _has_stable_branches() -> bool:
|
|
37
42
|
try:
|
|
38
|
-
repo = dulwich.repo.Repo.discover()
|
|
39
|
-
except dulwich.
|
|
43
|
+
repo = dulwich.repo.Repo.discover() # type: ignore[no-untyped-call]
|
|
44
|
+
except dulwich.errors.NotGitRepository:
|
|
40
45
|
return False
|
|
41
46
|
|
|
42
47
|
refs = repo.get_refs()
|
|
43
|
-
for
|
|
44
|
-
ref =
|
|
48
|
+
for ref_bytes in refs.keys():
|
|
49
|
+
ref = ref_bytes.decode('utf-8')
|
|
45
50
|
if ref.startswith('refs/remotes/origin/stable'):
|
|
46
51
|
return True
|
|
47
52
|
|
|
48
53
|
return False
|
|
49
54
|
|
|
50
55
|
|
|
51
|
-
def _ref_sort_key(ref):
|
|
56
|
+
def _ref_sort_key(ref: str) -> str:
|
|
52
57
|
# note(frickler): make sure to sort series like 2023.1 after zed
|
|
53
58
|
if ref.startswith("2"):
|
|
54
59
|
return "zzz" + ref
|
|
55
60
|
return ref
|
|
56
61
|
|
|
57
62
|
|
|
58
|
-
def _get_other_versions(app):
|
|
63
|
+
def _get_other_versions(app: application.Sphinx) -> list[str]:
|
|
59
64
|
if not app.config.html_theme_options.get('show_other_versions', False):
|
|
60
65
|
return []
|
|
61
66
|
|
|
62
|
-
all_series = []
|
|
67
|
+
all_series: list[str] = []
|
|
63
68
|
try:
|
|
64
|
-
repo = dulwich.repo.Repo.discover()
|
|
65
|
-
except dulwich.
|
|
69
|
+
repo = dulwich.repo.Repo.discover() # type: ignore[no-untyped-call]
|
|
70
|
+
except dulwich.errors.NotGitRepository:
|
|
66
71
|
return []
|
|
67
72
|
|
|
68
73
|
refs = repo.get_refs()
|
|
@@ -101,7 +106,7 @@ def _get_other_versions(app):
|
|
|
101
106
|
return interesting_series
|
|
102
107
|
|
|
103
108
|
|
|
104
|
-
def _get_doc_path(app):
|
|
109
|
+
def _get_doc_path(app: application.Sphinx) -> str | None:
|
|
105
110
|
# Handle 'doc/{docType}/source' paths
|
|
106
111
|
doc_parts = os.path.abspath(app.srcdir).split(os.sep)[-3:]
|
|
107
112
|
if doc_parts[0] == 'doc' and doc_parts[2] == 'source':
|
|
@@ -115,10 +120,16 @@ def _get_doc_path(app):
|
|
|
115
120
|
logger.info(
|
|
116
121
|
"[openstackdocstheme] cannot identify project's root directory."
|
|
117
122
|
)
|
|
118
|
-
return
|
|
123
|
+
return None
|
|
119
124
|
|
|
120
125
|
|
|
121
|
-
def _html_page_context(
|
|
126
|
+
def _html_page_context(
|
|
127
|
+
app: application.Sphinx,
|
|
128
|
+
pagename: str,
|
|
129
|
+
templatename: str,
|
|
130
|
+
context: dict[str, Any],
|
|
131
|
+
doctree: nodes.document | None,
|
|
132
|
+
) -> None:
|
|
122
133
|
global _html_context_data
|
|
123
134
|
if _html_context_data is None:
|
|
124
135
|
logger.debug('[openstackdocstheme] building html context')
|
|
@@ -281,7 +292,7 @@ def _html_page_context(app, pagename, templatename, context, doctree):
|
|
|
281
292
|
)
|
|
282
293
|
|
|
283
294
|
|
|
284
|
-
def _get_series_name():
|
|
295
|
+
def _get_series_name() -> str:
|
|
285
296
|
"Return string name of release series, or 'latest'"
|
|
286
297
|
global _series
|
|
287
298
|
if _series is None:
|
|
@@ -316,13 +327,11 @@ def _get_series_name():
|
|
|
316
327
|
return _series
|
|
317
328
|
|
|
318
329
|
|
|
319
|
-
def _setup_link_roles(app):
|
|
330
|
+
def _setup_link_roles(app: application.Sphinx) -> None:
|
|
320
331
|
series = _get_series_name()
|
|
321
332
|
for project_name in app.config.openstackdocs_projects:
|
|
322
|
-
url = 'https://docs.openstack.org/{}/{}/%s'
|
|
323
|
-
|
|
324
|
-
)
|
|
325
|
-
role_name = '{}-doc'.format(project_name)
|
|
333
|
+
url = f'https://docs.openstack.org/{project_name}/{series}/%s'
|
|
334
|
+
role_name = f'{project_name}-doc'
|
|
326
335
|
logger.debug(
|
|
327
336
|
'[openstackdocstheme] adding role %s to link to %s',
|
|
328
337
|
role_name,
|
|
@@ -334,7 +343,7 @@ def _setup_link_roles(app):
|
|
|
334
343
|
app.add_role(role_name, role)
|
|
335
344
|
|
|
336
345
|
|
|
337
|
-
def _find_setup_cfg(srcdir):
|
|
346
|
+
def _find_setup_cfg(srcdir: str | os.PathLike[str]) -> str | None:
|
|
338
347
|
"""Find the 'setup.cfg' file, if it exists.
|
|
339
348
|
|
|
340
349
|
This assumes we're using 'doc/source' for documentation, but also allows
|
|
@@ -353,7 +362,7 @@ def _find_setup_cfg(srcdir):
|
|
|
353
362
|
return None
|
|
354
363
|
|
|
355
364
|
|
|
356
|
-
def _get_project_name(srcdir):
|
|
365
|
+
def _get_project_name(srcdir: str | os.PathLike[str]) -> str | None:
|
|
357
366
|
"""Return string name of project name, or None.
|
|
358
367
|
|
|
359
368
|
This assumes every project is using 'pbr' and, therefore, the metadata can
|
|
@@ -391,7 +400,7 @@ def _get_project_name(srcdir):
|
|
|
391
400
|
return _project
|
|
392
401
|
|
|
393
402
|
|
|
394
|
-
def _config_inited(app, config):
|
|
403
|
+
def _config_inited(app: application.Sphinx, config: Config) -> None:
|
|
395
404
|
if config.openstack_projects is not None:
|
|
396
405
|
logger.info(
|
|
397
406
|
"[openstackdocstheme] "
|
|
@@ -439,8 +448,9 @@ def _config_inited(app, config):
|
|
|
439
448
|
doc_parts = os.path.abspath(app.srcdir).split(os.sep)[-2:]
|
|
440
449
|
if doc_parts[0] in ('api-guide', 'api-ref', 'releasenotes'):
|
|
441
450
|
logger.debug(
|
|
442
|
-
|
|
443
|
-
|
|
451
|
+
'[openstackdocstheme] auto-versioning disabled (doc name '
|
|
452
|
+
'contains %s)',
|
|
453
|
+
doc_parts[0],
|
|
444
454
|
)
|
|
445
455
|
auto_version = False
|
|
446
456
|
else:
|
|
@@ -466,7 +476,7 @@ def _config_inited(app, config):
|
|
|
466
476
|
config.release = project_version
|
|
467
477
|
|
|
468
478
|
|
|
469
|
-
def _builder_inited(app):
|
|
479
|
+
def _builder_inited(app: application.Sphinx) -> None:
|
|
470
480
|
theme_dir = paths.get_html_theme_path()
|
|
471
481
|
logger.info('[openstackdocstheme] using theme from %s', theme_dir)
|
|
472
482
|
|
|
@@ -507,7 +517,7 @@ def _builder_inited(app):
|
|
|
507
517
|
app.config.latex_elements = latex_elements
|
|
508
518
|
|
|
509
519
|
|
|
510
|
-
def setup(app):
|
|
520
|
+
def setup(app: application.Sphinx) -> dict[str, Any]:
|
|
511
521
|
logger.info(
|
|
512
522
|
'[openstackdocstheme] version: %s',
|
|
513
523
|
version.version_info.version_string(),
|
|
@@ -15,8 +15,10 @@ import os
|
|
|
15
15
|
import os.path
|
|
16
16
|
import subprocess
|
|
17
17
|
import time
|
|
18
|
+
from typing import Any
|
|
18
19
|
|
|
19
|
-
import
|
|
20
|
+
from docutils import nodes
|
|
21
|
+
from sphinx import application
|
|
20
22
|
from sphinx.util import logging
|
|
21
23
|
|
|
22
24
|
from . import version
|
|
@@ -24,10 +26,12 @@ from . import version
|
|
|
24
26
|
LOG = logging.getLogger(__name__)
|
|
25
27
|
|
|
26
28
|
_timeint = int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
|
|
27
|
-
_default_last_updated = datetime.datetime.
|
|
29
|
+
_default_last_updated = datetime.datetime.fromtimestamp(
|
|
30
|
+
_timeint, tz=datetime.timezone.utc
|
|
31
|
+
).replace(tzinfo=None)
|
|
28
32
|
|
|
29
33
|
|
|
30
|
-
def _get_last_updated_file(src_file):
|
|
34
|
+
def _get_last_updated_file(src_file: str) -> datetime.datetime | None:
|
|
31
35
|
if not os.path.exists(src_file):
|
|
32
36
|
return None
|
|
33
37
|
try:
|
|
@@ -72,22 +76,17 @@ def _get_last_updated_file(src_file):
|
|
|
72
76
|
return None
|
|
73
77
|
|
|
74
78
|
|
|
75
|
-
def _get_last_updated(
|
|
79
|
+
def _get_last_updated(
|
|
80
|
+
app: application.Sphinx, pagename: str
|
|
81
|
+
) -> datetime.datetime:
|
|
76
82
|
last_updated = None
|
|
77
83
|
full_src_file = app.builder.env.doc2path(pagename)
|
|
78
84
|
|
|
79
|
-
candidates = []
|
|
85
|
+
candidates: list[str] = []
|
|
80
86
|
|
|
81
87
|
# Strip the prefix from the filename so the git command recognizes
|
|
82
88
|
# the file as part of the current repository.
|
|
83
|
-
|
|
84
|
-
# app.builder.env.srcdir is a string on py39
|
|
85
|
-
if sphinx.version_info >= (8, 0):
|
|
86
|
-
src_file = str(full_src_file.relative_to(app.builder.env.srcdir))
|
|
87
|
-
else: # Sphinx < 8.0
|
|
88
|
-
src_file = full_src_file[len(str(app.builder.env.srcdir)) :].lstrip(
|
|
89
|
-
'/'
|
|
90
|
-
)
|
|
89
|
+
src_file = str(full_src_file.relative_to(app.builder.env.srcdir))
|
|
91
90
|
candidates.append(src_file)
|
|
92
91
|
|
|
93
92
|
if not os.path.exists(src_file):
|
|
@@ -116,13 +115,19 @@ def _get_last_updated(app, pagename):
|
|
|
116
115
|
return _default_last_updated
|
|
117
116
|
|
|
118
117
|
|
|
119
|
-
def html_page_context(
|
|
118
|
+
def html_page_context(
|
|
119
|
+
app: application.Sphinx,
|
|
120
|
+
pagename: str,
|
|
121
|
+
templatename: str,
|
|
122
|
+
context: dict[str, Any],
|
|
123
|
+
doctree: nodes.document | None,
|
|
124
|
+
) -> None:
|
|
120
125
|
# Use the last modified date from git instead of applying a single
|
|
121
126
|
# value to the entire site.
|
|
122
127
|
context['last_updated'] = _get_last_updated(app, pagename)
|
|
123
128
|
|
|
124
129
|
|
|
125
|
-
def setup(app):
|
|
130
|
+
def setup(app: application.Sphinx) -> dict[str, Any]:
|
|
126
131
|
LOG.info('[openstackdocstheme] connecting html-page-context event handler')
|
|
127
132
|
app.connect('html-page-context', html_page_context)
|
|
128
133
|
return {
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
import os.path
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
def get_pkg_path():
|
|
18
|
+
def get_pkg_path() -> str:
|
|
19
19
|
return os.path.abspath(os.path.dirname(__file__))
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def get_html_theme_path():
|
|
22
|
+
def get_html_theme_path() -> str:
|
|
23
23
|
"""Return the directory containing HTML theme for local builds."""
|
|
24
24
|
return os.path.join(get_pkg_path(), 'theme')
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
def get_pdf_theme_path(theme='openstackdocs'):
|
|
27
|
+
def get_pdf_theme_path(theme: str = 'openstackdocs') -> str:
|
|
28
28
|
"""Return the directory containing PDF theme for local builds."""
|
|
29
29
|
args = ['theme', theme + '_pdf', 'pdftheme']
|
|
30
30
|
return os.path.join(get_pkg_path(), *args)
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def get_theme_logo_path(theme='openstackdocs'):
|
|
33
|
+
def get_theme_logo_path(theme: str = 'openstackdocs') -> str:
|
|
34
34
|
"""Return the directory containing theme logo for local builds."""
|
|
35
35
|
args = ['theme', theme + '_pdf', 'logo-full.png']
|
|
36
36
|
return os.path.join(get_pkg_path(), *args)
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
# This function is for compatibility with previous releases.
|
|
40
|
-
def get_openstack_logo_path():
|
|
40
|
+
def get_openstack_logo_path() -> str:
|
|
41
41
|
"""Return the directory containing OpenStack logo for local builds."""
|
|
42
42
|
return get_theme_logo_path('openstackdocs')
|
|
@@ -12,10 +12,3 @@
|
|
|
12
12
|
|
|
13
13
|
<!-- Pygments CSS -->
|
|
14
14
|
<link href="{{pathto('_static/pygments.css', 1)}}" rel="stylesheet">
|
|
15
|
-
|
|
16
|
-
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
17
|
-
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
18
|
-
<!--[if lt IE 9]>
|
|
19
|
-
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
20
|
-
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
21
|
-
<![endif]-->
|