-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling: Edit this page buttons pointing at GitHub source .md file #14
Comments
Do you want this for every page? Then we can probably implement this with a fixed head element like "Edit this page on GitHub [GitHub icon]", combined with a link using something like {{ site.name }}? Or even better in the side-bar? |
I was thinking every page - probably some liquid template code putting Layout wise, perhaps in the footer - see also #20? |
Here in the header, how do you like this? You can test it here. |
Functionally that's exactly what I had in mind - that would certainly be a useful step forwards 👍 Visually, I'm not sure it goes with the current template (the font size looks bigger than than the other text, and the underlining is unusual), but I'm open to polling the community for the overall site look anyway. |
I took the design from another template, without changing anything (since I'm not using Jekyll, I have to work and test online to see what I'm doing). The styling can be adjusted. The underlining you see is just an artefact from using the "back" button (like in the sidebar it underlines when hovering). The font is indeed more bold. |
Would it be OK to anchor such button in the |
Right now the wiki pages use either wiki (most), page (the few which appear in the side bar) or tagpage (the old MediaWiki category pages). I suspect that the final "landing" page could end up being a uniquely styled page type... Probably it would be fine to use the |
This is a very clear and simple version, just a right-top justified link with a thin horizontal bar. Like a header (left part may later be used for navigation, e.g. page title or path). Wiith the functionality described in http://ben.balter.com/2015/09/13/github-pages-edit-button/, e.g. the file is opened in editing mode in GitHub. You can test it (temporarily) here. |
Let's go with your new version for now? |
When you press the button you are directed to the Biopython web site respository, the file opens in Edit mode and you are advised that you don't have writing privilegs. So if you submit, this will open a branch on your local respository and you can do the pull request from there. If you are not logged in to GitHub you are directed to GitHub login page. Thus I think we can close this issue. |
Perfect, thank you! |
Fixed with a2b3c5b |
e.g. from http://biopython.org/wiki/GitUsage want an easy link back to https://github.com/biopython/biopython.github.io/blob/master/wiki/GitUsage.md from where the user can start editing (if they have a GitHub account etc).
The text was updated successfully, but these errors were encountered: