958f9106dd
* canonical_root setting is the path to the root of the canonical sphinx doc, if not set no canonical link is generated, must end with "/" * canonical_branch defines the canonical branch to which to redirect, defaults to master also various side-fixes: * disabled permalinks in sphinx instead of hiding them via CSS * improved generation of github links, removed _app global and setting of linkcode_resolve in conf.py |
||
---|---|---|
.. | ||
static | ||
README.rst | ||
__init__.py | ||
github.py | ||
html_domain.py | ||
layout.html | ||
odoo_pygments.py | ||
sphinx_monkeypatch.py | ||
theme.conf |
README.rst
:orphan: Using the Odoo theme ==================== * copy the theme to one of your theme paths * in your ``conf.py``, - add the package as the ``html_theme`` in your ``conf.py``:: html_theme = 'odoodoc' - add the theme path to ``sys.path`` in your ``conf.py``:: sys.path.insert(0, os.path.abspath('./_themes')) - add the theme as an extension:: extensions = ['odoodoc'] Custom styling -------------- If you need to add custom/own styles, add a CSS to your static files, set it as ``html_style`` in your ``conf.py`` and add the following as its first line:: @import url(odoodoc.css)