Commit a12b8236 authored by Boris Budini's avatar Boris Budini
Browse files

Add new file

parent aed26789
Pipeline #146 failed with stage
in 48 seconds
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment