Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Prueba MD
Browse files Browse the repository at this point in the history
  • Loading branch information
Martín S committed Sep 18, 2018
1 parent 1270826 commit 829652b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Esperamos que este sea un granito de arena más para potenciar y promover
la transparencia y la rendición de cuentas en la región.



```eval_rst
.. toctree::
:maxdepth: 2
:caption: Capítulo 1. Apuntes sobre el herramientas y datos en OCDS
Expand Down Expand Up @@ -59,3 +59,4 @@ la transparencia y la rendición de cuentas en la región.
C3/Seccion3
C3/Seccion4
C3/Seccion5
```
34 changes: 28 additions & 6 deletions docs/conf.py
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)

0 comments on commit 829652b

Please sign in to comment.