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

👷🏻‍♂️Automate the build and local preview of the website #74

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

ebouchut
Copy link
Contributor

@ebouchut ebouchut commented Oct 2, 2024

This PR helps automate building and local previewing of the website.

ℹ️ ✅ Launch the below command and keep it running in a dedicated window/tab:

# cd trio-docs

sphinx-autobuild docs/EN docs/_build/html

It builds the website and runs a local Web server to preview the site live.
Each time you change a file, it rebuilds the website and hot-reloads the pages in the Web browser so that you can see the changes.
You will no longer need to reload the page you modified locally, sphinx-autobuild does it for you automatically.

See: https://pypi.org/project/sphinx-autobuild/

❌ You no longer need to rebuild the site each time you update a page:

# cd trio-docs

sphinx-build -M html docs/EN/ docs/_build/
  • ➕ Add the sphinx-autobuild dependency.
  • 📝 Add documentation on how to install trio-docs and the local preview of trio-docs

@ebouchut ebouchut marked this pull request as draft October 3, 2024 09:26
@ebouchut ebouchut marked this pull request as ready for review October 3, 2024 09:58
Rebuild Sphinx documentation on changes,
with hot reloading in the browser.

See: https://pypi.org/project/sphinx-autobuild/
 sphinx-autobuild docs/EN docs/_build/html
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.

1 participant