holos-run / holos

Holos - The Holistic platform manager
https://holos.run
Apache License 2.0
1 stars 0 forks source link

doc/website: add holos website command to serve docusaurus (#84) #191

Closed jeffmccune closed 2 months ago

jeffmccune commented 2 months ago

Previously docs are not published. This patch adds Docusaurus into the doc/website directory which is also a Go package to embed the static site into the executable.

Serve the site using http.Server with a h2c handler with the command:

holos website --log-format=json --log-drop=source

The website subcommand is intended to be run from a container as a Deployment. For expedience, the website subcommand doesn't use the signals package like the server subcommand does. Consider using it for graceful Deployment restarts.

Refer to https://github.com/ent/ent/tree/master/doc/website

Closes: #84