aboutsummaryrefslogtreecommitdiff
path: root/themes/docsy/userguide/content/en/docs/Adding content/repository-links.md
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2019-10-06 21:10:46 +0200
committerDimitri Staessens <[email protected]>2019-10-06 21:10:46 +0200
commit568553394d0a8b34668a75c9839a0f1f426469b2 (patch)
tree175c08844f05611b059ba6900fb6519dbbc735d2 /themes/docsy/userguide/content/en/docs/Adding content/repository-links.md
parentd5d6f70371958eec0679831abd283498ff2731e5 (diff)
downloadwebsite-568553394d0a8b34668a75c9839a0f1f426469b2.tar.gz
website-568553394d0a8b34668a75c9839a0f1f426469b2.zip
theme: Switch to docsy theme
Diffstat (limited to 'themes/docsy/userguide/content/en/docs/Adding content/repository-links.md')
-rw-r--r--themes/docsy/userguide/content/en/docs/Adding content/repository-links.md47
1 files changed, 47 insertions, 0 deletions
diff --git a/themes/docsy/userguide/content/en/docs/Adding content/repository-links.md b/themes/docsy/userguide/content/en/docs/Adding content/repository-links.md
new file mode 100644
index 0000000..72eb305
--- /dev/null
+++ b/themes/docsy/userguide/content/en/docs/Adding content/repository-links.md
@@ -0,0 +1,47 @@
+---
+title: "Repository Links"
+linkTitle: "Repository Links"
+weight: 8
+description: >
+ Help your users interact with your source repository.
+---
+
+The Docsy [docs and blog layouts](/docs/adding-content/content/#adding-docs-and-blog-posts) include links for readers to edit the page or create issues for your docs or project via your site's source repository. The current generated links for each docs or blog page are:
+
+* **Edit this page**: Brings the user to an editable version of the page content in their fork (if available) of your docs repo. If the user doesn't have a current fork of your docs repo, they are invited to create one before making their edit. The user can then create a pull request for your docs.
+* **Create documentation issue**: Brings the user to a new issue form in your docs repo with the name of the current page as the issue's title.
+* **Create project issue** (optional): Brings the user to a new issue form in your project repo. This can be useful if you have separate project and docs repos and your users want to file issues against the project feature being discussed rather than your docs.
+
+This page shows you how to configure these links using your `config.toml` file.
+
+Currently Docsy supports only GitHub repository links "out of the box". 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 three variables you can configure in `config.toml` to set up links:
+
+### `github_repo`
+
+The URL for your site's source repository. This is used to generate the **Edit this page** and **Create documentation issue** links.
+
+```toml
+github_repo = "https://github.com/google/docsy"
+```
+
+### `github_subdir` (optional)
+
+Specify a value here if your content directory is not in your repo's root directory. For example, this site is in the `userguide` subdirectory of its repo. Setting this value means that your edit links will go to the right page.
+
+```toml
+github_subdir = "userguide"
+```
+
+### `github_project_repo` (optional)
+
+Specify a value here if you have a separate project repo and you'd like your users to be able to create issues against your project from the relevant docs. The **Create project issue** link appears only if this is set.
+
+```toml
+github_project_repo = "https://github.com/google/docsy"
+```
+
+