-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
31 lines (22 loc) · 831 Bytes
/
conf.py
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
27
28
29
30
31
# Licensed under https://github.com/wpilibsuite/frc-docs-translations/blob/main/license.txt
# 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, "ftcdocs/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, "ftcdocs/docs/source/")
app.confdir = app.srcdir
tags.add("translation")
setup_original(app)