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.
This commit is contained in:
Gusted 2025-02-21 14:43:52 +01:00
parent 050b88d8cb
commit c195cc591c
No known key found for this signature in database
GPG key ID: FD821B732837125F

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/ &