Commit 0c3c7fa4 authored by Boris Budini's avatar Boris Budini 🛡

wtf

parent 0ef0d056
Pipeline #583 passed with stages
in 1 minute and 50 seconds
......@@ -11,19 +11,15 @@ sys.path.insert(0, os.path.abspath(os.path.join('../..', 'sphinx-bootstrap-direc
# GENERAL CONFIGURATION
# -----------------------------------------------------------------------------
project = u'Open Data GoldBook'
project = u'Open Data Goldbook'
copyright = u''
authors = u"Collective68"
authors = u""
master_doc = 'index'
templates_path = ['_templates']
extensions = [
'm2r',]
extensions = ['m2r', 'rst2pdf.pdfbuilder', 'sphinxprettysearchresults']
source_suffix = ['.rst', '.md']
version = '0.1.0'
version = '1.0.0'
exclude_patterns = ['_build']
github_doc_root = 'https://git.collective68.tech/docs/open-data/open-data-goldbook'
# -----------------------------------------------------------------------------
# HTML THEMES SETTINGS
# -----------------------------------------------------------------------------
......@@ -35,7 +31,13 @@ html_theme_path = ["_themes"]
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'display_version': False,
'style_external_links': True,
'sticky_navigation': True,
'canonical_url': '',
'logo_only': True
}
# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
......@@ -43,7 +45,7 @@ html_theme_path = ["_themes"]
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = u'Sphinx Example Project v1'
html_title = u'Aftesi.info'
# A shorter title for the navigation bar. Default is the same as html_title.
#
......@@ -65,6 +67,10 @@ html_theme_path = ["_themes"]
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Insert custom js and css locations here
def setup(app):
app.add_javascript('_static/js/custom.js')
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
......@@ -75,7 +81,7 @@ html_static_path = ['_static']
# bottom, using the given strftime format.
# The empty string is equivalent to '%b %d, %Y'.
#
# html_last_updated_fmt = None
html_last_updated_fmt = '%H:%M:%S %m/%d/%y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
......@@ -97,26 +103,13 @@ html_static_path = ['_static']
# If false, no index is generated.
#
# html_use_index = True
#html_use_index = True
# If true, the index is split into individual pages for each letter.
#
# html_split_index = False
# If true, links to the reST sources are added to the pages.
#
html_show_sourcelink = True
html_context = {
'source_url_prefix': "https://git.collective68.tech/docs/open-data/open-data-goldbook/blob/master/",
}
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#
# html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#
# html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
......@@ -150,7 +143,6 @@ htmlhelp_basename = 'SphinxExampleProjectdoc'
# ------------------------------------------------------------------------------
# OPTIONS FOR: PDF Output
# ------------------------------------------------------------------------------
......@@ -158,14 +150,3 @@ pdf_documents = [('index', u'documentation', u'DOCUMENT TITLE', u'Open Data Gold
pdf_use_index = False
pdf_use_coverpage = False
pdf_stylesheets = ['sphinx','kerning','a4']
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)
app.add_stylesheet('css/custom.css')
app.add_javascript('js/custom.js')
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