diff options
author | Daniel Campora <daniel@wipy.io> | 2015-06-10 23:29:56 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-06-10 23:37:56 +0200 |
commit | cfcf47c0644952358e1a260db159e807872a37e6 (patch) | |
tree | 02522a025a7b803d7de0589dd743b34f3daa4634 /docs/conf.py | |
parent | b630de1103cd07ac0656c76c7f90d92312705835 (diff) | |
download | micropython-cfcf47c0644952358e1a260db159e807872a37e6.tar.gz micropython-cfcf47c0644952358e1a260db159e807872a37e6.zip |
docs: Add initial draft documentation for the WiPy.
This makes all common files "port-aware" using the .. only directive.
Diffstat (limited to 'docs/conf.py')
-rwxr-xr-x | docs/conf.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index 5c5f28a7b8..f2971992ce 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,7 +47,7 @@ source_suffix = '.rst' #source_encoding = 'utf-8-sig' # The master toctree document. -master_doc = 'index' +#master_doc = 'index' # General information about the project. project = 'MicroPython' @@ -297,3 +297,9 @@ html_context = { 'port_name':ports[micropy_port], 'all_ports':[(n, url_prefix + p) for p, n in ports.items()], } + +# Append the other ports' specific folders/files to the exclude pattern +exclude_patterns.extend([port + '*' for port in ports if port != micropy_port]) + +# Specify a custom master document based on the port name +master_doc = micropy_port + '_' + 'index' |