Name | sphinx-nefertiti JSON |
Version |
0.7.3
JSON |
| download |
home_page | None |
Summary | The Nefertiti for Sphinx theme. |
upload_time | 2024-12-04 11:39:40 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Nefertiti for Sphinx [](https://github.com/danirus/sphinx-nefertiti/actions/workflows/tests.yml)
Nefertiti is a theme for [Sphinx](https://www.sphinx-doc.org/en/master/) that features:
* Responsive design, based on [Bootstrap 5.3](https://getbootstrap.com/docs/5.3).
* Text input field to filter the **index**.
* Font configuration compliant with [EU's GDPR](https://gdpr.eu/).
* Different fonts can be used for different elements.
* Light and dark color schemes, for normal text and code highlighted with Pygments styles.
* Images that switch between color schemes. Released as [sphinx-colorschemed-images](https://pypi.org/project/sphinx-colorschemed-images/).
* Diverse color sets are available: blue, indigo, purple, pink, red, orange, yellow, ...
* Header and footer links. Header links can be grouped in dropdown elements.
* Optional highlighting of the project repository in the header.
* Optional project version selector in the header.
* Back-to-top button.
See it in action in [sphinx-themes.org](https://sphinx-themes.org/#theme-sphinx-nefertiti).
## Tested
* [Tested against Sphinx 7.3, 7.4, 8.0 and 8.1](https://github.com/danirus/sphinx-nefertiti/actions/workflows/tests.yml), see matrix python-sphinx.
* [Tested with NodeJS v20](https://github.com/danirus/sphinx-nefertiti/actions/workflows/tests.yml), see javascript-tests.
## Index filtering
<p align="center"><img align="center" width="315" height="417" src="https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/index-filtering-1.png"></p>
By default the **index** shows the content folded. Opening or closing items is remembered while browsing the documentation. To quickly find items use the input filter. The filter will display items that could be invisible within a folded item. When the user types in the input field, let us say `fo`, the index gets filtered with all the entries that match those two characters. So the index will display three matches: `Fonts`, `Footer links` and `Footnotes`. Those three entries were all folded within their sections:
<p align="center"><img align="center" width="315" height="333" src="https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/index-filtering-2.png"></p>
## The TOC on the right side
The Table of Contents, displayed on the right side, spans itself to the right border of the browser to display long items, improving readability.
<p align="center"><img width="412" height="306" src="https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/toc.png"></p>
## Other features
Nefertiti for Sphinx comes with the following color sets. Change between them using the attribute `display` of the `html_theme_options` setting.
<p align="center"><img width="768" height="462" src="https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/colorsets.png"></p>
In order to be compliant with [EU's GDPR](https://gdpr.eu/), Nefertiti for Sphinx comes bundled with a group of fonts licensed for free distribution. Adding more fonts is explained in the [User's Guide](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/customization/fonts.html#adding-fonts):
* Assistant
* Exo
* Montserrat
* Mulish
* Nunito
* Open Sans
* Red Hat Display
* Sofia Sans
* Ubuntu
* Varta
* Work Sans
* Fira Code (monospace)
* Red Hat Mono (monospace)
* Ubuntu Mono (monospace)
Combine up to 5 different fonts:
html_theme_options = {
"sans_serif_font": "Nunito",
"documentation_font": "Open Sans",
"monospace_font": "Ubuntu Mono",
"project_name_font": "Nunito",
"doc_headers_font": "Georgia",
"documentation_font_size": "1.2rem",
"monospace_font_size": "1.1rem",
}
## To use it
Install the package from PyPI:
```shell
pip install sphinx-nefertiti
```
Edit the `conf.py` file of your Sphinx project and change the `html_theme` setting:
```python
html_theme = "sphinx_nefertiti"
```
Now rebuild the docs and serve them to get a first glimpse of your site made up with Nefertiti for Sphinx. It has many customizable options worth to explore. You might want to continue reading the [customization](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/customization/index.html) section of the docs.
## To develop it
Clone the Git repository, create a Python virtual environment, and install the NodeJS packages:
```shell
git clone git@github.com:danirus/sphinx-nefertiti.git
cd sphinx-nefertiti
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt
nvm use --lts
npm install
```
Before contributing, please, install the pre-commit hook scripts:
```shell
pre-commit install
```
There are a comprehensive number of scripts in the package.json. Beyond them there is a Makefile that saves time when building the CSS and JavaScript bundles to deliver them within the Python package of the theme.
Further read the following sections:
* For [Style development](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/development.html#style-development)
* For [JavaScript development](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/development.html#javascript-development)
* For [Sphinx theme development](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/development.html##python-development)
## License
Project distributed under the MIT License.
Raw data
{
"_id": null,
"home_page": null,
"name": "sphinx-nefertiti",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Daniela Rus Morales <danirus@eml.cc>",
"download_url": "https://files.pythonhosted.org/packages/77/c8/0b22b59cb8fa5c6c1c9e55d66f380be809813a26e74753365cdf21784c73/sphinx_nefertiti-0.7.3.tar.gz",
"platform": null,
"description": "# Nefertiti for Sphinx [](https://github.com/danirus/sphinx-nefertiti/actions/workflows/tests.yml)\n\nNefertiti is a theme for [Sphinx](https://www.sphinx-doc.org/en/master/) that features:\n\n* Responsive design, based on [Bootstrap 5.3](https://getbootstrap.com/docs/5.3).\n* Text input field to filter the **index**.\n* Font configuration compliant with [EU's GDPR](https://gdpr.eu/).\n* Different fonts can be used for different elements.\n* Light and dark color schemes, for normal text and code highlighted with Pygments styles.\n* Images that switch between color schemes. Released as [sphinx-colorschemed-images](https://pypi.org/project/sphinx-colorschemed-images/).\n* Diverse color sets are available: blue, indigo, purple, pink, red, orange, yellow, ...\n* Header and footer links. Header links can be grouped in dropdown elements.\n* Optional highlighting of the project repository in the header.\n* Optional project version selector in the header.\n* Back-to-top button.\n\nSee it in action in [sphinx-themes.org](https://sphinx-themes.org/#theme-sphinx-nefertiti).\n\n## Tested\n\n* [Tested against Sphinx 7.3, 7.4, 8.0 and 8.1](https://github.com/danirus/sphinx-nefertiti/actions/workflows/tests.yml), see matrix python-sphinx.\n* [Tested with NodeJS v20](https://github.com/danirus/sphinx-nefertiti/actions/workflows/tests.yml), see javascript-tests.\n\n## Index filtering\n\n<p align=\"center\"><img align=\"center\" width=\"315\" height=\"417\" src=\"https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/index-filtering-1.png\"></p>\n\nBy default the **index** shows the content folded. Opening or closing items is remembered while browsing the documentation. To quickly find items use the input filter. The filter will display items that could be invisible within a folded item. When the user types in the input field, let us say `fo`, the index gets filtered with all the entries that match those two characters. So the index will display three matches: `Fonts`, `Footer links` and `Footnotes`. Those three entries were all folded within their sections:\n\n<p align=\"center\"><img align=\"center\" width=\"315\" height=\"333\" src=\"https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/index-filtering-2.png\"></p>\n\n\n## The TOC on the right side\n\nThe Table of Contents, displayed on the right side, spans itself to the right border of the browser to display long items, improving readability.\n\n<p align=\"center\"><img width=\"412\" height=\"306\" src=\"https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/toc.png\"></p>\n\n## Other features\n\nNefertiti for Sphinx comes with the following color sets. Change between them using the attribute `display` of the `html_theme_options` setting.\n\n<p align=\"center\"><img width=\"768\" height=\"462\" src=\"https://github.com/danirus/sphinx-nefertiti/raw/main/docs/source/static/img/colorsets.png\"></p>\n\nIn order to be compliant with [EU's GDPR](https://gdpr.eu/), Nefertiti for Sphinx comes bundled with a group of fonts licensed for free distribution. Adding more fonts is explained in the [User's Guide](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/customization/fonts.html#adding-fonts):\n\n* Assistant\n* Exo\n* Montserrat\n* Mulish\n* Nunito\n* Open Sans\n* Red Hat Display\n* Sofia Sans\n* Ubuntu\n* Varta\n* Work Sans\n* Fira Code (monospace)\n* Red Hat Mono (monospace)\n* Ubuntu Mono (monospace)\n\nCombine up to 5 different fonts:\n\n html_theme_options = {\n \"sans_serif_font\": \"Nunito\",\n \"documentation_font\": \"Open Sans\",\n \"monospace_font\": \"Ubuntu Mono\",\n \"project_name_font\": \"Nunito\",\n \"doc_headers_font\": \"Georgia\",\n\n \"documentation_font_size\": \"1.2rem\",\n \"monospace_font_size\": \"1.1rem\",\n }\n\n## To use it\n\nInstall the package from PyPI:\n\n```shell\npip install sphinx-nefertiti\n```\n\nEdit the `conf.py` file of your Sphinx project and change the `html_theme` setting:\n\n```python\nhtml_theme = \"sphinx_nefertiti\"\n```\n\nNow rebuild the docs and serve them to get a first glimpse of your site made up with Nefertiti for Sphinx. It has many customizable options worth to explore. You might want to continue reading the [customization](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/customization/index.html) section of the docs.\n\n## To develop it\n\nClone the Git repository, create a Python virtual environment, and install the NodeJS packages:\n\n```shell\ngit clone git@github.com:danirus/sphinx-nefertiti.git\ncd sphinx-nefertiti\npython3.12 -m venv venv\nsource venv/bin/activate\npip install -r requirements-dev.txt\nnvm use --lts\nnpm install\n```\n\nBefore contributing, please, install the pre-commit hook scripts:\n\n```shell\npre-commit install\n```\n\nThere are a comprehensive number of scripts in the package.json. Beyond them there is a Makefile that saves time when building the CSS and JavaScript bundles to deliver them within the Python package of the theme.\n\nFurther read the following sections:\n\n * For [Style development](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/development.html#style-development)\n * For [JavaScript development](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/development.html#javascript-development)\n * For [Sphinx theme development](https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/development.html##python-development)\n\n\n## License\n\nProject distributed under the MIT License.\n",
"bugtrack_url": null,
"license": null,
"summary": "The Nefertiti for Sphinx theme.",
"version": "0.7.3",
"project_urls": {
"Documentation": "https://sphinx-nefertiti.readthedocs.io",
"Homepage": "https://github.com/danirus/sphinx-nefertiti"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "610fab1d52e801276b78fcceff317e9971003a22bd7d02dcba8d547da1af7d1c",
"md5": "00403efd8840fec6cd960c2b009ab949",
"sha256": "84636976a35562634b4111519efd4a453554551a8ecb874545cb4312aa8e1a3b"
},
"downloads": -1,
"filename": "sphinx_nefertiti-0.7.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00403efd8840fec6cd960c2b009ab949",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4045401,
"upload_time": "2024-12-04T11:39:38",
"upload_time_iso_8601": "2024-12-04T11:39:38.528088Z",
"url": "https://files.pythonhosted.org/packages/61/0f/ab1d52e801276b78fcceff317e9971003a22bd7d02dcba8d547da1af7d1c/sphinx_nefertiti-0.7.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "77c80b22b59cb8fa5c6c1c9e55d66f380be809813a26e74753365cdf21784c73",
"md5": "135d7bbfbe478a3a7edfd748695247f1",
"sha256": "17b58a392d15d70c77f8a069312a13a0c3e29de158e39a8ec3532bd22b2d69a4"
},
"downloads": -1,
"filename": "sphinx_nefertiti-0.7.3.tar.gz",
"has_sig": false,
"md5_digest": "135d7bbfbe478a3a7edfd748695247f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 4035753,
"upload_time": "2024-12-04T11:39:40",
"upload_time_iso_8601": "2024-12-04T11:39:40.138370Z",
"url": "https://files.pythonhosted.org/packages/77/c8/0b22b59cb8fa5c6c1c9e55d66f380be809813a26e74753365cdf21784c73/sphinx_nefertiti-0.7.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-04 11:39:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "danirus",
"github_project": "sphinx-nefertiti",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "sphinx-nefertiti"
}