From f2c696f01620024a46f995be766b240497fae41f Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 2 May 2012 22:46:36 +0000 Subject: [docs] Include the Kaleidescope tutorial in the Sphinx docs build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156032 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/Makefile | 2 +- docs/conf.py | 12 ++++++++---- docs/tutorial/LangImpl1.html | 2 +- docs/tutorial/LangImpl2.html | 2 +- docs/tutorial/LangImpl3.html | 2 +- docs/tutorial/LangImpl4.html | 2 +- docs/tutorial/LangImpl5.html | 2 +- docs/tutorial/LangImpl6.html | 2 +- docs/tutorial/LangImpl7.html | 2 +- docs/tutorial/LangImpl8.html | 2 +- docs/tutorial/Makefile | 30 ------------------------------ docs/tutorial/OCamlLangImpl1.html | 2 +- docs/tutorial/OCamlLangImpl2.html | 2 +- docs/tutorial/OCamlLangImpl3.html | 2 +- docs/tutorial/OCamlLangImpl4.html | 2 +- docs/tutorial/OCamlLangImpl5.html | 2 +- docs/tutorial/OCamlLangImpl6.html | 2 +- docs/tutorial/OCamlLangImpl7.html | 2 +- docs/tutorial/OCamlLangImpl8.html | 2 +- docs/tutorial/index.html | 2 +- 20 files changed, 26 insertions(+), 52 deletions(-) delete mode 100644 docs/tutorial/Makefile diff --git a/docs/Makefile b/docs/Makefile index f4fb4c52ef..51bfab648e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -8,7 +8,7 @@ ##===----------------------------------------------------------------------===## LEVEL := .. -DIRS := CommandGuide tutorial +DIRS := CommandGuide ifdef BUILD_FOR_WEBSITE PROJ_OBJ_DIR = . diff --git a/docs/conf.py b/docs/conf.py index df713558ca..5a39b69de1 100644 --- a/docs/conf.py +++ b/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 diff --git a/docs/tutorial/LangImpl1.html b/docs/tutorial/LangImpl1.html index 2e1746f1a6..a65646f286 100644 --- a/docs/tutorial/LangImpl1.html +++ b/docs/tutorial/LangImpl1.html @@ -6,7 +6,7 @@ Kaleidoscope: Tutorial Introduction and the Lexer - + diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index 60e4f7f5e4..292dd4e516 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -6,7 +6,7 @@ Kaleidoscope: Implementing a Parser and AST - + diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 22ef26c2bd..4e9ac3ad5f 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -6,7 +6,7 @@ Kaleidoscope: Implementing code generation to LLVM IR - + diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index d2cac627e7..8c5c31e762 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -6,7 +6,7 @@ Kaleidoscope: Adding JIT and Optimizer Support - + diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index a42636fe59..0bb7e4f711 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -6,7 +6,7 @@ Kaleidoscope: Extending the Language: Control Flow - + diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 041af3b89c..453b576dd3 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -6,7 +6,7 @@ Kaleidoscope: Extending the Language: User-defined Operators - + diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 29b920c13b..90bdeee16a 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -7,7 +7,7 @@ construction - + diff --git a/docs/tutorial/LangImpl8.html b/docs/tutorial/LangImpl8.html index eed8c03d21..efd1756f0c 100644 --- a/docs/tutorial/LangImpl8.html +++ b/docs/tutorial/LangImpl8.html @@ -6,7 +6,7 @@ Kaleidoscope: Conclusion and other useful LLVM tidbits - + diff --git a/docs/tutorial/Makefile b/docs/tutorial/Makefile deleted file mode 100644 index fdf1bb68a7..0000000000 --- a/docs/tutorial/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -##===- docs/tutorial/Makefile ------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL := ../.. -include $(LEVEL)/Makefile.common - -HTML := $(wildcard $(PROJ_SRC_DIR)/*.html) -PNG := $(wildcard $(PROJ_SRC_DIR)/*.png) -EXTRA_DIST := $(HTML) index.html -HTML_DIR := $(DESTDIR)$(PROJ_docsdir)/html/tutorial - -install-local:: $(HTML) - $(Echo) Installing HTML Tutorial Documentation - $(Verb) $(MKDIR) $(HTML_DIR) - $(Verb) $(DataInstall) $(HTML) $(HTML_DIR) - $(Verb) $(DataInstall) $(PNG) $(HTML_DIR) - $(Verb) $(DataInstall) $(PROJ_SRC_DIR)/index.html $(HTML_DIR) - -uninstall-local:: - $(Echo) Uninstalling Tutorial Documentation - $(Verb) $(RM) -rf $(HTML_DIR) - -printvars:: - $(Echo) "HTML : " '$(HTML)' diff --git a/docs/tutorial/OCamlLangImpl1.html b/docs/tutorial/OCamlLangImpl1.html index aa2bd87600..73fe07bb84 100644 --- a/docs/tutorial/OCamlLangImpl1.html +++ b/docs/tutorial/OCamlLangImpl1.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl2.html b/docs/tutorial/OCamlLangImpl2.html index 20e006d97c..dd7e07b422 100644 --- a/docs/tutorial/OCamlLangImpl2.html +++ b/docs/tutorial/OCamlLangImpl2.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl3.html b/docs/tutorial/OCamlLangImpl3.html index 49b62bd6c1..a49a0b5d9c 100644 --- a/docs/tutorial/OCamlLangImpl3.html +++ b/docs/tutorial/OCamlLangImpl3.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html index dd31ded57d..ca427eb0e0 100644 --- a/docs/tutorial/OCamlLangImpl4.html +++ b/docs/tutorial/OCamlLangImpl4.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl5.html b/docs/tutorial/OCamlLangImpl5.html index d356f126a4..feeed6a533 100644 --- a/docs/tutorial/OCamlLangImpl5.html +++ b/docs/tutorial/OCamlLangImpl5.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl6.html b/docs/tutorial/OCamlLangImpl6.html index 480aab38f3..0d1d2804e6 100644 --- a/docs/tutorial/OCamlLangImpl6.html +++ b/docs/tutorial/OCamlLangImpl6.html @@ -7,7 +7,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl7.html b/docs/tutorial/OCamlLangImpl7.html index 51986b51a1..d106ad0701 100644 --- a/docs/tutorial/OCamlLangImpl7.html +++ b/docs/tutorial/OCamlLangImpl7.html @@ -8,7 +8,7 @@ - + diff --git a/docs/tutorial/OCamlLangImpl8.html b/docs/tutorial/OCamlLangImpl8.html index eed8c03d21..efd1756f0c 100644 --- a/docs/tutorial/OCamlLangImpl8.html +++ b/docs/tutorial/OCamlLangImpl8.html @@ -6,7 +6,7 @@ Kaleidoscope: Conclusion and other useful LLVM tidbits - + diff --git a/docs/tutorial/index.html b/docs/tutorial/index.html index 0a8cae2c2c..2c11a9a48b 100644 --- a/docs/tutorial/index.html +++ b/docs/tutorial/index.html @@ -7,7 +7,7 @@ - + -- cgit v1.2.3