Skip to content

Commit b6bd479

Browse files
committed
Set READTHEDOCS_VERSION_NAME
1 parent 262457c commit b6bd479

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release_composer_package.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,16 @@ jobs:
9797

9898
- name: Build developer documentation
9999
run: mkdocs build --strict
100+
env:
101+
# The cards() macro versions its links from this (as on RTD);
102+
# without it they'd point at en/latest instead of this branch.
103+
READTHEDOCS_VERSION_NAME: ${{ matrix.branch }}
100104

101105
- name: Build user documentation
102106
run: mkdocs build --strict
103107
working-directory: user-docs
108+
env:
109+
READTHEDOCS_VERSION_NAME: ${{ matrix.branch }}
104110

105111
- name: Resolve PHP API classes to vendor paths
106112
run: php tools/llm_package/dump_class_paths.php site user-docs/site class_paths.json

0 commit comments

Comments
 (0)