Skip to content

Commit 0e403ac

Browse files
committed
build(conf): Update to latest and greatest
1 parent e2865f9 commit 0e403ac

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/conf.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from os.path import dirname, relpath
66

77
import alagitpull
8+
from recommonmark.transform import AutoStructify
89

910
import tmuxp
1011

@@ -30,16 +31,33 @@
3031
'aafig',
3132
'alagitpull',
3233
'sphinx_issues',
34+
'recommonmark',
3335
]
3436

3537
issues_github_path = about['__github__'].replace('https://github.com/', '')
3638

3739
templates_path = ['_templates']
3840

39-
source_suffix = '.rst'
41+
source_suffix = {'.rst': 'restructuredtext', '.md': 'markdown'}
4042

4143
master_doc = 'index'
4244

45+
# app setup hook
46+
def setup(app):
47+
app.add_config_value(
48+
'recommonmark_config',
49+
{
50+
#'url_resolver': lambda url: github_doc_root + url,
51+
'enable_auto_toc_tree': True,
52+
'auto_toc_tree_section': 'Contents',
53+
'auto_code_block': True,
54+
'enable_eval_rst': True,
55+
},
56+
True,
57+
)
58+
app.add_transform(AutoStructify)
59+
60+
4361
project = about['__title__']
4462
copyright = about['__copyright__']
4563

@@ -51,8 +69,8 @@
5169
pygments_style = 'sphinx'
5270

5371
html_theme_path = [alagitpull.get_path()]
54-
html_favicon = '_static/favicon.ico'
5572
html_theme = 'alagitpull'
73+
html_extra_path = ['manifest.json']
5674
html_static_path = ['_static']
5775
html_sidebars = {
5876
'**': [
@@ -73,6 +91,12 @@
7391
'github_banner': True,
7492
'projects': alagitpull.projects,
7593
'project_name': about['__title__'],
94+
'project_title': about['__title__'],
95+
'project_description': about['__description__'],
96+
'project_url': about['__docs__'],
97+
'show_meta_manifest_tag': True,
98+
'show_meta_og_tags': True,
99+
'show_meta_app_icon_tags': True,
76100
}
77101

78102
alagitpull_internal_hosts = ['tmuxp.git-pull.com', '0.0.0.0']

0 commit comments

Comments
 (0)