From 00bc8da32dcc33351e74478c985fedf43619e7da Mon Sep 17 00:00:00 2001 From: "kujiu (@uberwald)" Date: Fri, 18 Aug 2023 02:20:43 +0200 Subject: [PATCH] Add robots.txt + update to Sphinx 7 --- source/_static/robots.txt | 4 ++++ source/conf.py | 43 ++++++++++++++++++++++++++------------- 2 files changed, 33 insertions(+), 14 deletions(-) create mode 100644 source/_static/robots.txt diff --git a/source/_static/robots.txt b/source/_static/robots.txt new file mode 100644 index 0000000..0299c11 --- /dev/null +++ b/source/_static/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: +User-agent: GPTBot +Disallow: / diff --git a/source/conf.py b/source/conf.py index ddbb8b4..5329f68 100644 --- a/source/conf.py +++ b/source/conf.py @@ -12,8 +12,11 @@ site_url = 'https://tn.nerv-project.eu/' vcs_uri = "https://procrastinator.nerv-project.eu/" use_bibtex = True use_git = True -html_favicon = '_static/favicon.ico' language = 'en' +html_extra_path = [ + "_static/robots.txt", + "_static/favicon.ico", +] version = "0.1" release = "0.1" @@ -78,23 +81,28 @@ html_theme = 'nervproject' html_theme_options = { "logoalt": project, "social": [ - ('solid', 'building', 'BCE 0756.741.342', 'https://kbopub.economie.fgov.be/kbopub/toonondernemingps.html?ondernemingsnummer=756741342'), - ('solid', 'receipt', 'TVA BE0756741342', 'https://kbopub.economie.fgov.be/kbopub/toonondernemingps.html?ondernemingsnummer=756741342'), - ('solid', 'books', 'KBR Éditeur 15066', 'https://www.kbr.be'), - ('brands', 'twitter', 'twitter', 'http://twitter.com/@nerv_project'), - ('solid', 'mug-hot', 'gitea', 'https://procrastinator.nerv-project.eu/nerv-project/nervtn'), - ('solid', 'hashtag', 'xmpp', 'xmpp:technique@clac.nerv-project.eu'), - ('regular', 'comments', 'movim', 'https://clac.nerv-project.eu/'), - ('solid', 'paragraph', 'gemini', 'gemini://tales.nerv-project.eu'), - ('solid', 'rss', 'rss', 'https://www.nerv-project.eu/blog/atom.xml'), + ('solid', 'building', 'BCE 0756.741.342', 'https://kbopub.economie.fgov.be/kbopub/toonondernemingps.html?ondernemingsnummer=756741342', False), + ('solid', 'receipt', 'TVA BE0756741342', 'https://kbopub.economie.fgov.be/kbopub/toonondernemingps.html?ondernemingsnummer=756741342', False), + ('solid', 'books', 'KBR Éditeur 15066', 'https://www.kbr.be', False), + ('brands', 'mastodon', 'mastodon', 'https://tiphon.nerv-project.eu/@nerv_project', True), + ('solid', 'mug-hot', 'forgejo', 'https://procrastinator.nerv-project.eu/nerv-project', True), + ('solid', 'hashtag', 'xmpp', 'xmpp:asbl@clac.nerv-project.eu', True), + ('regular', 'comments', 'movim', 'https://clac.nerv-project.eu/', False), + ('solid', 'film', 'peertube', 'https://clap.nerv-project.eu/video-channels/kujiu_channel/videos', False), + ('brands', 'youtube', 'youtube', 'https://www.youtube.com/channel/UC6LcFMVZUOs4WbKvV3p1xVw', False), + ('solid', 'podcast', 'podcasts', 'https://kreskenn.nerv-project.eu', False), + ('solid', 'paragraph', 'gemini', 'gemini://nerv-project.eu', False), + ('solid', 'rss', 'rss', 'https://nerv-project.eu/blog/atom.xml', False), + ('solid', 'rss', 'newsletter (rss)', 'https://morpork.nerv-project.eu/blog/atom.xml', False), + ('solid', 'envelope', 'newsletter', 'https://e8eb781a.sibforms.com/serve/MUIEAJvJnY3tRS7Nh4RvCneup4b6zYrTqGw3TUsq3igy7_QACEbhSd8G26qTXES6uJS-fGtcGBaji0Os0eWK2CY2it80LrbbXL7WRdNibWlpKtLD2sv43rRROQxdBktxF0qci_7hXvkRuAKLRk_X3NtNCkRUV2prn0BHb4g4tr8vck_yic-nw_ZQlmAPWSrFd1FwGBGTqf1M_Frm', False), ], + "mastodon_user": "@nerv_project@tiphon.nerv-project.eu", 'external_languages': [ # ('code', 'name', 'baseurl'), ('en', 'en', 'https://tn.nerv-project.eu/en'), ('fr', 'fr', 'https://tn.nerv-project.eu/fr'), ('nl', 'nl', 'https://tn.nerv-proect.eu/nl'), ], - "twitter_user": "nerv_project", "fathom": { 'url': '//casanabo.nerv-project.eu', 'id': 'BJLEM', @@ -111,9 +119,7 @@ html_static_path = ['_static'] html_sidebars = { '**': [ 'about.html', - 'postcard.html', 'util/sidetoc.html', - 'recentposts.html', 'tagcloud.html', - 'categories.html', 'archives.html', + 'util/sidetoc.html', 'social.html', 'util/searchbox.html', ], @@ -122,6 +128,15 @@ html_baseurl = baseurl htmlhelp_basename = basename +gemini_baseurl = 'gemini://tn.nerv-project.eu/' +gemini_footer = """ +Nerv Project ASBL - BCE 0756.741.342 - TVA BE0756741342 - KBR Éditeur 15066 - IBAN BE02751210684040 - BIC AXABBE22. + +Licensed under EUPL 1.2 + +Created with Sphinx. +""" + pyppeteer_pdf_options = { 'printBackground': True, 'format': 'A4',