diff --git a/userguide/content/en/docs/adding-content/repository-links.md b/userguide/content/en/docs/adding-content/repository-links.md index 237d38b87..934eec379 100644 --- a/userguide/content/en/docs/adding-content/repository-links.md +++ b/userguide/content/en/docs/adding-content/repository-links.md @@ -15,11 +15,65 @@ The Docsy [docs and blog layouts](/docs/adding-content/content/#adding-docs-and- This page shows you how to configure these links. -Currently, Docsy supports only GitHub repository links "out of the box". Since GitLab can handle the same link scheme, it should work as well. If you are using another repository such as Bitbucket and would like generated repository links, feel free to [add a feature request or update our theme](/docs/contribution-guidelines/). +Currently, Docsy supports GitHub, Azure de and Gitea repository links "out of the box". Since GitLab can handle the same link scheme as GitHub, it should work as well. If you are using another repository such as Bitbucket and would like generated repository links, feel free to [add a feature request or update our theme](/docs/contribution-guidelines/). ## Link configuration -There are four site variables you can configure in `hugo.toml`/`hugo.yaml`/`hugo.json` to set up links, as well as one in your page metadata. +There are a few site variables you can configure in `hugo.toml`/`hugo.yaml`/`hugo.json` to set up links, as well as one in your page metadata. + +{{< tabpane >}} +{{< tab header="Configuration file:" disabled=true />}} +{{< tab header="hugo.toml" lang="toml" >}} +[params.repo] + type = "github" + url = "https://github.com/google/docsy" + subdir = "userguide" + branch = "release" + project_url = "https://github.com/google/docsy +{{< /tab >}} +{{< tab header="hugo.yaml" lang="yaml" >}} +params: + repo: + type: github + url: https://github.com/google/docsy + subdir: "userguide" + branch: "release" + project_url: "https://github.com/google/docsy +{{< /tab >}} +{{< tab header="hugo.json" lang="json" >}} +{ + "params": { + "repo": { + "type": "github", + "url": "https://github.com/google/docsy", + "subdir": "userguide", + "branch"= "release", + "project_url" = "https://github.com/google/docsy + } + } +} +{{< /tab >}} +{{< /tabpane >}} + +### `repo.type` + +### `repo.url` + +### `repo.subdir` (optional) + +### `repo.branch` (optional) + +### `repo.project_url` (optional) + +### Working with git submodules (`path_base_for_subdir`) + +## GitHub configuration (deprecated) + +{{% alert title="Deprecation note" color="warning" %}} + These setting are deprecated. Use the params described in [Link Configuration][] instead. + + [Link Configuration]: #link-configuration +{{% /alert %}} ### `github_repo`