Skip to content

Conversation

@edjw
Copy link
Contributor

@edjw edjw commented May 5, 2022

This PR adds live-reload and continuous building while editing the docs

This makes it easier to preview your changes

@edjw edjw requested a review from torotil May 5, 2022 19:10
Copy link
Contributor

@torotil torotil left a comment

Choose a reason for hiding this comment

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

Thanks for documenting how to do auto-builds. Could you update the PR according to the review comments?

README.rst Outdated
Comment on lines 23 to 24
2. For continuous rebuilds and live-reload in the browser while editing the docs, run `sphinx-autobuild docs/source docs/build/html --open-browser`
3. Build the HTML version using ``make html`` (in the ``docs`` folder).
Copy link
Contributor

Choose a reason for hiding this comment

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

Putting the info for continuous rebuilds in this list makes it look like this is a necessary step in order to build the docs. I think it should rather go below the enumeration.

sphinx
guzzle-sphinx-theme
sphinx-autobuild
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?

.gitignore Outdated
coverage.xml
.pytest_cache/
docs/build
.vscode
Copy link
Contributor

Choose a reason for hiding this comment

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

I think support for particular editors should not be part of this repo. I’d recommend to add a global .gitignore instead that takes vscode into account.

# 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants