Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Add link to the GitHub repo #117

Open
sindresorhus opened this issue May 21, 2020 · 2 comments
Open

Add link to the GitHub repo #117

sindresorhus opened this issue May 21, 2020 · 2 comments
Labels
design Functionality with a design component enhancement New feature or request
Milestone

Comments

@sindresorhus
Copy link

I would like to have a link back to the GitHub repo from the docs.

Jazzy automatically shows a link in the top-right corner of the docs site if you specify the repo URL in their config: https://github.com/sindresorhus/KeyboardShortcuts/blob/498fcd6cc1562313b5e3aa97b35430cfb2c91292/.jazzy.yml#L2

Screenshot 2020-05-21 at 14 25 16

Live example: https://sindresorhus.com/KeyboardShortcuts/

@mattt
Copy link
Contributor

mattt commented May 23, 2020

This is definitely something I'd like to support. Jazzy uses a github_url setting, but I'd like to keep the amount of configuration to a minimum (however much of an uphill / losing battle that may be).

My current plan is to read the remotes from git to determine where the code is hosted publicly, and implement logic that route source location to URLs for the most popular websites (GitHub, GitLab, BitBucket, etc.) The advantage here is that we can use other information from git like the commit reference to provide permalinks, which won't break if methods move around between versions.

@mattt mattt added design Functionality with a design component enhancement New feature or request labels May 23, 2020
@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented Jun 15, 2020

I think there was a discussion here somewhere about configs to allow swift-doc to become more configurable, but I don't remember PackageConfig being mentioned anywhere. So here's the link for posterity 🙂

@mattt mattt added this to the 1.0.0-beta.5 milestone Jul 31, 2020
@mattt mattt modified the milestones: 1.0.0-beta.5, 1.0.0-beta.6 Sep 25, 2020
@mattt mattt modified the milestones: 1.0.0-beta.6, 1.0.0-rc1 Apr 20, 2021
@mattt mattt modified the milestones: 1.0.0-rc1, 1.0.0-rc2 Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design Functionality with a design component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants