Open sideshowbarker opened 7 months ago
I do not wish for docs to be in a repository. Keeping docs up to date is already hard enough, if we add extra friction for updating (forking & making a commit / PR) then it will only be worse. For this reason, I want a wiki and I am using the wiki.
I do not wish for docs to be in a repository. Keeping docs up to date is already hard enough, if we add extra friction for updating (forking & making a commit / PR) then it will only be worse. For this reason, I want a wiki and I am using the wiki.
As a result, I would object to this proposed solution:
Take all existing content from both the wiki and from docs.webkit.org, move/merge/centralize it into a single git/GitHub repo.
@cdumez Understood — but to be clear: The wiki docs are already in a repository, at https://github.com/WebKit/WebKit.wiki.git.
It’s just that when you make changes to the wiki via the wiki editing frontend, what happens on the backend is that you cause commits to be made to that git repository.
As a result, I would object to this proposed solution:
Take all existing content from both the wiki and from docs.webkit.org, move/merge/centralize it into a single git/GitHub repo.
To be more clear about my proposal and to put it in terms of the wiki: What I’m proposing is:
And please see that I’ve now added the above list as as Goals section in the issue description, and I’ve updated the title to:
Solution: Move/centralize all doc sources into the wiki, serve both docs.webkit.org and wiki from same sources
Does that all make the proposal now sound more acceptable?
@cdumez Understood — but to be clear: The wiki docs are already in a repository, at https://github.com/WebKit/WebKit.wiki.git.
It’s just that when you make changes to the wiki via the wiki editing frontend, what happens on the backend is that you cause commits to be made to that git repository.
As a result, I would object to this proposed solution:
Take all existing content from both the wiki and from docs.webkit.org, move/merge/centralize it into a single git/GitHub repo.
To be more clear about my proposal and to put it in terms of the wiki: What I’m proposing is:
- The wiki content stays exactly where it is, and you continue to be able to edit it exactly as you do now. So, no changes at all in docs workflow for you.
- The current contents of the repo for docs.webkit.org are what get moved/merged into the wiki So you’d then additionally be able to change/fix to any of that content directly at the wiki, instead of doing PRs.
- To make docs changes, you’d no longer need to do any PRs anywhere — you just do it all through the wiki.
And please see that I’ve now added the above list as as Goals section in the issue description, and I’ve updated the title to:
Solution: Move/centralize all doc sources into the wiki, serve both docs.webkit.org and wiki from same sources
Does that all make the proposal now sound more acceptable?
To me yes. I agree it'd be great to have documentation in a central place, as long as I keep wiki editing.
I do not wish for docs to be in a repository. Keeping docs up to date is already hard enough, if we add extra friction for updating (forking & making a commit / PR) then it will only be worse. For this reason, I want a wiki and I am using the wiki.
FWIW, it's possible to edit the documentation repository directly from the web browser in markdown (but you don't get to see the html result) example : https://github.com/WebKit/Documentation/edit/main/docs/index.md
I do not wish for docs to be in a repository. Keeping docs up to date is already hard enough, if we add extra friction for updating (forking & making a commit / PR) then it will only be worse. For this reason, I want a wiki and I am using the wiki.
FWIW, it's possible to edit the documentation repository directly from the web browser in markdown… example : WebKit/Documentation/edit/main/docs/index.md
@mdubet Yes, thanks much for pointing this out. Also worth mentioning here: all the https://docs.webkit.org docs have an “Edit this page” pencil icon which, if you click it, takes you to the GitHub UI for editing the doc directly in your browser.
But that said, the repo settings as currently configured have the main branch set to be a protected branch — so, once you make edits to the page, you can’t land (commit) them right away, but instead need to click a button to raise a PR.
However, it’s completely possible to change those settings so that project members with commit/push privileges actually could commit directly to the main branch without needing to raise PRs. Or else, the settings could be updated such that the branch which changes from the GitHub UI would get landed (committed in) ine would be a ”staging” (or something) branch that a project owner subsequently would merge into the main branch (for publishing to docs.webkit.org).
(but you don't get to see the html result)
True — but there is also a Preview
button which when you click on it shows you a preview of a rendered version of the markdown — and that rendered preview is almost exactly like what you when editing a page in the GitHub wiki.
So @cdumez, can you please take 5 minutes or so to try this:
Preview
button there to see rendered output of your changes right away.…then, that’s basically just like editing a doc at the wiki, right?
The only difference is that to actually land your edits, you then need to push the green Commit Changes…
button,
when then currently will cause a PR to be raised (and then you need to go through the PR review process to land it).
However, what’s possible is that the setting could be changed such that when you pushed that Commit Changes…
button, your edits would land immediately — without you needing to go through the PR process.
If the settings were changed such that you do that — that is, make docs edits directly in your browser and land them right way, just like you can now at the wiki — would that workflow work OK for you?
It would basically be just like how you make changes to the current wiki — you’d just be doing it in a different place.
I do not wish for docs to be in a repository. Keeping docs up to date is already hard enough, if we add extra friction for updating (forking & making a commit / PR) then it will only be worse. For this reason, I want a wiki and I am using the wiki.
This used to be my opinion too -- I think I mentioned pretty much exactly that when docs.webkit.org was first proposed -- but now that the docs website exists it's kinda too late. A lot of effort went into this website, it does the job, and having one place for our docs is by far the most important consideration. E.g. we can't rightly expect new contributors to follow the new smart pointer guidelines because our smart pointer documentation makes no mention of them.
I would just add Chris directly to the project so he doesn't have to use pull requests. I think most developers are probably happy to use pull requests, but let's not require them.
The GitHub web UI workflow for committing to docs.webkit.org is really close to GitHub wiki; you edit in Markdown, and have live preview. The only flaw I see is that docs pages currently link to the toplevel directory instead of the actual page of the content on GitHub. That creates a small amount of friction that doesn't exist in a wiki, which would be nice to get rid of.
Also, since both projects use Markdown, moving content from wiki to docs website is mostly going to be a matter of Ctrl+C Ctrl+V. So that, at least, is not a very huge change.
Problems
Goals/requirements
Solution A: Move everything into the wiki
Solution B: Move all to docs.webkit.org repo, but allow commits with no PRs.
Rationale
Questions/arguments against + answers/rebuttals for those
Implementation notes (complications to do deal with)