Skip to content

Commit

Permalink
[docs] Include the Kaleidescope tutorial in the Sphinx docs build.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156032 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed May 2, 2012
1 parent 062c0a5 commit f2c696f
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 52 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##

LEVEL := ..
DIRS := CommandGuide tutorial
DIRS := CommandGuide

ifdef BUILD_FOR_WEBSITE
PROJ_OBJ_DIR = .
Expand Down
12 changes: 8 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@
# 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
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl2.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl3.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl4.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl5.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl6.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl7.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/LangImpl8.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
30 changes: 0 additions & 30 deletions docs/tutorial/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl2.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl3.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl4.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl5.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl6.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl7.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl8.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f2c696f

Please sign in to comment.