Commit 1e56a9aa authored by BorisPAING's avatar BorisPAING

BUG: markdown table of contents toc_depth attribute raises errors

parent 026712d1
......@@ -410,6 +410,12 @@ body {
margin-top: 1em;
margin-bottom: 1em;
font-size: 5rem;
.headerlink {
/* Anchors in titles */
display: none;
}
}
h2, h3, h4, h5, h6, .toctitle {
......@@ -465,6 +471,20 @@ body {
border-bottom: 0;
}
}
> ul > {
list-style: none;
padding-left: 0;
> li {
> a {
display: none
}
}
}
}
:target:before {
......
......@@ -8,9 +8,7 @@ import gettext
#SITEURL = u''
#SITEURL = u'http://localhost:8556'
#SITEURL = u'http://localhost:8000'
#SITEURL = u'https://duniter.borispaing.fr'
SITEURL = u'http://localhost/duniter-project/website_fr/output'
SITEURL = u'http://localhost:8000'
# RELATIVE_URLS = True # Comment this line if you don't want document-relative URLs
PRETTY_URLS = True
LAZY_LOAD = True
......@@ -237,8 +235,14 @@ DEFAULT_LANG = u'fr'
PLUGIN_PATHS = ['pelican-plugins/', 'custom-plugins/']
PLUGINS = [
'i18n_subsites', 'tipue_search', 'plantuml', 'assets', 'tag_cloud',
'pelican-page-hierarchy-duniter', 'pelican-linkclass']
'i18n_subsites',
'tipue_search',
'plantuml',
'assets',
'tag_cloud',
'pelican-page-hierarchy-duniter',
#'pelican-linkclass'
]
ASSET_SOURCE_PATHS = [
"../" + CHILD_THEME_NAME + '/static' + '/less'
......@@ -253,7 +257,7 @@ MARKDOWN = {
# Doc :
# https://python-markdown.github.io/extensions/toc/
'markdown.extensions.toc': {
'toc_depth' : '2-5',
#'toc_depth' : '2-5',
'title' : 'Table des matières',
'permalink': True
},
......
......@@ -249,7 +249,7 @@ MARKDOWN = {
# Doc :
# https://python-markdown.github.io/extensions/toc/
'markdown.extensions.toc': {
'toc_depth' : '2-5',
#'toc_depth' : '2-5',
'title' : 'Table des matières',
'permalink': True
},
......
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