Skip to content

Commit

Permalink
Merge pull request #32 from fmigneault/fix-builddir
Browse files Browse the repository at this point in the history
fix missing build dir
  • Loading branch information
ikalnytskyi committed Apr 17, 2020
2 parents 31d4abe + 90f592b commit b446eef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -25,6 +25,10 @@ var/
*.egg
MANIFEST

# IDE
.idea/
.vscode/

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand Down
5 changes: 3 additions & 2 deletions sphinxcontrib/redoc.py
Expand Up @@ -19,6 +19,7 @@
import yaml

from six.moves import urllib
from sphinx.util.fileutil import copy_asset
from sphinx.util.osutil import copyfile, ensuredir


Expand Down Expand Up @@ -134,9 +135,9 @@ def assets(app, exception):
# need to either ensure its existence here or do not try to copy assets
# in case of failure.
if not exception:
copyfile(
copy_asset(
os.path.join(_HERE, 'redoc.js'),
os.path.join(app.builder.outdir, '_static', 'redoc.js'))
os.path.join(app.builder.outdir, '_static'))

# It's hard to keep up with ReDoc releases, especially when you don't
# watch them closely. Hence, there should be a way to override built-in
Expand Down

0 comments on commit b446eef

Please sign in to comment.