This package should be used in all sphinx projects under the @deepmodeling organization.
- Add the DeepModeling banner
- Add the ICP number to the footer
- Minify HTML, Javascript, and CSS files
- Supports dark mode for both the banner and the RTD theme
Add deepmodeling_sphinx
to the requirements, as well as the extensions
of conf.py
:
extensions = [
'deepmodeling_sphinx',
]
Projects outside DeepModeling can also use this extension but disable DeepModeling specific styles.
# default: True
enable_deepmodeling = False
The following directive can be used to render list of authors from git shortlog
:
.. git-shortlog-authors::