hey all,

Many website for open source project has a button or link named [edit this page 
on github] in each page, so when someone find any issue at docs, they can 
easily send a PR. 
 
Ideally this link [edit this page on github] should be different on different 
page.
For example, 
docs: http://dubbo.incubator.apache.org/en-us/docs/user/preface/background.html 
the edit link should be:
https://github.com/apache/incubator-dubbo-website/edit/asf-site/docs/en-us/user/preface/background.md
 

we have a PR to add this link[1] to Dubbo website. but looks like there is some 
limitation on docsite (dubbo website generator), it can't support this, so the 
[edit this page on github] link can only be our repo link[2]. People who find 
issue at doc must fork repo, modify it then send a PR.

It's not a good user experience and I'm afraid it may stop some people who are 
not be familiar with github to send PR.

Does anyone have any idea? not sure if we can achieve this by adding javascript 
or other way?

[1]: https://github.com/apache/incubator-dubbo-website/pull/317
[2]: https://github.com/apache/incubator-dubbo-website


Reply via email to