зеркало из https://github.com/mozilla/gecko-dev.git
c52efbdc58
This changes the default to opening a livereload webserver after doc generation (as opposed to opening the index file). Any changes to the specified path will result in a rebuild and refresh of the browser. For example, if you run: ./mach doc tools/lint The linting docs will be built, served and opened in a browser. Modifying any file under 'tools/lint/docs' will refresh the browser with your changes. To disable this behaviour and simply open the index file, you can pass in '--no-serve'. The '--no-open' flag will continue to work (both with http and the file system). One caveat to this patch is that when generating the root docs (by running |mach doc|), we don't watch all possible doc paths (just the root one under 'tools/docs/'). This will probably be fixed in the follow-up bug 1454640. MozReview-Commit-ID: FQecuePM0zZ --HG-- extra : rebase_source : 3240402d7505e99a4f64dada309b1baec78306e1 |
||
---|---|---|
.. | ||
moztreedocs | ||
conf.py | ||
index.rst | ||
jsdoc.json | ||
mach_commands.py | ||
requirements.txt |