-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add GitHub Wiki Support #42
Comments
I would welcome an implementation of this. Documenting what the behavior should be would also help. Is it possible to view an old revision of a page? A commit object? Are trees (directories) a thing or is it a flat namespace? |
I'm seeing this problem with a regular privat erepository. Running |
It's not a "problem", it's a feature request that lacks enough information to implement. Edit: what you're describing has nothing to do with wikis. |
I'll answer using the Ethereum Wiki as an example, as it seems to be the most popular wiki on GitHub and has enough content to use for reference. The URL to a wiki looks like this:
I'll refer to this as As editing the wiki through the web interface is very common, spaces are usually included in page titles. GitHub's web interface replaces them with hyphens. For example, the page titled
Is it possible to view an old revision of a page? Yes, viewing a page revision is possible at:
Example:
Is it possible to view a commit object? Yes, viewing a commit object is possible, but this behaviour is not documented, as far as I can tell, and looks a little bit hacky:
Example:
It relies on the functionality that allows revision comparison. This will compare all files across two revisions:
Example:
While comparing revisions of a specific file looks like this:
Example:
Are trees (directories) a thing or is it a flat namespace? Trees are kind of a thing. It's a little weird. You can create directories in the repo when you're editing the repo locally, but they get flattened by the GH web interface. For example, you might have:
To access it through the web interface, you would disregard the tree and go to:
Trying to access it through the expected full path does not work:
Other Notes
Hope this helps. Please let me know if there's any other info that might be useful. |
Thanks for the intel. Looks gross but I'm not really surprised. |
The wiki feature on GitHub looks pretty half-baked and the underscore prefixes might suggest an unstable interface, especially considering those endpoints are not documented, but it has been that way for as long as I can remember and the wiki is a fairly popular feature in some communities. |
@tpope Would you accept an initial implementation that only opens/copies the URL for the current version of
While not ideal, it seems better than the existing behavior for GitHub wikis. Edit: the implementation should support all of the markup formats GitHub Wikis support, not just markdown. |
Some commands, like
:GBrowse
, do not work correctly when used on a wiki repo. For example, executing:GBrowse
on theHome.md
page takes you to https://github.com/tpope/vim-fugitive.wiki/blob/master/Home.md which doesn't exist.The text was updated successfully, but these errors were encountered: