0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-03-13 09:58:07 -04:00

fix: preview script set release-schedule

- Ref: 4d8bc434a1
- Add a symbolic link for the current `release-schedule.json` to the
`forgejo-docs/next/release-schedule.json` location, so the forgejo
website knows which releases are stable, LTS and when they are EOL. This
is required to make the forgejo website run properly.

(cherry picked from commit c195cc591c)
This commit is contained in:
Gusted 2025-02-21 14:43:52 +01:00 committed by forgejo-backport-action
parent eb8d6e403c
commit 5232e628ff

View file

@ -37,6 +37,9 @@ rm -rf ./public/images/$current_branch
mkdir -p $(dirname ./src/content/images/$current_branch) # in case of branch names with slashes
ln -s $repo_path/images/ ./public/images/$current_branch
rm -rf ./forgejo-docs/next/release-schedule.json
ln -s $repo_path/release-schedule.json ./forgejo-docs/next/release-schedule.json
# once the dev server is running, open the current docs branch in the browser
sleep 3 && $open_cmd http://localhost:4321/docs/$current_branch/ &