File tree 2 files changed +10
-14
lines changed
2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,6 @@ With nix and flakes, run:
87
87
88
88
nix develop -c make html
89
89
90
- With nix and flakes, and to autobuild run:
91
-
92
- .. code-block :: bash
93
-
94
- nix develop -c sphinx-autobuild . _build/html
95
-
96
90
With nix and no flakes, run:
97
91
98
92
.. code-block :: bash
@@ -105,16 +99,11 @@ To rebuild the book everytime any ``*.rst*`` file changes do:
105
99
106
100
find . -name " *.rst" | entr -sc ' <your-build-command-here>'
107
101
108
- or use ``sphinx-autobuild ``:
109
-
110
- .. code-block :: bash
111
-
112
- sphinx-autobuild . _build/html
113
-
102
+ or use the ``autobuild.sh `` script in the scripts directory:
114
103
115
- You can then check the output in ``_build/html `` or load directory into whatever
104
+ You can then check the output in ``result/indexhtml `` or load that directory into whatever
116
105
browser you'd like:
117
106
118
107
.. code-block :: bash
119
108
120
- firefox _build /html/index.html
109
+ firefox result /html/index.html
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ #
3
+
4
+ # after a lot of hassle this simple solution is just better then sphinx-autobuild
5
+ # this is intended to be used from the root directory of the book
6
+
7
+ find . -name ' *.rst' | entr -sc ' nix build -L --no-sandbox && $(firefox --new-tab $(pwd)/result/html/index.html)'
You can’t perform that action at this time.
0 commit comments