This example shows how to build and serve a MkDocs documentation site on Wasmer Edge.
https://wasmer-edge-mkdocs-sample.wasmer.app/
MkDocs turns Markdown files into a static site:
mkdocs.ymlconfigures the project title, navigation, and theme.- The
docs/directory contains your Markdown content (index.md, etc.). mkdocs buildrenders everything into thesite/folder, which Wasmer Edge serves like any static site.
Because the output is plain HTML/CSS/JS, deployments are fast and serverless.
pip install mkdocs
mkdocs serveVisit http://127.0.0.1:8000/ to preview changes with live reload. To inspect the static output manually, run mkdocs build and browse the site/ directory.
- Run
mkdocs buildto generate thesite/folder. - Point your deployment (e.g.,
wasmer.toml) at thesite/directory as the publish root. - Deploy to Wasmer Edge and browse
https://<your-subdomain>.wasmer.app/.