f24df6a93c
The toggle button for the setup code in code examples of the webservice page was mistakenly inserted between the setup code and the "actual" code in the DOM. Trying to select the whole snippet (including setup) would thus also select the text of the button and copy it to the clipboard, breaking the copied code and confusing users. Fix DOM order so selecting setup and actual code does not include the text of the toggle button. |
||
---|---|---|
.. | ||
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)