Reorganise the devguide to directories #901
Conversation
Sorry, something went wrong.
|
FYI I have no opinion on this, so I'm dropping my review request. |
Sorry, something went wrong.
|
FYI, just in time for this PR, GitHub (finally) implemented the ability to seamlessly view commit history across file renames and moves. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks again, @AA-Turner ! LGTM, aside from a few minor issues.
-
I grepped and found hardcoded external links to devguide.python.org three places (which are now outdated), which should be replaced with
:ref:and any links using them updated:-
core-developers/committing.rst:231:.. _`Python Triage Team` -
getting-started/getting-help.rst:29: `Discourse <https://devguide.python.org/communication/#discourse-discuss-python-org-web-forum>`_ -
triaging/labels.rst:413:.. _release schedule: https://devguide.python.org/#status-of-python-branches
-
-
Also, I'm still curious about the under/over header format used here—while an extra column on each side is included in some of the docutils examples, it is not what is specified in either the Sphinx documentation or the canonical Python docs style guide in this very repo, nor have I commonly seen it elsewhere...
Sorry, something went wrong.
|
I do have a concern on scope -- for instance title case / sentence case of headings. I would suggest to merge-as-is (once I've resolved the outstanding points) and do those sort of things as follow-ups. A |
Sorry, something went wrong.
|
Fixed references, increased max depth, removed spaces from titles, reverted line ending change in developers.csv. A |
Sorry, something went wrong.
|
I restored the appendix and topic table again to reduce scope of this PR as it seems removing them needs more discussion (Ezio's points). Partially I want to get this in as it puts this / other PRs in a state of limbo w.r.t. the moves. A |
Sorry, something went wrong.
There was a problem hiding this comment.
Minor note: The three remaining instances of the devguide links using external URLs were updated in the text, but the link targets were not actually removed. Searching for \.\. _\w+.*: .*devguide\.python should find all of them.
While I agree we shouldn't scope-creep this further and change the style of all the headings, I don't think we should rush this PR now without resolving the final issue with the appendix and index table being redundant/out of date, since:
- These are pretty central to the question of how to organize and structure the devguide (more so than some of the other implemented changes)
- This would result in a significant regression since the appendix is missing the newly split docs, has out of date file paths and is either out of sync with or duplicate much of the new structure, unless we do the work here to update it.
- There seems to be a fairly straightforward solution suggested by multiple people here, which would probably be around the same amount of work as updating the existing redundant appendix.
Also, keep in mind this can't be merged immediately until someone with the appropriate RTD permissions sets up the redirects (or we do them ourselves with my script or sphinx-redirects), and a repo admin can merge the PR (due to the CLA bot bug)— @ezio-melotti are you one here? And the existing PRs should transfer, so long as the move was detected (as most were) instead of the page split, and the relevant text wasn't changed.
As @ezio-melotti suggests, the various recommended reading relevant to each of the audience types can go under the respective table colums (Contributor, Triager, Documentarian, CoreDev) in the table on the index page index. That would be a lot better than reverting whole appendix removal and should be a similar amount of work as updating both to properly reflect the changes.
Sorry, something went wrong.
Some smallish benefits to having Sphinx-level redirects (either your script,
|
Sorry, something went wrong.
Apparently not, as I don't have the option to force-merge, nor access to the repo settings (I requested access in python/steering-council#128). |
Sorry, something went wrong.
|
I definitely agree; having them in the repo and generating them as part of the build process allows testing them locally, is portable between hosts and deployment mechanisms, and makes 100% sure they are in sync with the repo itself (particularly in this case, since otherwise a bunch of inbound links will break), among the other benefits you mentioned.
Of course, the RTD config should also be checked in to the repo, especially on one with many contributions/contributors and few admins with limited bandwidth; I've found in general that always checking in infra config and updating them in sync with PRs is far more maintainable than buried in the config of some external service asynchronous from the content changes and that only a few people have access to. |
Sorry, something went wrong.
|
Good news, the CLA bot is fixed! We can do a regular merge when we're ready! |
Sorry, something went wrong.
|
Here's an example of how to have HTML meta redirects without adding a new extension or such, within regular reStructuredText. https://raw.githubusercontent.com/pypa/pip/main/docs/html/reference/pip_cache.rst |
Sorry, something went wrong.
|
Given that all of the newly introduced "root" documents are basically just toctrees, I think an option worth considering is:
This would bring the navigation closer to something similar to https://tailwindcss.com/docs/. I haven't looked at the actual code changes, only the rendered documentation, but IMO this approach would also lend toward an easier-to-review PR -- since none of the files would move, none of the pages need updates to their references and the markup changes/cleanups can move into a dedicated follow up. It's also more incremental and likely slower, but it will make reviewing the code changes easier and also result in shorter PRs (which tend to not have as many things slip through the cracks as large reorganisation PRs). :) |
Sorry, something went wrong.
|
Done. A |
Sorry, something went wrong.
|
Merged, thanks @AA-Turner for the PR and to all the people who reviewed it! |
Sorry, something went wrong.
From the discord discussion, this is an attempt to add some structure to Docs/Tests/Triage and clean up the top level.
No content has been edited, except for combing two duplicated "how to become a triager" sections. As I moved content between pages I had to edit the underlines -- I also standardised some
^underlines and out-of-order underlines to allow easier page moves in the future (e.g. a core-dev folder, buildbots, language design and change).cc: @ezio-melotti @encukou @CAM-Gerlach
Preview: https://cpython-devguide--901.org.readthedocs.build/
Follows on from #895 where things went catastrophically wrong.
A