summary refs log tree commit diff
path: root/.github/workflows/docs.yaml
diff options
context:
space:
mode:
authorDmytro Kagirov <dmytro27kagirov@gmail.com>2023-12-11 15:18:40 +0100
committerGitHub <noreply@github.com>2023-12-11 14:18:40 +0000
commit483d22afc39d96b5e25292843806d0c0487e6446 (patch)
tree38bc9ea07c1533abd3e088061fbe448bd011fb4c /.github/workflows/docs.yaml
parentWrite signing keys with file mode 0640 (#16740) (diff)
downloadsynapse-483d22afc39d96b5e25292843806d0c0487e6446.tar.xz
Adding a version picker for Synapse docs (#16533)
Diffstat (limited to '.github/workflows/docs.yaml')
-rw-r--r--.github/workflows/docs.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 31b9dbe3fe..6b9135a627 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -60,6 +60,9 @@ jobs:
         with:
           mdbook-version: '0.4.17'
 
+      - name: Set version of docs
+        run: echo 'window.SYNAPSE_VERSION = "${{ needs.pre.outputs.branch-version }}";' > ./docs/website_files/version.js
+
       - name: Setup python
         uses: actions/setup-python@v4
         with: