summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-09-05 19:44:47 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-09-05 19:44:47 +0000
commitaadf71570256992a7baf794964499a17b89e3997 (patch)
tree47d15be62f3e9b6bfc213b88f368f025c0266c3f
parentc10d5e9dae40801622c73237b484d51da73f77b9 (diff)
downloadllvm-aadf71570256992a7baf794964499a17b89e3997.tar.gz
llvm-aadf71570256992a7baf794964499a17b89e3997.tar.bz2
llvm-aadf71570256992a7baf794964499a17b89e3997.tar.xz
[Docs] Fix Sphinx incremental build. Patch by Sean Silva!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163235 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/Makefile.sphinx4
-rw-r--r--docs/_themes/llvm-theme/layout.html (renamed from docs/llvm-theme/layout.html)0
-rw-r--r--docs/_themes/llvm-theme/static/contents.png (renamed from docs/llvm-theme/static/contents.png)bin202 -> 202 bytes
-rw-r--r--docs/_themes/llvm-theme/static/llvm-theme.css (renamed from docs/llvm-theme/static/llvm-theme.css)0
-rw-r--r--docs/_themes/llvm-theme/static/logo.png (renamed from docs/llvm-theme/static/logo.png)bin9864 -> 9864 bytes
-rw-r--r--docs/_themes/llvm-theme/static/navigation.png (renamed from docs/llvm-theme/static/navigation.png)bin218 -> 218 bytes
-rw-r--r--docs/_themes/llvm-theme/theme.conf (renamed from docs/llvm-theme/theme.conf)0
-rw-r--r--docs/conf.py16
8 files changed, 7 insertions, 13 deletions
diff --git a/docs/Makefile.sphinx b/docs/Makefile.sphinx
index 21f66488b2..81c13de9cd 100644
--- a/docs/Makefile.sphinx
+++ b/docs/Makefile.sphinx
@@ -46,6 +46,10 @@ clean:
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
+ @# FIXME: Remove this `cp` once HTML->Sphinx transition is completed.
+ @# Kind of a hack, but HTML-formatted docs are on the way out anyway.
+ @echo "Copying legacy HTML-formatted docs into $(BUILDDIR)/html"
+ @cp -a *.html tutorial $(BUILDDIR)/html
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
dirhtml:
diff --git a/docs/llvm-theme/layout.html b/docs/_themes/llvm-theme/layout.html
index 746c2f56c8..746c2f56c8 100644
--- a/docs/llvm-theme/layout.html
+++ b/docs/_themes/llvm-theme/layout.html
diff --git a/docs/llvm-theme/static/contents.png b/docs/_themes/llvm-theme/static/contents.png
index 7fb82154a1..7fb82154a1 100644
--- a/docs/llvm-theme/static/contents.png
+++ b/docs/_themes/llvm-theme/static/contents.png
Binary files differ
diff --git a/docs/llvm-theme/static/llvm-theme.css b/docs/_themes/llvm-theme/static/llvm-theme.css
index f684d00ce4..f684d00ce4 100644
--- a/docs/llvm-theme/static/llvm-theme.css
+++ b/docs/_themes/llvm-theme/static/llvm-theme.css
diff --git a/docs/llvm-theme/static/logo.png b/docs/_themes/llvm-theme/static/logo.png
index 18d424c53c..18d424c53c 100644
--- a/docs/llvm-theme/static/logo.png
+++ b/docs/_themes/llvm-theme/static/logo.png
Binary files differ
diff --git a/docs/llvm-theme/static/navigation.png b/docs/_themes/llvm-theme/static/navigation.png
index 1081dc1439..1081dc1439 100644
--- a/docs/llvm-theme/static/navigation.png
+++ b/docs/_themes/llvm-theme/static/navigation.png
Binary files differ
diff --git a/docs/llvm-theme/theme.conf b/docs/_themes/llvm-theme/theme.conf
index 573fd78aba..573fd78aba 100644
--- a/docs/llvm-theme/theme.conf
+++ b/docs/_themes/llvm-theme/theme.conf
diff --git a/docs/conf.py b/docs/conf.py
index f7b3a07de8..a1e9b5f6e2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -98,7 +98,7 @@ html_theme = 'llvm-theme'
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
-html_theme_path = ["."]
+html_theme_path = ["_themes"]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
@@ -134,18 +134,7 @@ html_sidebars = {'index': 'indexsidebar.html'}
# Additional templates that should be rendered to pages, maps page names to
# template names.
-#
-# We load all the old-school HTML documentation pages into Sphinx here.
-basedir = os.path.dirname(__file__)
-html_additional_pages = {}
-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
+#html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
@@ -226,6 +215,7 @@ man_pages = []
# Automatically derive the list of man pages from the contents of the command
# guide subdirectory.
+basedir = os.path.dirname(__file__)
man_page_authors = "Maintained by The LLVM Team (http://llvm.org/)."
command_guide_subpath = 'CommandGuide'
command_guide_path = os.path.join(basedir, command_guide_subpath)