Automatically serves ./docs (or another) workspace directory via 'browser-sync' in the background.
"features": {
"ghcr.io/thediveo/devcontainer-features/docsify:1": {}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| port | TCP port serving the docsified documentation | string | 3300 |
| docs-path | workspace relative directory to serve from | string | docs |
| reload-delay | time in milliseconds to delay the reload event following file changes | string | 2000 |
| reload-debounce | time in milliseconds to restrict the frequency in which browser:reload events can be emitted to connected clients | string | 5000 |
This feature has a soft dependency on ghcr.io/devcontainers/features/node –
depending on you base image you already have a suitable node, otherwise you
might want to also reference the above node feature.
For example:
{
"features": {
"ghcr.io/devcontainers/features/node:2": {}, // unless base image has node
"ghcr.io/thediveo/devcontainer-features/docsify:1": {}
}
}If the directory configured in the docs-path option does not exist, it is
automatically created when the devcontainer starts.
If the directory configured in the docs-path does not contain any
index.html, both a starter index.html as well as README.md will be
created.
Tested with:
- ghcr.io/almalinux/almalinux,
- mcr.microsoft.com/devcontainers/base:debian,
- fedora,
- mcr.microsoft.com/devcontainers/base:ubuntu.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.