Start on docs restructure #6000
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!6000
Loading…
Reference in a new issue
No description provided.
Delete branch "palmtree5/V3/docs_reorganization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the changes
Implements #2802. This is a WIP for now
From the mentioned issue, the idea is to have 4 main categories in the docs:
The current structure of the sidebar is:
Basically, the target of this probably needs to be the Red Dev Framework Reference section and creating a section to document internals (but definitely note that stuff there is not covered by our guarantees). Do we break out the handful of cog creation guides from what is largely API reference? Do we rename the current Red Dev Framework Reference section? My thoughts on both of these questions is yes, we should. I think the target structure should be:
Theoretically, the pages in Cog Reference could be merged into their respective user guides, but I can't remember right off hand if that was discussed previously and we had a reason for keeping them separate or if we just never discussed that.
While you're in there could you fix a major annoyance I have with the docs? and that's the MASSIVE list of changelogs, I think having the page is fine, but all the versions do not have to show up on the sidebar ToC.
This has been implemented now
Ok, 5 pages have been separated out to the
Cog Creation Guidessection, andRed Development Framework Referencehas been renamed toCog Development Framework Reference. Additionally, a section has been created forRed Developer Docs, however this does not show in the sidebar at this time due to being empty. I figure we can populate that with docs as we write them though, but that could easily be done over time as we decide them@Kowlin The list of all versions showing in the sidebar is unrelated to what's in
docs/index.rstand has already been addressed in #5602 by adding the missing top-level header (which resulted in each release having it's ownh1header lol). The change made here todocs/index.rstonly affects what's shown on the documentation's index page: https://docs.discord.red/en/latest/index.htmlIt may be fine to change
maxdepththere but I just wanted to make sure that we're clear about what's being changed here. I'd also like to note that if we're changingmaxdepthhere, I think it would make sense to change it for some other sections as well. For example,maxdepth: 2seems absolutely useless for most if not all documents in the "User guides" section and it expands the height of the table of contents A LOT.Do you have any specific details on what would be put here? In the past I've made some effort in a separate repository as it seemed to make some amount of sense to me to separate it from the main documentation: https://github.com/Jackenmen/Red-DevGuide/pulls I never pulled it into the org since I've never fully finished any of the documents. I've been using the release process document as a reference for a long while though so I should probably just get into the org... But either way, I'm not sure if the section you're proposing here is supposed to cover the same kind of things or if there's anything else that was supposed to be put there.
Going to reply to both comments in one here so bear with me
Yeah, I think
maxdepth: 2on the user guides section kinda just expands it out a lot. I think it should stay for the "Cog Development Framework Reference" (although it IS a bit inconsistent IMO in terms of what is shown on the index page (i.e. in some spots you have a direct clickable link to take you right to a specific function, in other cases, you have to open the page and scroll through to find what you are looking for or click multiple things on the sidebar to show the list of functions in a "API Reference" section), see this screenshot below)It almost could be worth the "Cog Development Framework Reference" having its own index page such that we could potentially go with something not deep for the main index page, but then have something deep for that section's specific index so that there could be a quick way to navigate to exactly what you are looking for.
That's actually exactly the sort of thing I'm talking about adding in that section
In that case, I think we'll have to discuss whether we want to keep contributor documentation on a site that so far has focused on documentation for users (supported methods of installation) and cog creators (supported APIs), not documentation that could be widely considered unsupported for end-user support or version-covered APIs such as potential documentation of internals (now I saw that you mentioned in an earlier comment), setting up dev environment (unsupported install from Git), and in general, things that don't concern the typical readers of our documentation (release process, issue triaging, other meta stuff).
I think if we did include this in the main docs, what that could look like would be a single page under the category on the main index page, then a subpage with its own
toctreefor all of that.So something like creating a folder called
dev, then a file in that folder calledindex.rstwhich would contain atoctreefor the pages to be included there. This index page gets linked to in theRed Developer Docssection of the main index, with:maxdepth: 1, then the dev index specifies:maxdepth: 2The other option for those docs would be in an entirely separate repo and thus an entirely separate site