Skip to content

defenseunicorns/uds-docs

Repository files navigation

UDS Documentation Site

This is the UDS documentation site, built with Starlight.

Repository Scope

  • The docs site framework: Astro + Starlight and supporting plugins/config (e.g., astro.config.mjs, Tailwind, components under src/).
  • The CI/publishing pipeline: configuration used to build and publish the site to Netlify (see netlify.toml and GitHub Actions under .github/workflows/).
  • Integration scripts: tooling that pulls reference/troubleshooting content from upstream repos (see scripts/integration-script.sh).
  • Some first‑party content: high‑level and tutorial pages maintained here (e.g., src/content/docs/getting-started/, src/content/docs/tutorials/).

Most reference documentation is sourced from upstream repositories (see “Document Sourcing” below). If you are updating reference docs, change them in their upstream repos rather than here.

In order to get started with local development, the simplest way to do so is by utilizing your usual npm install and npm run dev commands, as described below. You may also build this project as a Zarf package/UDS bundle. Please ensure you build and tag the image as uds-docs:

docker build -t uds-docs:latest .

Note

The above image is based on node:lts and nginx-unprivileged.

This project uses TailwindCSS.

Starlight Basics

Project Structure

In this project, you'll see the following folders and files:

.
├── public/
├── src/
│   ├── assets/
│   ├── content/
│   │   ├── docs/
│   ├── content.config.ts
│   └── env.d.ts
├── astro.config.mjs
├── package.json
└── tsconfig.json

Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.

Images can be added to src/assets/ and embedded in Markdown with a relative link.

Static assets, like favicons, can be placed in the public/ directory.

Document Sourcing

High‑level docs are hosted within this repository (e.g., src/content/docs/getting-started/). Reference and troubleshooting docs are sourced from upstream repositories using scripts/integration-script.sh and then integrated into this site. The primary sources of truth for reference content are:

If you need to update reference documentation for any of the above, make the change in the respective upstream repository. This site periodically ingests those docs; their placement in the sidebar is driven by astro.config.mjs.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

About

The UDS documentation hub.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 22