This website requires JavaScript.
Explore
Help
Sign in
foster
/
forgejo-docs
Watch
0
Star
0
Fork
You've already forked forgejo-docs
0
mirror of
https://codeberg.org/forgejo/docs.git
synced
2024-11-22 17:48:39 -05:00
Code
Issues
Activity
681f3a8369
forgejo-docs
/
.gitignore
4 lines
25 B
Text
Raw
Normal View
History
Unescape
Escape
add CI to preview PRs (#5) TODO: - [x] clone from website instead of caesar - [x] skip the proof of change commit Preview: https://forgejo.codeberg.page/@docs_pull_5/ This is a simplistic approach to get started with previews. It copies the website, moves the docs under `/forgejo-docs/{{ base branch }}`, create the website and publishes it for preview. No doubt the actual workflow will be different but that needs to be decided. * Added a WEBSITETOKEN secret created from the forgejo-website user. It is a token with write access to repositories. https://codeberg.org/forgejo/docs/settings/actions/secrets. Contrary to woodpecker it is not in an environment variable but will be replaced when inserting `${{ secrets.WEBSITETOKEN }}` somewhere * In the environment the variable was replaced CI_COMMIT_PULL_REQUEST → `${{ env.GITHUB_REF_NAME }}` * The preview is published at https://forgejo.codeberg.page/@docs_pull_N/ instead of https://forgejo.codeberg.page/@pull_N/ * The `$$` were replaced with `$` in the script because Forgejo Actions does not interpret `$` and therefore does not need escaping them to `$$` Reviewed-on: https://codeberg.org/forgejo/docs/pulls/5 Reviewed-by: Loïc Dachary <dachary@noreply.codeberg.org> Reviewed-by: Caesar Schinas <caesar@caesarschinas.com> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
2023-08-16 05:31:01 -04:00
*~
add linting for docs markdown content
2023-08-16 11:34:40 -04:00
node_modules
tooling: add live preview script
2023-08-19 18:20:00 -04:00
.preview
Copy permalink