Fix code example in "HTML theming support" docs

- replaces invalid js-style comments with valid python
- shortens the comments so they don't need l10n
This commit is contained in:
nevimov 2016-04-26 17:07:37 +07:00
parent 68e8c974c5
commit 7ead796168

View File

@ -51,7 +51,7 @@ The third form provides your theme path dynamically to Sphinx if the
called ``sphinx_themes`` in your setup.py file and write a ``get_path`` function called ``sphinx_themes`` in your setup.py file and write a ``get_path`` function
that has to return the directory with themes in it:: that has to return the directory with themes in it::
// in your 'setup.py' # 'setup.py'
setup( setup(
... ...
@ -63,7 +63,7 @@ that has to return the directory with themes in it::
... ...
) )
// in 'your_package.py' # 'your_package.py'
from os import path from os import path
package_dir = path.abspath(path.dirname(__file__)) package_dir = path.abspath(path.dirname(__file__))