This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martín S
committed
Sep 18, 2018
1 parent
1270826
commit 829652b
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
# The suffix of source filenames. | ||
source_suffix = '.md' | ||
import sys | ||
import os | ||
import shlex | ||
|
||
# The encoding of source files. | ||
#source_encoding = 'utf-8' | ||
import recommonmark | ||
from recommonmark.parser import CommonMarkParser | ||
from recommonmark.transform import AutoStructify | ||
|
||
# The master toctree document. | ||
master_doc = 'README' | ||
# for Sphinx-1.4 or newer | ||
extensions = ['recommonmark'] | ||
|
||
# for Sphinx-1.3 | ||
from recommonmark.parser import CommonMarkParser | ||
|
||
source_parsers = { | ||
'.md': CommonMarkParser, | ||
} | ||
|
||
source_suffix = ['.rst', '.md'] | ||
|
||
|
||
|
||
def setup(app): | ||
app.add_config_value('recommonmark_config', { | ||
'url_resolver': lambda url: github_doc_root + url, | ||
'auto_toc_tree_section': 'Contents', | ||
'enable_eval_rst': True, | ||
'enable_auto_doc_ref': True, | ||
}, True) | ||
app.add_transform(AutoStructify) |