|
5 | 5 | from os.path import dirname, relpath |
6 | 6 |
|
7 | 7 | import alagitpull |
| 8 | +from recommonmark.transform import AutoStructify |
8 | 9 |
|
9 | 10 | import tmuxp |
10 | 11 |
|
|
30 | 31 | 'aafig', |
31 | 32 | 'alagitpull', |
32 | 33 | 'sphinx_issues', |
| 34 | + 'recommonmark', |
33 | 35 | ] |
34 | 36 |
|
35 | 37 | issues_github_path = about['__github__'].replace('https://github.com/', '') |
36 | 38 |
|
37 | 39 | templates_path = ['_templates'] |
38 | 40 |
|
39 | | -source_suffix = '.rst' |
| 41 | +source_suffix = {'.rst': 'restructuredtext', '.md': 'markdown'} |
40 | 42 |
|
41 | 43 | master_doc = 'index' |
42 | 44 |
|
| 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 | + |
43 | 61 | project = about['__title__'] |
44 | 62 | copyright = about['__copyright__'] |
45 | 63 |
|
|
51 | 69 | pygments_style = 'sphinx' |
52 | 70 |
|
53 | 71 | html_theme_path = [alagitpull.get_path()] |
54 | | -html_favicon = '_static/favicon.ico' |
55 | 72 | html_theme = 'alagitpull' |
| 73 | +html_extra_path = ['manifest.json'] |
56 | 74 | html_static_path = ['_static'] |
57 | 75 | html_sidebars = { |
58 | 76 | '**': [ |
|
73 | 91 | 'github_banner': True, |
74 | 92 | 'projects': alagitpull.projects, |
75 | 93 | '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, |
76 | 100 | } |
77 | 101 |
|
78 | 102 | alagitpull_internal_hosts = ['tmuxp.git-pull.com', '0.0.0.0'] |
|
0 commit comments