Skip to content

Commit

Permalink
Fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Aug 28, 2020
1 parent 5f9edc6 commit 7b21eff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ formats:
- pdf
python:
version: 3.5
requirements_file: ./stable-req.txt
requirements_file: ./stable-req.txt
sphinx:
configuration: src/conf.py
10 changes: 5 additions & 5 deletions src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@
p = Popen('which git', shell=True, stdout=PIPE)
git = p.stdout.read().strip()
cwd = os.getcwd()
_themes = os.path.join(cwd, '_themes/roadiz_rtd_theme')
_themes = os.path.join(cwd, '../_themes/roadiz_rtd_theme')

if not os.path.isdir(_themes):
call([git, 'clone', 'https://github.com/roadiz/roadiz_rtd_theme.git',
'_themes/roadiz_rtd_theme'])
'../_themes/roadiz_rtd_theme'])
else:
os.chdir(_themes)
call([git, 'checkout', 'master'])
call([git, 'pull'])
os.chdir(cwd)

# Remove theme demo docs avoid PDF and ePub issues
# shutil.rmtree('_themes/roadiz_rtd_theme/demo_docs', ignore_errors=True)
# shutil.rmtree('../_themes/roadiz_rtd_theme/demo_docs', ignore_errors=True)

sys.path.append(os.path.abspath('_themes/roadiz_rtd_theme'))
sys.path.append(os.path.abspath('../_themes/roadiz_rtd_theme'))

parent = os.path.dirname(os.path.dirname(__file__))
sys.path.append(os.path.abspath(parent))
Expand Down Expand Up @@ -165,7 +165,7 @@
# a list of builtin themes.
#html_theme = 'default'
html_theme = "roadiz_rtd_theme"
html_theme_path = ["_themes/roadiz_rtd_theme"]
html_theme_path = [_themes]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down

0 comments on commit 7b21eff

Please sign in to comment.