Browse Source

trying to make this rtd compatible

digital 7 years ago
parent
commit
c012316b58
3 changed files with 6 additions and 6 deletions
  1. 3 3
      Makefile
  2. 2 2
      conf.py
  3. 1 1
      setup.py

+ 3 - 3
sphinx/Makefile → Makefile

@@ -19,12 +19,12 @@
 # along with BeeWatch.  If not, see <http://www.gnu.org/licenses/>.
 
 # You can set these variables from the command line.
-SPHINXOPTS    = -c ../sphinx/
+SPHINXOPTS    = -c sphinx/
 # SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
 SPHINXPROJ    = BeeWatch
-SOURCEDIR     = ../
-BUILDDIR      = ../docs
+SOURCEDIR     = ./
+BUILDDIR      = docs/
 
 # Put it first so that "make" without argument is like "make help".
 help:

+ 2 - 2
sphinx/conf.py → conf.py

@@ -38,7 +38,7 @@ extensions = [
 ]
 
 # Add any paths that contain templates here, relative to this directory.
-templates_path = ['templates']
+templates_path = ['sphinx/templates']
 
 # The suffix(es) of source filenames.
 # You can specify multiple suffix as a list of string:
@@ -98,7 +98,7 @@ html_theme = 'sphinx_rtd_theme'
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['static']
+html_static_path = ['sphinx/static']
 
 
 # -- Options for HTMLHelp output ------------------------------------------

+ 1 - 1
setup.py

@@ -20,7 +20,7 @@ import sys
 import os
 
 if sys.argv[1] == "install":
-    os.system("(cd sphinx;make html)")
+    os.system("make html")