diff --git a/services/user-guide/gitea/gitea-pages.md b/services/user-guide/gitea/gitea-pages.md index 27b8c2f1..ed68f514 100644 --- a/services/user-guide/gitea/gitea-pages.md +++ b/services/user-guide/gitea/gitea-pages.md @@ -1,2 +1,13 @@ # Gitea Pages -Available under {YourOrg}.pages.psi.ch +There is two ways to publish your content with pages, both are explained below. If you want to have your pages published to the internet, they need to be added to PSI reverse proxy by security team. SNOW workflow to request such is requested. In the meantime you can send an email [Gitea Support](mailto:gitea@psi.ch). +Pages are always published with your organization as subdomain of `*.pages.psi.ch` + + +## Organization.pages.psi.ch +If you want to publish your content in the "root directory" of your organization you have to create a repository called `gitea-pages`. Within this repository all content in the branch `gitea-pages` will be published. You may have other branches too. + +## Organization.pages.psi.ch/Repository +If you just put a branch `gitea-pages` in any repository in your organization, the repository name will be used as location in the URL like shown in the chapters title. You may have multiple Repos with a "Pages Branch" + +## Automated Pages +If you want to look at an example you can have a look at https://gitea.psi.ch/linux/gitea-pages. We use the master branch to edit Markdown files and use gitea-actions to publish its content as html to the gitea-pages branch. diff --git a/services/user-guide/gitea/gitea-snippets.md b/services/user-guide/gitea/gitea-snippets.md index fdbfb087..ce101a48 100644 --- a/services/user-guide/gitea/gitea-snippets.md +++ b/services/user-guide/gitea/gitea-snippets.md @@ -1,2 +1,10 @@ # Gitea Snippets -Snippet Server for Gitea has SSO with gitea.psi.ch +To publish snippets you need to be logged in with your PSI account. If you have an active login token with https://gitea.psi.ch (Logged in to GUI) you can just click `Login with PSI Gitea` to login. Snippets may be viewed without authentication to use it in automation processes. When you are logged in you can click "New" to create a snippet. On the bottom right you can choose the visibility of your snippet: + +If you want to edit your snippets with a IDE you can only clone with HTTPS. (SSH disabled) + +- Public, every logged in User can browse your snippets in the "All" menue. +- Unlisted, the snippet is only visible with a direct link. +- Private, the snippet is only visible to you. + +You may embed a snippet with the given link.