Sphinx theme based on Intel's Design System
- Install the
intel_sphinx_theme
usingpip
:
pip install git+https://github.com/intel/intel-sphinx-theme
- Update the
html_theme
variable in yourconf.py
:
html_theme = 'intel_sphinx_theme'
To add a logo at the left of your navigation bar, use html_logo
variable to set the path to the logo file.
html_logo = <path to the logo file>
To enable a version and language selectors, add the following configuration to your conf.py
in html_context
:
html_context = {
'current_version': 'latest',
'current_language': 'en',
'languages': (('English', '/en/latest/'), ('Chinese', '/cn/latest/')),
'versions': (('latest', '/en/latest/'), ('2022.1', '/en/2022.1'))
}
You can add selectors only for versions or languages.
If you want to add version selector you must define both current_version
and versions
properties.
If you want to add version selector you must define both current_language
and languages
properties.
Create your feature branches, then create a PR to merge it into main. Apply the feedback, and wait for the approval, semantic-release is going to assign the correct version according to the commits.
- Erin Olmon erin.olmon@intel.com
- Agustín Francesa agustin.francesa.alfaro@intel.com