Commits

camlspotter committed aca1df0

fix

Comments (0)

Files changed (2)

 PAPEROPT_letter = -D latex_paper_size=letter
 ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
-.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
+.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest text
 
 help:
 	@echo "Please use \`make <target>' where <target> is one of"
-	@echo "  hatena    to make Hatena diary draft"
 	@echo "  html      to make standalone HTML files"
 	@echo "  dirhtml   to make HTML files named index.html in directories"
 	@echo "  pickle    to make pickle files"
 	@echo "  changes   to make an overview of all changed/added/deprecated items"
 	@echo "  linkcheck to check all external links for integrity"
 	@echo "  doctest   to run all doctests embedded in the documentation (if enabled)"
+	@echo "  text      to make text files"
+	@echo "  hatena    to make hatena draft texts"
 
 clean:
 	-rm -rf $(BUILDDIR)/*
 
-hatena:
-	$(SPHINXBUILD) -b hatena $(ALLSPHINXOPTS) $(BUILDDIR)/hatena
-	@echo
-	@echo "Build finished. The Hatena pages are in $(BUILDDIR)/hatena."
-
 html:
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 	@echo
 	@echo
 	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
 	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
-	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Sphinx-hatena.qhcp"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/draft.qhcp"
 	@echo "To view the help file:"
-	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Sphinx-hatena.qhc"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/draft.qhc"
 
 latex:
 	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
 	@echo "Testing of doctests in the sources finished, look at the " \
 	      "results in $(BUILDDIR)/doctest/output.txt."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text pages are in $(BUILDDIR)/text."
+
+hatena:
+	$(SPHINXBUILD) -b hatena $(ALLSPHINXOPTS) $(BUILDDIR)/hatena
+	@echo "Build finished. The draft pages are in $(BUILDDIR)/hatena."
 # -*- coding: utf-8 -*-
 #
-# Sphinx-hatena documentation build configuration file, created by
-# sphinx-quickstart on Fri Feb 11 13:04:38 2011.
+# draft documentation build configuration file, created by
+# sphinx-quickstart on Fri Feb 26 19:25:34 2010.
 #
 # This file is execfile()d with the current directory set to its containing dir.
 #
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.append(os.path.abspath('.'))
+sys.path.append(os.path.abspath('extensions'))
 
 # -- General configuration -----------------------------------------------------
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = []
+extensions = ['hatena']
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 master_doc = 'index'
 
 # General information about the project.
-project = u'Sphinx-hatena'
-copyright = u'2011, Jun FURUSE'
+project = u'draft'
+copyright = u'2010, akisute'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '0.0.0'
+version = '1.0'
 # The full version, including alpha/beta/rc tags.
-release = '0.0.0'
+release = '1.0'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 #html_file_suffix = ''
 
 # Output file base name for HTML help builder.
-htmlhelp_basename = 'Sphinx-hatenadoc'
+htmlhelp_basename = 'draftdoc'
 
 
 # -- Options for LaTeX output --------------------------------------------------
 # Grouping the document tree into LaTeX files. List of tuples
 # (source start file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
-  ('index', 'Sphinx-hatena.tex', u'Sphinx-hatena Documentation',
-   u'Jun FURUSE', 'manual'),
+  ('draft', 'draft.tex', u'draft Documentation',
+   u'akisute', 'manual'),
 ]
 
 # The name of an image file (relative to this directory) to place at the top of