styles icon indicating copy to clipboard operation
styles copied to clipboard

"Edit on GitHub" doesn't work when rendered locally

Open fmichonneau opened this issue 6 years ago • 3 comments

When the website is rendered locally, the "Edit on GitHub" links don't work.

In the template, the links needed to make this to work use data from the GitHub API through the github-metadata Jekyll plugin. Unless the user who tries to render the site locally has a GitHub PAT available as an environment variable, the metadata are not available to create a functioning link.

Is there a reasonable way to make the link work locally without relying on GitHub metadata?

fmichonneau avatar Aug 28 '18 18:08 fmichonneau

Is there a reasonable way to make the link work locally without relying on GitHub metadata?

No.

rgaiacs avatar Sep 14 '18 20:09 rgaiacs

@fmichonneau Did you fixed this? I remember a pull request related to this.

rgaiacs avatar Dec 19 '18 15:12 rgaiacs

I believe that this is another issue, related to offline browsing, that was "solved" two years ago, but for which the same solution is now documented in a more up to date revision:

https://pawsey-kbuckley.github.io/offline-capable-lesson

pawsey-kbuckley avatar Jun 26 '19 02:06 pawsey-kbuckley