File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ recommonmark
13
13
sphinx-markdown-tables
14
14
15
15
# Handle markdown cross-references
16
- git+https://github.com/SymbiFlow/sphinxcontrib-markdown-symlinks@bd0869b817568dce268bcdc3dc3dc7a7bd40c392
16
+ git+https://github.com/SymbiFlow/sphinxcontrib-markdown-symlinks
17
17
18
18
#Handle references in bibtex format
19
19
#
Original file line number Diff line number Diff line change 82
82
# Add any paths that contain templates here, relative to this directory.
83
83
templates_path = []
84
84
85
- # Support rendering Markdown docs
86
- source_parsers = {
87
- ".md" : "markdown_code_symlinks.LinkParser" ,
88
- }
89
-
90
85
# The suffix(es) of source filenames.
91
86
# You can specify multiple suffix as a list of string:
92
- source_suffix = [".rst" , ".md" ]
87
+ source_suffix = [".rst" ]
93
88
94
89
# The encoding of source files.
95
90
# source_encoding = 'utf-8-sig'
379
374
assert os .path .exists (prjdir ) == True , "Regenerate doxygen XML for {}" .format (prjname )
380
375
381
376
377
+ def recommonmark_setup (app ):
378
+ """Initialize Sphinx extension."""
379
+ import sphinx
380
+
381
+ if sphinx .version_info >= (1 , 8 ):
382
+ app .add_source_suffix (".md" , "markdown" )
383
+ app .add_source_parser (LinkParser )
384
+
385
+ return {"version" : recommonmark .__version__ , "parallel_read_safe" : True }
386
+
387
+
388
+ # Override recommonmark setup
389
+ recommonmark .setup = recommonmark_setup
390
+
391
+
382
392
def setup (app ):
383
393
github_code_repo = "https://github.com/verilog-to-routing/vtr-verilog-to-routing/"
384
394
github_code_branch = "blob/master/"
You can’t perform that action at this time.
0 commit comments