Skip to content

Commit

Permalink
fix conf.py and docs source path according to read the docs search path
Browse files Browse the repository at this point in the history
  • Loading branch information
myuwono committed Feb 3, 2017
1 parent 8d95b17 commit a086f75
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def set_properties(project):

# Docs
project.depends_on("sphinx-rtd-theme", "0.1.9")
project.set_property("sphinx_config_path", "docs/source")
project.set_property("sphinx_source_dir", "docs/source")
project.set_property("sphinx_config_path", "docs")
project.set_property("sphinx_source_dir", "docs")
project.set_property("sphinx_output_dir", "docs/_build")

# Project
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = CovataDeltaPythonSDK
SOURCEDIR = source
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions docs/source/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@

import os
import sys
sys.path.insert(0, os.path.abspath('../../src/main/python'))

print(os.path.abspath('../../src/main/python'))
sys.path.insert(0, os.path.abspath('../src/main/python'))

# -- General configuration ------------------------------------------------

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=CovataDeltaPythonSDK

Expand Down

0 comments on commit a086f75

Please sign in to comment.