Skip to content

Commit

Permalink
Added sphinx-autobuild (#111)
Browse files Browse the repository at this point in the history
* Added sphinx-autobuild

* sphinx-autobuild in the readme

* Clarification
  • Loading branch information
LouisKamp authored Oct 29, 2024
1 parent 9c23415 commit 194f23d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ linkcheck:
@echo
@echo "Check finished. Report is in $(LINKCHECKDIR)."

livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) --ignore docs/_static/course_switcher.json --ignore docs/timetable/timetable.rst
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The steps can be outlined like this:

2. Install the requirements:

python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements.txt sphinx-autobuild
# currently there is a blocking dependency on some of the
# packages listed in requirements.txt, however, since pip
# will allow updating a package that breaks compatibility, we
Expand All @@ -37,19 +37,25 @@ The steps can be outlined like this:
# :fingers_crossed:
python3 -m pip install -U "sphinx>=7.2.5"

3. Build documentation
3. Development server

make livehtml

This will open a local webserver that auto-reloads whenever you make
changes to the `rst` documentation or any files in the `docs/` directory.

4. Build documentation

make

Now the documentation is build and can be found in `build/html`.

4. Open the documentation:
5. Open the documentation:

firefox build/html/index.html

And you should be ready to see the just build documentation.


Running Locally in Podman
-------------------------

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ sphinx-design
sphinxcontrib-jquery

# yaml
pyyaml
pyyaml

0 comments on commit 194f23d

Please sign in to comment.