Commit graph

7 commits

Author SHA1 Message Date
Matt Sturgeon
aef7b53979 docs: add status to beta/deprecated version links
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
2025-06-17 23:51:07 +00:00
Matt Sturgeon
b4750c4696 ci/docs: fix base-href in matrix
For some reason, when updating `base-href` using `+=`, yq updates _all_
entries matching the LHS selection. This means that all non-main
branches get `"base-href": "/nixvim/24.11/"` in the job matrix.

This gets passed in as an overridden attr when building the docs, and is
used to determine which list item represents the currently-being-built
docs; therefore both 25.05 and 24.11 think they are 24.11...

For some reason, while `+=` does this, `=` does not. So switched to
using that.
2025-06-17 19:12:50 +00:00
Matt Sturgeon
ab0a3682cc ci/docs: use version-info.toml
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
2025-06-16 20:29:13 +00:00
Matt Sturgeon
95957f306b ci/docs: fix build ref
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Build unstable (push) Waiting to run
Documentation / Build 24.11 (push) Waiting to run
Documentation / Build 25.05 (push) Waiting to run
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Fix typo `inputs.ref` → `matrix.ref`.

This caused an empty string to be assigned to the checkout action's
`ref` input, meaning it used its default value `github.ref`.

Therefore all "versions" of the docs were actually building `main` 😂

Instead, we actually want to checkout the ref from the job's `matrix`.
2025-06-16 00:11:43 +00:00
Matt Sturgeon
7176d51a34 ci/docs: run non-build jobs on ARM
This may be marginally slower, but should be more efficient.

Continue using x86 for the main build as it will be faster.
2025-06-15 21:24:10 +00:00
Matt Sturgeon
40bf948e0e ci/docs: extract action & refactor workflow
Extract the "build" part of building & deploying the docs website into a
`build-docs` composite action.

Refactor the workflow to use a matrix job strategy; allowing each branch
to be built in parallel and in isolation.

In a subsequent job, we combine the builds into a single artifact.
2025-06-15 21:24:10 +00:00
Matt Sturgeon
91ecff36b6 ci/docs: rename workflow 2025-06-15 21:24:10 +00:00
Renamed from .github/workflows/build_documentation.yml (Browse further)