Deploy Your OpenBook
Once all files are in place, in order to get the content live on the internet, one must convert the files to barebones HTML, CSS, and JavaScript -- the language of the internet. Luckily, OpenBook does all of this for you, just issue one command.
- Within a command-line interface (e.g. MacOS Terminal or Windows PowerShell), run the following command:
npm run build
The static files are generated into the build
folder.
Deploy your site
- Test your production build locally.
npm run serve
The production-ready build is now available at http://localhost:3000/. Navigate the site, and double check before deploying to a public internet. This is also the time to test the search functionality.
You can now deploy the build
folder almost anywhere easily, for free or very small cost. Read the handy Deployment Guide at Docusaurus.io.