Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/doc/common/build_options.py
4045 views
1
###############################################
2
# Options for building the Sage documentation #
3
###############################################
4
5
import os, re
6
SAGE_DOC = os.environ['SAGE_DOC']
7
LANGUAGES = [d for d in os.listdir(SAGE_DOC) if re.match('^[a-z][a-z]$', d)]
8
SPHINXOPTS = ""
9
PAPER = ""
10
OMIT = ["introspect"] # docs/dirs to omit when listing and building 'all'
11
12
if PAPER:
13
PAPEROPTS = "-D latex_paper_size=" + PAPER
14
else:
15
PAPEROPTS = ""
16
17
#Note that this needs to have the doctrees dir
18
ALLSPHINXOPTS = SPHINXOPTS + " " + PAPEROPTS + " "
19
20