We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So when you're editing documentation, you can see the results quickly
The text was updated successfully, but these errors were encountered:
bsb will have a post-full-build hook for this soon
Sorry, something went wrong.
FWIW, you don't need it, I use this trick:
First create a file called build-docs.js that executes the docs script from package.json:
build-docs.js
docs
package.json
const exec = require("child_process").exec const packageJson = require("./package.json") exec(packageJson.scripts.docs, function(err,stdout,stderr) { console.log(stdout) if(err) console.error(stderr) })
then use nodemon to run that script when there are changes in the src/ folder, so you can add the following scripts to package.json.
nodemon
src/
{ "scripts": { "docs": "redoc --name BlaBla", "docs:watch": "nodemon --watch src/ build-docs.js", } }
You don't actually need this script, I just realised, lol 🤣
nodemon -w src/ --exec npm run docs does the trick
nodemon -w src/ --exec npm run docs
No branches or pull requests
So when you're editing documentation, you can see the results quickly
The text was updated successfully, but these errors were encountered: