Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add dev task for docs site (#1173)
Adds a new dev task that will spin up the docs site locally for previewing documentation changes. Initially I tested this with `docker` for portability but it did not end up really being more portable (Astro doesn't have a dev docker image) and caused some issues with hot-reloading. The current task will clone the docs repo into a local path, symlink the core content, and then run the dev setup task to run the Astro server. I also fixed a few warnings about invalid code block types. Notes: - This task will run and hang until it is ended (i.e. with something like `ctrl-c`). This allows users to spin up the dev docs site for long running testing of docs previews. - Docs are hot-reloaded based on the local content in the `docs/` directory. This is handled via Astro's dev mode and symlinks to ensure that changes can be done to the actual source. - Docs for CLI/identity-config are NOT cloned in. This can lead to some 404s from the overview page, but otherwise does not cause any issues. This was done to keep the setup simple and focused on core (similar tasks could be added to CLI/identity-config repos). Fixes #712 - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) Run: ``` uds run dev-docs ``` And validate that the dev docs site starts up and can be browsed successfully (will be at `http://localhost:4321/`). - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md) followed Co-authored-by: Chance <139784371+UnicornChance@users.noreply.github.com>
- Loading branch information