File tree Expand file tree Collapse file tree 5 files changed +273
-10
lines changed
Expand file tree Collapse file tree 5 files changed +273
-10
lines changed Original file line number Diff line number Diff line change 1818# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919% : Makefile
2020 @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
21+
22+ livehtml :
23+ uv run sphinx-autobuild -b dirhtml --pre-build " rm -rf $( BUILDDIR) " " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
Original file line number Diff line number Diff line change 6969 },
7070 "awesome_external_links" : True ,
7171 "main_nav_links" : {
72- "Home" : "https://judge0.github.io/judge0-python/ " ,
72+ "Home" : "index " ,
7373 "Judge0" : "https://judge0.com/" ,
7474 },
7575}
Original file line number Diff line number Diff line change @@ -39,22 +39,21 @@ Preparing the development setup
3939 Building documentation
4040----------------------
4141
42- Documentation is built using Sphinx. To build the documentation, run the
42+ Documentation is built using Sphinx. While working on a documentation, you can run
4343
4444.. code-block :: console
4545
4646 $ cd docs
47- $ make html
47+ $ make livehtml
4848
49- You should inspect the changes in the documentation by opening the
50- ``docs/build/html/index.html `` file in your browser.
49+ The ``make livehtml `` command will start a live HTTP server, watch the `docs ` directory for changes,
50+ and rebuild the documentation on every change, enabling you to continuously work on the documentation,
51+ without having to manually rebuild it after every change.
5152
52- .. note ::
53- If you are having trouble with the documentation and are seeing unexpected
54- output, delete the ``docs/build `` directory and rerun the ``make html `` command.
53+ You can inspect the changes by opening the ``http://localhost:8000 `` in your browser.
5554
56- You'll see a different output since the documentation is build with
57- `sphinx-multiversion <https://github.com/sphinx-contrib/multiversion >`_ extension.
55+ .. You'll see a different output since the documentation is build with
56+ .. `sphinx-multiversion <https://github.com/sphinx-contrib/multiversion>`_ extension.
5857
5958 Testing
6059-------
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ docs = [
4848 " sphinxawesome-theme==5.3.2" ,
4949 " sphinx-autodoc-typehints==2.3.0" ,
5050 " sphinx-multiversion==0.2.4" ,
51+ " sphinx-autobuild>=2024.10.3" ,
5152]
5253dev = [{ include-group = " test" }, { include-group = " docs" }]
5354
You can’t perform that action at this time.
0 commit comments