Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live reload #2

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ Writing documentation
1. Edit the source files in ``docs/source``.
2. Build the HTML version using ``make html`` (in the ``docs`` folder).
3. View the result in your browser in ``docs/build``


For continuous rebuilds and live-reload in the browser while editing the docs, run `sphinx-autobuild docs/source docs/build/html --open-browser`

2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
# 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 = ['_static']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is sphinx-autoreload complaining about? Is it because the folder doesn’t exist (yet). Should we just add it as an empty folder to the repo instead?

1 change: 1 addition & 0 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sphinx
guzzle-sphinx-theme
sphinx-autobuild
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you squash this fixup commit into the one that adds this line?

13 changes: 12 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile --output-file=requirements-dev.txt requirements-dev.in
Expand All @@ -12,6 +12,8 @@ certifi==2020.12.5
# via requests
chardet==4.0.0
# via requests
colorama==0.4.4
# via sphinx-autobuild
docutils==0.17.1
# via sphinx
guzzle-sphinx-theme==0.7.11
Expand All @@ -22,6 +24,8 @@ imagesize==1.2.0
# via sphinx
jinja2==3.0.1
# via sphinx
livereload==2.6.3
# via sphinx-autobuild
markupsafe==2.0.1
# via jinja2
packaging==20.9
Expand All @@ -34,12 +38,17 @@ pytz==2021.1
# via babel
requests==2.25.1
# via sphinx
six==1.16.0
# via livereload
snowballstemmer==2.1.0
# via sphinx
sphinx==4.0.2
# via
# -r requirements-dev.in
# guzzle-sphinx-theme
# sphinx-autobuild
sphinx-autobuild==2021.3.14
# via -r requirements-dev.in
sphinxcontrib-applehelp==1.0.2
# via sphinx
sphinxcontrib-devhelp==1.0.2
Expand All @@ -52,6 +61,8 @@ sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
tornado==6.1
# via livereload
urllib3==1.26.4
# via requests

Expand Down