aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/conf.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-05-02 22:46:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-05-02 22:46:36 +0000
commit340fdf2991ebc3d9d904a198e3c4c708c14335c1 (patch)
tree0818dba7c7cf969cb5a99fb359d32baa47ad40b0 /llvm/docs/conf.py
parent2331bbfb4ec52a51eec9fab6a6e8e7e3a9e5a4af (diff)
downloadllvm-340fdf2991ebc3d9d904a198e3c4c708c14335c1.zip
llvm-340fdf2991ebc3d9d904a198e3c4c708c14335c1.tar.gz
llvm-340fdf2991ebc3d9d904a198e3c4c708c14335c1.tar.bz2
[docs] Include the Kaleidescope tutorial in the Sphinx docs build.
llvm-svn: 156032
Diffstat (limited to 'llvm/docs/conf.py')
-rw-r--r--llvm/docs/conf.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/docs/conf.py b/llvm/docs/conf.py
index df71355..5a39b69 100644
--- a/llvm/docs/conf.py
+++ b/llvm/docs/conf.py
@@ -138,10 +138,14 @@ html_sidebars = {'index': 'indexsidebar.html'}
# We load all the old-school HTML documentation pages into Sphinx here.
basedir = os.path.dirname(__file__)
html_additional_pages = {}
-for file in os.listdir(basedir):
- if file.endswith('.html'):
- name,_ = os.path.splitext(file)
- html_additional_pages[name] = file
+for directory in ('', 'tutorial'):
+ for file in os.listdir(os.path.join(basedir, directory)):
+ if not file.endswith('.html'):
+ continue
+
+ subpath = os.path.join(directory, file)
+ name,_ = os.path.splitext(subpath)
+ html_additional_pages[name] = subpath
# If false, no module index is generated.
#html_domain_indices = True