Sphinx theme based on sphinx_press_theme.
Find a file
2020-06-10 13:34:49 +02:00
demo No more need of ABlog 2020-05-31 01:12:11 +02:00
docs Isso default language is current 2020-06-03 13:11:50 +02:00
sphinx_nervproject_theme Fix CSS vars 2020-06-10 13:34:49 +02:00
ui Fix CSS vars 2020-06-10 13:34:49 +02:00
.gitignore Initial release 2020-05-23 22:10:30 +02:00
AUTHORS Initial release 2020-05-23 22:10:30 +02:00
babel.cfg Initial release 2020-05-23 22:10:30 +02:00
CHANGES Fix CSS vars 2020-06-10 13:34:49 +02:00
LICENSE Initial release 2020-05-23 22:10:30 +02:00
LICENSE-de Initial release 2020-05-23 22:10:30 +02:00
LICENSE-fr Initial release 2020-05-23 22:10:30 +02:00
LICENSE-nl Initial release 2020-05-23 22:10:30 +02:00
README.rst Update description and state 2020-05-27 15:52:24 +02:00
requirements.txt Update requirements 2020-05-27 15:46:39 +02:00
setup.cfg Initial release 2020-05-23 22:10:30 +02:00
setup.py Fix CSS vars 2020-06-10 13:34:49 +02:00

Sphinx NervProject Theme
========================

A modern responsive theme for python's `Sphinx <http://www.sphinx-doc.org>`_ documentation generator based on
sphinx_press_theme and ablog.

This theme is based on `VuePress <https://vuepress.vuejs.org/>`_.
It uses `Vue.js <https://vuejs.org/>`_ and LessCSS managed by
`webpack <https://webpack.js.org>`_ through `vue-cli <https://cli.vuejs.org/>`_.


Usage
~~~~~

On Sphinx project's `conf.py`: set the theme name to `nervproject`.

.. code:: python

   html_theme = "nervproject"

See details on `Sphinx theming docs <http://www.sphinx-doc.org/en/master/theming.html#using-a-theme>`_.

Development
~~~~~~~~~~~

First build web assets:

.. code:: bash

   cd ui
   npm run build

Sphinx theme has a soft link to built assets...
Install theme locally with `pip install -e .`.

`docs` folder contains theme's own documentantion.

.. code:: bash

   cd docs
   make clean; make html

Website
~~~~~~~

To update website:

.. code:: bash

   cd ../press_site
   rsync -rvi ../sphinx_vuepress_theme/docs/build/html/ .
   git add --all

Compatibility
~~~~~~~~~~~~~

This theme needs CSS vars enabled in the browser, so
it doesn't work on IE. Four color variations are
available :

- light low contrast (default) ;
- light high contrast ;
- dark low contrast ;
- dark high contrast.

The good one is used based on prefers-contrast and
prefers-color-scheme media queries. This is automatically
done by a compatible browser. If not, the default theme
is used. Some browsers need manual configuration like
Chromium on Linux (a flag to enable for all websites).

Example
~~~~~~~

See the `Nerv Project's web site <https://www.nerv-project.eu>`_