Skip to content
radius-projectPublic

About

Radius Docs

Topics

Resources

Contributing

Stars

27 stars

Watchers

6 watching

Forks

Latest commit

 

History

1,520 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📕 Radius documentation

This repo contains the source for the Radius documentation.

📦 Framework

Radius uses Hugo to generate the docs site.

Theme

The Docsy theme is used to style the generated site.

Auto-generated docs

The rad CLI reference docs are auto-generated via Cobra doc gen.

👨‍💻 Contributing

Visit the docs contribution guide to learn how to contribute to the docs.

Build or serve locally

The repository root is the Hugo project. Use the Node.js version in .node-version and Go as specified in go.mod. From the root:

npm ci
npm start

Open the URL printed by Hugo. In a Codespace, the container runs npm ci for you. To build the static site instead, run npm run build; Hugo writes it to public/.

The lockfile supplies Hugo and Dart Sass; no global installation is needed. After updating Docsy in go.mod, run npm run hugo -- mod npm pack and npm install to refresh the theme workspace and lockfile. The adm-zip override pins the Hugo installer's patched ZIP reader on Windows; remove it once hugo-extended requires a patched version.

Validate Bicep configuration

From the repository root, run the Bash release tag-selection tests (requires jq):

bash .github/scripts/set_bicep_extension_tags_test.sh

The root bicepconfig.json uses the development edge tags. New docs releases are generated from the current edge source configuration: the release script selects the major.minor channel for stable releases and the full version for release candidates. It updates tags only on canonical GHCR development references, preserving explicit stable tags, manifest pins, existing ACR contracts, custom registries, and local extensions. The existing version-only release dispatch is unchanged; no minor-version cutoff decides the registry. Previously published 0.62 docs and applications retain ACR.

The release script publishes both the site configuration and Bicep configuration in one verified App-signed commit. Do not run it for local validation: it writes commits and release refs on GitHub.

The release integration tests use a local gh stub and temporary repositories, without publishing anything. On Linux, run:

bash .github/scripts/release-docs_test.sh

These tests require GNU sed and base64, matching the release runner.

Bicep validation uses v0.46.1, with experimentalFeaturesEnabled.ociEnabled enabled in the effective configuration. Both production packages have public development edge tags. Point BICEP_PATH at a directory containing that bicep binary and run:

BICEP_PATH=/path/to/bicep-directory python3 .github/scripts/validate_bicep.py

This command restores extensions and compiles the examples; it does not deploy them. An unavailable public tag blocks this check. Public development artifacts do not establish stable or release-candidate availability. Radius v0.61.1 supplies a compatible compiler, but does not establish a minimum release for GHCR defaults. Before the documentation cutover, identify the release containing those defaults and verify its generated configurations and corresponding published artifacts with the released CLI. A standalone compiler check does not replace that verification.

☁ Hosting

The Publish workflow deploys one GitHub Pages artifact with two versions:

  • latest is the newest stable vMAJOR.MINOR docs branch, selected by version number. A branch whose chart_version is still a release candidate does not become latest.
  • edge follows the default edge branch.

URLs without a channel open the corresponding stable page: / opens /latest/, and /installation/ opens /latest/installation/. Unversioned downloads such as /samples/demo/app.bicep serve the stable file directly. The Docsy menu shows edge or latest (X.Y) using the release branch's version. Switching keeps the current page when it exists in both channels.

For each release candidate, the core Radius release process dispatches Validate release docs on edge. That read-only workflow checks the exact edge commit it runs on: the release configuration for the version must apply cleanly, and the site must build with it and the Radius Swagger from the matching release tag. It writes nothing to the repository, deploys nothing, and updates no search index. The coordinator records that commit as the docs snapshot.

For the final release of a new minor version (X.Y.0), the coordinator dispatches Release docs on edge with the version and the last validated snapshot. That workflow rejects any other version and any commit that isn't reachable from edge. It creates or fast-forwards the vMAJOR.MINOR docs branch to the snapshot plus one commit that changes only release configuration, so later edge changes are not released. The default branch stays edge, and no workflow merges release branches back into edge. To fix a supported release, including a patch release's chart_version, merge the fix into edge, then backport it to vX.Y in a separate pull request.

Pushes to edge rebuild both versions. A push or merged pull request on a release branch triggers the same publisher through Website, including on branches cut before this migration. The publisher reads the current tip of the newest stable branch, not the commit that cut the release. A typo fix on that branch therefore updates /latest/ and the unversioned URLs without a new tag or a merge into edge. A fix on an older branch does not change which branch serves /latest/.

Publish also rebuilds daily at 16:17 UTC to catch changes for which GitHub didn’t emit a push workflow run. To rebuild manually, run it on edge. Pull requests to either published branch get a downloadable docs-preview-* artifact; extract it and run python -m http.server 8000 from the extracted directory. Pull requests never deploy to Pages.

For the first deployment, set Settings → Pages → Source to GitHub Actions and allow edge in Settings → Environments → github-pages → Deployment branches and tags. The workflow reads the host and base path from actions/configure-pages, so the version menu, assets, and page links follow the configured domain without a workflow edit. Only deployments to docs.radapp.io update the production Algolia indices; previews use Docsy's per-version search.

Previously cut branches retain their original site layout and workflows. The publisher locates their Hugo project in docs/ and uses the pinned theme and Sass tools from edge for pre-migration releases without changing their content. Backport the replacement website.yaml to a maintained release branch to stop its old Azure publisher; keep the workflow name so its pushes still notify Pages.

Code of Conduct

Please refer to our Radius Community Code of Conduct

About

Radius Docs

Topics

Resources

Contributing

Stars

27 stars

Watchers

6 watching

Forks

Used by

Contributors

Languages