From 7f0e97c6eeaccff26cae30138947ef9d964d15f7 Mon Sep 17 00:00:00 2001 From: Robpol86 Date: Sun, 29 Sep 2024 16:23:03 -0400 Subject: [PATCH] reorder config --- docs/conf.py | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5f0c0414..7ad95657 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -37,7 +37,6 @@ "html_baseurl": html_baseurl, } html_copy_source = False -html_domain_indices = False html_extra_path = [ ".htaccess", ] @@ -108,10 +107,24 @@ linkcheck_timeout = 5 +# Extension settings. +imgur_target_format = "https://i.imgur.com/%(id)s.%(ext)s" +myst_enable_extensions = ["colon_fence", "deflist", "fieldlist", "linkify", "replacements", "strikethrough", "substitution"] +myst_url_schemes = ("http", "https", "mailto") +notfound_context = dict( # pylint: disable=use-dict-literal + title="404 Not Found", + body="

404 Not Found

\n\n" + '', +) +notfound_urls_prefix = "" +sitemap_url_scheme = "{link}" + + # Ablog settings. ablog_builder = "dirhtml" ablog_website = "_website" -blog_title = "ABlog" +blog_title = project blog_baseurl = html_baseurl blog_locations = { "Pittsburgh": ("Pittsburgh, PA", "https://en.wikipedia.org/wiki/Pittsburgh"), @@ -120,10 +133,8 @@ } blog_languages = { "en": ("English", None), - "nl": ("Nederlands", None), - "zh_CN": ("Chinese", None), } -blog_default_language = "en" +blog_default_language = language blog_authors = { "Ahmet": ("Ahmet Bakan", "https://ahmetbakan.com"), "Luc": ("Luc Saffre", "https://saffre-rumma.net/luc/"), @@ -144,20 +155,6 @@ fontawesome_link_cdn = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" -# Extension settings. -imgur_target_format = "https://i.imgur.com/%(id)s.%(ext)s" -myst_enable_extensions = ["colon_fence", "deflist", "fieldlist", "linkify", "replacements", "strikethrough", "substitution"] -myst_url_schemes = ("http", "https", "mailto") -notfound_context = dict( # pylint: disable=use-dict-literal - title="404 Not Found", - body="

404 Not Found

\n\n" - '', -) -notfound_urls_prefix = "" -sitemap_url_scheme = "{link}" - - """ TODOs: * Decide upon tags and categories for all my pages @@ -176,4 +173,6 @@ * fix imgur-embed in latest sphinx * validate rss * fix tags having too much whitespace with commas +* html validator, ogp validator +* fontawsome conflict? ablog and maybe sbt both use it """