Skip to content

Conversation

brad-anderson
Copy link
Contributor

Screenshot of "Improve this page"

The goal of this change is to lower the barrier of entry for users to contribute to D's documentation. It essentially turns the website into a moderated wiki. How it works is for each page it links to a special URL on GitHub that will offer to fork the repository, open an online text editor, and create a pull request in one easy process. I've used this method successfully several times to make changes to phobo's documentation and website documentation.

While adding it to the Phobos std.ddoc I also added the Page wiki link.

Find some text you'd like to change and try it out. You can also try it out without actually submitting the pull request if you can't find anything to tweak.

This relies on the now-merged dmd pull request 787 which added a necessary macro to Ddoc. Whoever generates the docs (Andrei?) will need to use a version of dmd that contains that change in order to use this pull request.

Also change the verbiage of the "Comment on this page" link to the wiki and
make it use the same new style of button as the "Improve this page" link.
@brad-anderson
Copy link
Contributor Author

@WalterBright Andrei asked me to prod you both here and on the newsgroup about getting your thoughts on this.

@andralex
Copy link
Member

OK, Walter and I would be glad to try this. One thing though - could you please make the buttons smaller? If they're like in the screenshot you sent, they're too big. Thanks!

@brad-anderson
Copy link
Contributor Author

Smaller tool buttons

How's that? See what it looks like on an actual page here: http://gnuk.net/d/index.html

@andralex
Copy link
Member

Still a bit too prominent (margins too wide, buttons too large. But I'll approve as is and will mess with it later.

andralex added a commit that referenced this pull request Mar 23, 2012
Add "Improve this page" button to let users easily make quick changes.
@andralex andralex merged commit 24f7615 into dlang:master Mar 23, 2012
@brad-anderson
Copy link
Contributor Author

@andralex Regarding the changes you just made (I can't leave GitHub comment on the commits for whatever reason), I had added a tooltip to the wiki button as you have done but took it out because it goes offscreen on every page but the front page (it doesn't on the front page due to the twitter sidebar). My CSS knowledge is a bit too weak to know how to fix that problem offhand so I just left it out.

@brad-anderson
Copy link
Contributor Author

@andralex Oh, and I forgot to mention you'll want to mirror your change to std.ddoc too.

@brad-anderson
Copy link
Contributor Author

@andralex Just created pull request 104 fixes these two issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants