2020-05-20 01:22:03 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
2020-05-27 16:52:08 +02:00
|
|
|
import ablog
|
2020-05-20 01:22:03 +02:00
|
|
|
|
|
|
|
project = "Kujiu's Labs"
|
|
|
|
basename = 'kujiulabs'
|
|
|
|
project_uid = basename # ISBN, etc.
|
|
|
|
baseurl = 'https://www.kujiu.org/'
|
2021-05-07 12:29:47 +02:00
|
|
|
copyright = '2021, kujiu & Nerv Project ASBL - ISSN 2736-7649 - BCE 0756.741.342 - TVA BE0756741342 - KBR Éditeur 15066 - IBAN BE02751210684040 - BIC AXABBE22'
|
2020-05-20 01:22:03 +02:00
|
|
|
author = 'Kujiu'
|
2020-09-27 02:11:08 +02:00
|
|
|
publisher = 'Nerv Project ASBL'
|
2020-05-20 01:22:03 +02:00
|
|
|
site_url = 'https://www.kujiu.org/'
|
|
|
|
vcs_uri = "https://procrastinator.nerv-project.eu/"
|
|
|
|
repository_name = 'kujiu_writer/'
|
|
|
|
repository_name += 'kujiulabs'
|
|
|
|
use_ablog = True
|
|
|
|
use_bibtex = False
|
|
|
|
use_git = True
|
|
|
|
language = 'fr'
|
|
|
|
html_favicon = '_static/favicon.ico'
|
|
|
|
|
|
|
|
version = "6.0"
|
|
|
|
release = "6.0"
|
|
|
|
|
|
|
|
if use_ablog:
|
|
|
|
blog_title = project
|
|
|
|
blog_baseurl = baseurl
|
|
|
|
blog_default_author = 'kujiu'
|
|
|
|
blog_default_location = 'BLA'
|
|
|
|
blog_authors = {
|
|
|
|
'kujiu': ('Kujiu', 'https://www.kujiu.org'),
|
|
|
|
}
|
|
|
|
blog_locations = {
|
|
|
|
'BLA': (
|
|
|
|
"Braine-l'Alleud",
|
|
|
|
"https://fr.wikipedia.org/wiki/Braine-l'Alleud"
|
|
|
|
),
|
|
|
|
}
|
|
|
|
post_date_format = 'Le %d %b %Y à %H:%M'
|
|
|
|
post_auto_excerpt = 1
|
|
|
|
post_auto_image = 1
|
|
|
|
post_redirect_refresh = 5
|
|
|
|
post_always_section = False
|
|
|
|
post_auto_orphan = True
|
|
|
|
|
|
|
|
blog_feed_fulltext = False
|
|
|
|
blog_feed_subtitle = None
|
|
|
|
blog_feed_titles = False
|
|
|
|
blog_feed_length = 30
|
|
|
|
fontawesome_link_cdn = None
|
|
|
|
fontawesome_included = True
|
|
|
|
fontawesome_css_file = ''
|
|
|
|
show_authors = True
|
|
|
|
|
|
|
|
if use_git:
|
|
|
|
from git import Repo
|
|
|
|
|
|
|
|
repo = Repo(
|
|
|
|
os.path.join(
|
|
|
|
os.path.dirname(os.path.realpath(__file__)),
|
|
|
|
'..'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
repo.config_reader()
|
|
|
|
|
|
|
|
if not repo.head.is_detached:
|
|
|
|
version = repo.head.ref.name
|
|
|
|
release = version + ' [' + repo.commit().hexsha[:20] + ']'
|
|
|
|
|
|
|
|
repository_uri = vcs_uri + repository_name
|
|
|
|
issues_uri = repository_uri + "/issues/{issue}"
|
|
|
|
issues_pr_uri = repository_uri + "/merge_requests/{pr}"
|
|
|
|
issues_commit_uri = repository_uri + "/commit/{commit}"
|
|
|
|
issues_user_uri = vcs_uri + "/{user}"
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
'sphinxemoji.sphinxemoji',
|
|
|
|
'sphinxcontrib.actdiag',
|
|
|
|
'sphinxcontrib.blockdiag',
|
|
|
|
'sphinxcontrib.nwdiag',
|
|
|
|
'sphinxcontrib.seqdiag',
|
|
|
|
'sphinxcontrib.images',
|
|
|
|
'sphinx.ext.extlinks',
|
|
|
|
'sphinx.ext.intersphinx',
|
|
|
|
'sphinx.ext.todo',
|
|
|
|
'sphinx_issues',
|
|
|
|
'sphinx_sitemap',
|
|
|
|
'sphinx_fasvg',
|
|
|
|
# 'sphinx_storymaker',
|
|
|
|
]
|
|
|
|
|
|
|
|
if use_ablog:
|
|
|
|
extensions.append('ablog')
|
|
|
|
|
|
|
|
if use_git:
|
|
|
|
extensions.append('sphinx_git')
|
|
|
|
|
|
|
|
if use_bibtex:
|
|
|
|
extensions.append('sphinxcontrib.bibtex')
|
|
|
|
|
|
|
|
locale_dirs = ['locale/']
|
|
|
|
|
2020-05-27 16:52:08 +02:00
|
|
|
if use_ablog:
|
|
|
|
locale_dirs.append(
|
|
|
|
os.path.join(ablog.get_html_templates_path(), '..', 'locale'),
|
|
|
|
)
|
|
|
|
|
2020-05-20 01:22:03 +02:00
|
|
|
images_config = {
|
|
|
|
"default_show_title": True,
|
|
|
|
"override_image_directive": True,
|
|
|
|
"show_caption": True,
|
|
|
|
}
|
|
|
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
|
|
source_suffix = '.rst'
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
exclude_patterns = []
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
|
|
|
|
|
|
html_logo = '_static/logo.png'
|
|
|
|
html_theme = 'nervproject'
|
|
|
|
html_theme_options = {
|
|
|
|
"logoalt": project,
|
|
|
|
"social": [
|
2021-05-07 12:29:47 +02:00
|
|
|
('solid', 'barcode', 'ISSN 2736-7649', 'https://portal.issn.org/resource/ISSN/2736-7649'),
|
2021-04-29 19:43:11 +02:00
|
|
|
('solid', 'building', 'Nerv Project ASBL', 'https://www.nerv-project.eu'),
|
|
|
|
('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'),
|
2020-10-04 20:10:36 +02:00
|
|
|
('solid', 'comment', 'xmpp', 'xmpp:kujiu@kujiu.org'),
|
2020-05-20 01:22:03 +02:00
|
|
|
('brands', 'twitter', 'twitter', 'http://twitter.com/@kujiu'),
|
2020-07-10 22:41:44 +02:00
|
|
|
('solid', 'mug-hot', 'gitea', 'https://procrastinator.nerv-project.eu/kujiu'),
|
2020-05-20 01:22:03 +02:00
|
|
|
('solid', 'film', 'peertube', 'https://clap.nerv-project.eu/video-channels/kujiu_channel/videos'),
|
|
|
|
('brands', 'youtube', 'youtube', 'https://www.youtube.com/channel/UC6LcFMVZUOs4WbKvV3p1xVw'),
|
2021-01-31 02:45:29 +01:00
|
|
|
('solid', 'podcast', 'podcasts', 'https://kreskenn.nerv-project.eu/channels/kujiulabs/'),
|
2021-02-02 18:06:54 +01:00
|
|
|
('solid', 'paragraph', 'gemini', 'gemini://kujiu.org'),
|
2020-05-20 01:22:03 +02:00
|
|
|
('solid', 'rss', 'rss', 'https://www.kujiu.org/blog/atom.xml'),
|
2020-09-27 02:11:08 +02:00
|
|
|
('solid', 'envelope', 'newsletter', 'https://e8eb781a.sibforms.com/serve/MUIEAJvJnY3tRS7Nh4RvCneup4b6zYrTqGw3TUsq3igy7_QACEbhSd8G26qTXES6uJS-fGtcGBaji0Os0eWK2CY2it80LrbbXL7WRdNibWlpKtLD2sv43rRROQxdBktxF0qci_7hXvkRuAKLRk_X3NtNCkRUV2prn0BHb4g4tr8vck_yic-nw_ZQlmAPWSrFd1FwGBGTqf1M_Frm'),
|
2020-05-20 01:22:03 +02:00
|
|
|
],
|
|
|
|
"twitter_user": "kujiu",
|
|
|
|
"fathom": {
|
|
|
|
'url': '//casanabo.nerv-project.eu',
|
|
|
|
'id': 'JKNYR',
|
|
|
|
},
|
|
|
|
'isso': {
|
2020-05-25 12:02:02 +02:00
|
|
|
'prefix': '/isso/kujiu',
|
|
|
|
'url': baseurl + '/isso/kujiu',
|
2020-05-20 01:22:03 +02:00
|
|
|
'require_author': "true",
|
|
|
|
'reply_to_self': "true",
|
|
|
|
'require_author': "true",
|
|
|
|
'require_email': "false",
|
|
|
|
'reply_notif': "true",
|
|
|
|
'max_comments_top': 20,
|
|
|
|
'max_comments_nested': 20,
|
|
|
|
'reveal_on_click': 20,
|
|
|
|
'avatar': "true",
|
|
|
|
'vote': "false",
|
|
|
|
'vote_levels': "",
|
|
|
|
'feed': "true",
|
|
|
|
},
|
|
|
|
"ablog_prevnext": True,
|
|
|
|
"license": {
|
|
|
|
'type': 'CC',
|
|
|
|
'subtype': 'BY-SA',
|
|
|
|
'version': '4.0',
|
|
|
|
'url': 'https://creativecommons.org/licenses/by-sa/4.0/legalcode'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
html_static_path = ['_static']
|
|
|
|
html_sidebars = {
|
|
|
|
'**': [
|
|
|
|
'about.html',
|
|
|
|
'social.html',
|
|
|
|
'postcard.html',
|
|
|
|
'util/sidetoc.html',
|
|
|
|
'recentposts.html',
|
|
|
|
'categories.html',
|
|
|
|
'tagcloud.html',
|
|
|
|
'archives.html',
|
|
|
|
'util/searchbox.html',
|
|
|
|
],
|
|
|
|
}
|
2020-06-29 17:28:21 +02:00
|
|
|
html_baseurl = baseurl
|
2020-05-20 01:22:03 +02:00
|
|
|
|
|
|
|
htmlhelp_basename = basename
|
|
|
|
|
2020-06-29 17:28:21 +02:00
|
|
|
pyppeteer_pdf_options = {
|
|
|
|
'printBackground': True,
|
|
|
|
'format': 'A4',
|
|
|
|
'margin': {
|
|
|
|
'top': '0mm',
|
|
|
|
'bottom': '0mm',
|
|
|
|
'left': '0mm',
|
|
|
|
'right': '0mm'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-31 13:02:30 +01:00
|
|
|
gemini_baseurl = "gemini://kujiu.org/"
|
2021-01-31 02:45:29 +01:00
|
|
|
gemini_footer = """
|
2021-02-01 03:01:18 +01:00
|
|
|
# Menu
|
|
|
|
|
2021-02-01 02:56:09 +01:00
|
|
|
=> gemini://kujiu.org Accueil
|
2021-02-01 03:01:18 +01:00
|
|
|
=> gemini://kujiu.org/apropos/historique.gmi Historique
|
|
|
|
=> gemini://kujiu.org/apropos/apropos.gmi À propos
|
|
|
|
=> gemini://kujiu.org/apropos/mentions_legales.gmi Mentions légales
|
2021-04-04 15:35:51 +02:00
|
|
|
=> gemini://kujiu.org/apropos/accessibility.gmi Déclaration d'accessibilité
|
|
|
|
=> gemini://kujiu.org/apropos/confidentiality.gmi Déclaration deconfidentialité
|
2021-02-01 03:01:18 +01:00
|
|
|
=> gemini://kujiu.org/apropos/liens.gmi Liens
|
2021-02-01 02:59:14 +01:00
|
|
|
|
2021-01-31 13:02:30 +01:00
|
|
|
=> gemini://kujiu.org/blog/atom.xml Abonnez-vous !
|
2021-01-31 02:45:29 +01:00
|
|
|
|
|
|
|
=> https://kreskenn.nerv-project.eu/channels/kujiulabs/ La version podcast (HTTPS)
|
|
|
|
=> https://www.kujiu.org Le site en HTTPS
|
|
|
|
|
2021-02-01 02:56:09 +01:00
|
|
|
=> gemini://nerv-project.eu Le Kujiu's Labs est produit par Nerv Project ASBL.
|
2021-01-31 02:45:29 +01:00
|
|
|
|
2021-05-07 12:29:47 +02:00
|
|
|
ISSN 2736-7649
|
|
|
|
|
2021-04-29 19:45:24 +02:00
|
|
|
Nerv Project ASBL - BCE 0756.741.342 - TVA BE0756741342 - KBR Éditeur 15066 - IBAN BE02751210684040 - BIC AXABBE22.
|
|
|
|
|
2021-04-08 14:52:13 +02:00
|
|
|
Licence CC-BY-SA 4.0
|
2021-01-31 02:45:29 +01:00
|
|
|
"""
|
|
|
|
|
2020-05-20 01:22:03 +02:00
|
|
|
latex_engine = 'xelatex'
|
|
|
|
latex_toplevel_sectioning = 'chapter'
|
|
|
|
latex_show_urls = 'footnote'
|
|
|
|
latex_elements = {
|
|
|
|
# 'figure_align': 'htbp',
|
|
|
|
# 'extraclassoptions': '',
|
|
|
|
'papersize': 'a4paper',
|
|
|
|
'pointsize': '12pt',
|
|
|
|
'extraclassoptions': 'twoside',
|
|
|
|
'fontpkg': r'''
|
|
|
|
\defaultfontfeatures{Ligatures=TeX}
|
|
|
|
\setmainfont{Linux Biolinum O}
|
|
|
|
\setsansfont{Linux Biolinum O}
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
latex_show_pagerefs = True
|
|
|
|
latex_documents = [
|
|
|
|
(master_doc, basename + '.tex', project,
|
|
|
|
author, 'book'),
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
man_pages = [
|
|
|
|
(master_doc, basename.lower(), project, [author], 1)
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
texinfo_documents = [
|
|
|
|
(master_doc, basename, project,
|
|
|
|
author, basename, '',
|
|
|
|
'Miscellaneous'),
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
epub_title = project
|
|
|
|
epub_author = author
|
|
|
|
epub_publisher = publisher
|
|
|
|
epub_copyright = copyright
|
|
|
|
|
|
|
|
epub_identifier = project_uid
|
|
|
|
epub_uid = ''
|
|
|
|
epub_exclude_files = [
|
|
|
|
'index.xhtml',
|
|
|
|
'search.xhtml',
|
|
|
|
'blog.xhtml',
|
|
|
|
'submit_success.xhtml',
|
|
|
|
'contact.xhtml',
|
|
|
|
'403.xhtml',
|
|
|
|
'404.xhtml',
|
|
|
|
'blog/archive.xhtml',
|
|
|
|
'blog/category.xhtml',
|
|
|
|
'blog/drafts.xhtml',
|
|
|
|
'blog/author.xhtml',
|
|
|
|
'blog/language.xhtml',
|
|
|
|
'blog/location.xhtml',
|
|
|
|
'blog/location/braine-lalleud.xhtml',
|
|
|
|
'blog/language/francais.xhtml',
|
|
|
|
'blog/author/kujiu.xhtml',
|
|
|
|
'blog/2014.xhtml',
|
|
|
|
'blog/2015.xhtml',
|
|
|
|
'blog/2016.xhtml',
|
|
|
|
'blog/2017.xhtml',
|
|
|
|
'blog/2018.xhtml',
|
|
|
|
'blog/2019.xhtml',
|
|
|
|
'blog/2020.xhtml',
|
|
|
|
'blog/2021.xhtml',
|
|
|
|
'blog/2022.xhtml',
|
|
|
|
'blog/2023.xhtml',
|
|
|
|
'blog/2024.xhtml',
|
|
|
|
'google82f190054a773ed9.xhtml',
|
|
|
|
]
|
2020-07-31 17:53:26 +02:00
|
|
|
epub_theme = 'nervproject'
|
|
|
|
epub_theme_options = html_theme_options
|
2020-05-20 01:22:03 +02:00
|
|
|
epub_show_urls = 'footnote'
|
|
|
|
|
|
|
|
diag_antialias = True
|
|
|
|
diag_transparency = True
|
|
|
|
diag_html_image_format = "SVG"
|
|
|
|
diag_latex_image_format = "PDF"
|
|
|
|
diag_fontpath = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
diag_fontpath = os.path.join(diag_fontpath, '_static', 'biolinumrah.ttf')
|
|
|
|
diag_debug = False
|
|
|
|
|
|
|
|
actdiag_antialias = diag_antialias
|
|
|
|
actdiag_transparency = diag_transparency
|
|
|
|
actdiag_html_image_format = diag_html_image_format
|
|
|
|
actdiag_latex_image_format = diag_latex_image_format
|
|
|
|
actdiag_fontpath = diag_fontpath
|
|
|
|
actdiag_debug = diag_debug
|
|
|
|
|
|
|
|
blockdiag_antialias = diag_antialias
|
|
|
|
blockdiag_transparency = diag_transparency
|
|
|
|
blockdiag_html_image_format = diag_html_image_format
|
|
|
|
blockdiag_fontpath = diag_fontpath
|
|
|
|
blockdiag_latex_image_format = diag_latex_image_format
|
|
|
|
blockdiag_debug = diag_debug
|
|
|
|
|
|
|
|
nwdiag_antialias = diag_antialias
|
|
|
|
nwdiag_transparency = diag_transparency
|
|
|
|
nwdiag_html_image_format = diag_html_image_format
|
|
|
|
nwdiag_latex_image_format = diag_latex_image_format
|
|
|
|
nwdiag_fontpath = diag_fontpath
|
|
|
|
nwdiag_debug = diag_debug
|
|
|
|
|
|
|
|
seqdiag_antialias = diag_antialias
|
|
|
|
seqdiag_transparency = diag_transparency
|
|
|
|
seqdiag_html_image_format = diag_html_image_format
|
|
|
|
seqdiag_latex_image_format = diag_latex_image_format
|
|
|
|
seqdiag_fontpath = diag_fontpath
|
|
|
|
seqdiag_debug = diag_debug
|
|
|
|
|
|
|
|
|
|
|
|
if use_bibtex:
|
|
|
|
import pybtex.style.formatting
|
|
|
|
from pybtex.richtext import Text, Tag
|
|
|
|
|
|
|
|
class NervPybtexStyle(pybtex.style.formatting.BaseStyle):
|
|
|
|
def format_article(self, entry):
|
|
|
|
return Text(Tag('em', entry.fields['key']))
|