[docs] Include the Kaleidescope tutorial in the Sphinx docs build.

llvm-svn: 156032
This commit is contained in:
Daniel Dunbar 2012-05-02 22:46:36 +00:00
parent 2331bbfb4e
commit 340fdf2991
20 changed files with 26 additions and 52 deletions

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL := ..
DIRS := CommandGuide tutorial
DIRS := CommandGuide
ifdef BUILD_FOR_WEBSITE
PROJ_OBJ_DIR = .

View 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

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View File

@ -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)'

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>