blob: a2ce9a10b08a05b7d5b90f8028482a45140f10ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Old way until 1.6
# But this works only
import os
__version__ = '1.0.8'
def get_path():
return os.path.abspath(os.path.dirname(__file__))
def setup(app):
return {
'version': __version__,
'parallel_read_safe': True
}
# New way since sphinx 1.6
# Used for http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
# but not working.
# from os import path
# def setup(app):
# app.add_html_theme('groundwork', path.abspath(path.join(path.dirname(__file__), "groundwork")))
|