Skip to content

Commit a31e95a

Browse files
committed
Add --fast mode
Closes #232.
1 parent 2f31da5 commit a31e95a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ You can also use the `--serve` option to `build.sh` to automatically serve the r
5656

5757
Now you're ready to edit the `html/source` file—and after you make your changes, you can run the `build.sh` script again to see the new output.
5858

59+
## Fast local iteration
60+
61+
There are a number of options to disable certain parts of the build process to speed up local iteration. Run `./build.sh help` to see them all, or just use the `--fast` flag to get maximally-fast builds.
62+
5963
## A note on Git history
6064

6165
Your clone doesn't need the HTML standard's complete revision history just for you to build the spec and contribute patches. So, if you use `build.sh` to create the clone, we don't start you out with a clone of the history. That makes your first build finish much faster. And if later you decide you do want to clone the complete history, you can still get it, by doing this:

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ function processCommandLineArgs {
136136
echo " -l|--no-lint Don't lint before building; just build."
137137
echo " -h|--no-highlight Don't syntax-highlight the output."
138138
echo " -p|--single-page Only build the single-page variant of the spec."
139+
echo " -f|--fast Alias for --no-update --no-lint --no-highlight --single-page."
139140
echo " -q|--quiet Don't emit any messages except errors/warnings."
140141
echo " -v|--verbose Show verbose output from every build step."
141142
exit 0
@@ -152,6 +153,12 @@ function processCommandLineArgs {
152153
-p|--single-page)
153154
SINGLE_PAGE_ONLY=true
154155
;;
156+
-f|--fast)
157+
DO_UPDATE=false
158+
DO_LINT=false
159+
DO_HIGHLIGHT=false
160+
SINGLE_PAGE_ONLY=true
161+
;;
155162
-d|--docker)
156163
USE_DOCKER=true
157164
;;

0 commit comments

Comments
 (0)