[docs] Include the Kaleidescope tutorial in the Sphinx docs build.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 2 May 2012 22:46:36 +0000 (22:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 2 May 2012 22:46:36 +0000 (22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156032 91177308-0d34-0410-b5e6-96231b3b80d8

20 files changed:
docs/Makefile
docs/conf.py
docs/tutorial/LangImpl1.html
docs/tutorial/LangImpl2.html
docs/tutorial/LangImpl3.html
docs/tutorial/LangImpl4.html
docs/tutorial/LangImpl5.html
docs/tutorial/LangImpl6.html
docs/tutorial/LangImpl7.html
docs/tutorial/LangImpl8.html
docs/tutorial/Makefile [deleted file]
docs/tutorial/OCamlLangImpl1.html
docs/tutorial/OCamlLangImpl2.html
docs/tutorial/OCamlLangImpl3.html
docs/tutorial/OCamlLangImpl4.html
docs/tutorial/OCamlLangImpl5.html
docs/tutorial/OCamlLangImpl6.html
docs/tutorial/OCamlLangImpl7.html
docs/tutorial/OCamlLangImpl8.html
docs/tutorial/index.html

index f4fb4c52ef0e4f0a50d3bf8d89f3a87569af2474..51bfab648e8dc5f8369e0e8253d995781a1098f0 100644 (file)
@@ -8,7 +8,7 @@
 ##===----------------------------------------------------------------------===##
 
 LEVEL      := ..
-DIRS       := CommandGuide tutorial
+DIRS       := CommandGuide
 
 ifdef BUILD_FOR_WEBSITE
 PROJ_OBJ_DIR = .
index df713558ca980a6b271da3d1343cfbb3a0200bc3..5a39b69de181cc991f24a0739f7b5f8046d4111f 100644 (file)
@@ -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
index 2e1746f1a66cfe966fcfa7452875312c321d7bd1..a65646f286634d131436312dbd1e1ffcf999bf26 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Tutorial Introduction and the Lexer</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 60e4f7f5e4e928c51c42d7349734fe838bb1190d..292dd4e516cd68eaacfb8226ae62bb2e832026a4 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Implementing a Parser and AST</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 22ef26c2bd16017482a15babbafdbe6705b149bf..4e9ac3ad5ff749149c87917c9991f643dfaa5c12 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Implementing code generation to LLVM IR</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index d2cac627e79f2f4c8eb947524ba7cd121c5328fe..8c5c31e76265c67d15f4a9d704c36e4e33c4cd1a 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Adding JIT and Optimizer Support</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index a42636fe593bdbdcda3179984b95ac7e8317b78f..0bb7e4f711f7d8f381d8df70801e4466f4fd9974 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Extending the Language: Control Flow</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 041af3b89c2e758a55ce616b88eca0fc34639c70..453b576dd3739a316a4c11062d90bfbeba9cfbaa 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Extending the Language: User-defined Operators</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 29b920c13bcd4c8f4d8cca84f76853f8c543f5e5..90bdeee16a834b06a5f8dc51041dcc7b9c3c317d 100644 (file)
@@ -7,7 +7,7 @@
          construction</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index eed8c03d21cac4acc77a1b8ad40d498aa6d2b0f6..efd1756f0cdc06f3e8d391207028e4d1f489c75b 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Conclusion and other useful LLVM tidbits</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
diff --git a/docs/tutorial/Makefile b/docs/tutorial/Makefile
deleted file mode 100644 (file)
index fdf1bb6..0000000
+++ /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)'
index aa2bd8760043f701417b2311c60873d882e1c115..73fe07bb840095b7fee11a31139203923c6e73f6 100644 (file)
@@ -7,7 +7,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 20e006d97c8dd15956600bf842ba8526ada3055b..dd7e07b42242bd7d6d726977d25f705221de88c9 100644 (file)
@@ -7,7 +7,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 49b62bd6c199332363a557eaf61cc70a77a4538f..a49a0b5d9c6155bf65354343c34710f761add983 100644 (file)
@@ -7,7 +7,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index dd31ded57dd560a311193e223e46a8f829e45a13..ca427eb0e080e5cc522cad81ac22cdccecbb8196 100644 (file)
@@ -7,7 +7,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index d356f126a4c1a744da93e4b99277e0002ac92dd6..feeed6a5337267fddf81c731f148702bba595ab9 100644 (file)
@@ -7,7 +7,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 480aab38f3c48d4c1951bf679ef97ae872200a52..0d1d2804e6fcb3909c29ecbb8c80972b6ab64cb2 100644 (file)
@@ -7,7 +7,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 51986b51a11660d2e4414147ae6e8816b1bb1349..d106ad0701c070c509faa3055f7e386030d4e726 100644 (file)
@@ -8,7 +8,7 @@
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
   <meta name="author" content="Erick Tryzelaar">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index eed8c03d21cac4acc77a1b8ad40d498aa6d2b0f6..efd1756f0cdc06f3e8d391207028e4d1f489c75b 100644 (file)
@@ -6,7 +6,7 @@
   <title>Kaleidoscope: Conclusion and other useful LLVM tidbits</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta name="author" content="Chris Lattner">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>
index 0a8cae2c2c9b4eda53324307a73e6af3135f547f..2c11a9a48b35596473df62efff406a92de093852 100644 (file)
@@ -7,7 +7,7 @@
   <meta name="author" content="Owen Anderson">
   <meta name="description" 
   content="LLVM Tutorial: Table of Contents.">
-  <link rel="stylesheet" href="../llvm.css" type="text/css">
+  <link rel="stylesheet" href="../_static/llvm.css" type="text/css">
 </head>
 
 <body>