Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Public
Open Data
DKAN User Guide
Commits
a12b8236
Commit
a12b8236
authored
Dec 17, 2018
by
Boris Budini
Browse files
Add new file
parent
aed26789
Pipeline
#146
failed with stage
in 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conf.py
0 → 100644
View file @
a12b8236
import
sys
,
os
,
subprocess
from
sphinx.highlighting
import
lexers
from
pygments.lexers.web
import
PhpLexer
from
recommonmark.transform
import
AutoStructify
from
recommonmark.parser
import
CommonMarkParser
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
'../..'
,
'sphinx-bootstrap-directives'
)))
# -----------------------------------------------------------------------------
# GENERAL CONFIGURATION
# -----------------------------------------------------------------------------
project
=
u
'Fab Academy 2018'
copyright
=
u
'2018, Matthieu Borgognon'
authors
=
u
"Matthieu Borgognon"
master_doc
=
'index'
templates_path
=
[
'_templates'
]
extensions
=
[
'm2r'
,]
source_suffix
=
[
'.rst'
,
'.md'
]
version
=
'0.1.0'
exclude_patterns
=
[
'_build'
]
github_doc_root
=
'http://fab.academany.org/2018/labs/fablabat3flo/students/mat-bgn/'
# -----------------------------------------------------------------------------
# HTML THEMES SETTINGS
# -----------------------------------------------------------------------------
import
sphinx_rtd_theme
html_theme
=
'sphinx_rtd_theme'
html_theme_path
=
[
sphinx_rtd_theme
.
get_html_theme_path
()]
def
setup
(
app
):
app
.
add_stylesheet
(
'css/custom.css'
)
app
.
add_javascript
(
'js/custom.js'
)
html_show_sourcelink
=
False
html_sidebars
=
{
'**'
:
[
'logo-text.html'
,
'globaltoc.html'
,
'localtoc.html'
,
'searchbox.html'
]
}
# ------------------------------------------------------------------------------
# OPTIONS FOR: LATEX OUTPUT
# ------------------------------------------------------------------------------
latex_elements
=
{
# The paper size ("letterpaper" or "a4paper").
"papersize"
:
"a4paper"
,
# The font size ("10pt", "11pt" or "12pt").
# "pointsize": "10pt",
# Additional stuff for the LaTeX preamble.
# "preamble": "",
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents
=
[
(
"index"
,
"FabAcademy2018.tex"
,
u
"Fab Academy 2018"
,
authors
,
"manual"
),
]
# latex_logo = None
def
setup
(
app
):
app
.
add_config_value
(
'recommonmark_config'
,
{
'url_resolver'
:
lambda
url
:
github_doc_root
+
url
,
'auto_toc_tree_section'
:
'Contents'
,
},
True
)
app
.
add_transform
(
AutoStructify
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment