[tor-commits] [sbws/master] docs: Add viewcode extension

juga at torproject.org juga at torproject.org
Sat Feb 23 10:57:26 UTC 2019


commit 127609f5053ae31dee74dd775e37503b52553514
Author: juga0 <juga at riseup.net>
Date:   Tue Feb 12 10:40:02 2019 +0000

    docs: Add viewcode extension
    
    and numerate figures.
---
 docs/source/conf.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/source/conf.py b/docs/source/conf.py
index aa8ffca..3dc8660 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -49,7 +49,8 @@ extensions = [
     'sphinx.ext.coverage',
     'sphinx.ext.githubpages',
     'sphinx.ext.imgmath',
-    'sphinx.ext.intersphinx'
+    'sphinx.ext.intersphinx',
+    'sphinx.ext.viewcode'
 ]
 
 # Add any paths that contain templates here, relative to this directory.
@@ -199,3 +200,5 @@ todo_include_todos = True
 source_parsers = {
    '.md': 'recommonmark.parser.CommonMarkParser',
 }
+
+numfig = True





More information about the tor-commits mailing list