forked from wpilibsuite/frc-docs-translations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
26 lines (20 loc) · 701 Bytes
/
conf.py
File metadata and controls
26 lines (20 loc) · 701 Bytes
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
26
# BASEDIR is set by <lang>/conf.py
"""
Use "-D language=<LANG>" option to build a localized sphinx document.
For example::
sphinx-build -D language=ja -b html . _build/html
This conf.py does:
- Specify `locale_dirs` and `gettext_compact`.
- Overrides source directory as 'sphinx/doc/`.
"""
import os
from sphinx.util.pycompat import execfile_
BASEDIR = os.path.dirname(os.path.abspath(__file__))
execfile_(os.path.join(BASEDIR, 'frc-docs/source/conf.py'), globals())
locale_dirs = [os.path.join(BASEDIR, 'locale/')]
gettext_compact = False
setup_original = setup
def setup(app):
app.srcdir = os.path.join(BASEDIR, 'frc-docs/source/')
app.confdir = app.srcdir
setup_original(app)