You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build(docs): add scripts for fast previews of LB4 doc changes
Add a script `docs/bin/build-preview-site.sh` that creates a subset
of loopback.io site with just enough content to support fast previews
of LB4 documentation.
Add monorepo-level npm scripts to simplify usage of the new build
script.
Usage:
1. Run the script to create a new Jekyll site in `docs/_preview` dir:
$ npm run docs:prepare
2. Follow the instructions printed by the script to start Jekyll:
$ npm run docs:start
3. View the documentation.
4. Make changes to documentation files in `docs/site`.
5. Restart Jekyll (stop the running process and go to step 2).
The good parts:
- Initial build of LB4-only docs takes about 6 seconds.
(Compare to ~4 minutes for the entire docs site!)
- Incremental rebuild after changing a single file takes less
than a second.
Downsides:
- Watch mode does not work. AFAICT, Jekyll cannot watch
symlinked files stored outside of `source` directory.
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
0 commit comments