Improve changelog format #5602

Merged
Jackenmen merged 26 commits from change_changelog_format into V3/develop 2023-01-23 20:39:16 +01:00
Jackenmen commented 2022-03-06 23:15:28 +01:00 (Migrated from github.com)

Description of the changes

The current changelog format is not ideal so I tried to make a bunch of improvements to it.

A few alternative looks that have been considered for this change in changelog's format can be found in #4620.

The things I've done:

  • The actual changelog files have been merged and moved into one called CHANGES.rst in the root directory
    • There now exists docs/changelog.rst file that only consists of an include CHANGES.rst statement
  • Added changelogs for releases 3.0.1-3.1.9
  • Made changelogs for all releases consistent
  • Changed the format of the changelog:
    • What stays the same is that within each changelog there are sections (each is optional):
      • Read before updating
      • End-user changelog
      • Developer changelog
      • Documentation changes
    • However, now the changes are grouped by the type of change rather than its category, so e.g:
      image
      This is the list of change types (in the order they should appear in the changelog):
      • Security
      • Additions
      • Changes
      • Deprecations
      • Removals
      • Fixes
    • Additionally (with the exception of documentation changes), the change's category is still shown as a prefix for each entry (other than the few that apply to multiple categories):
      image
    • Category names have been reworked as follows:
      • Categories for each cog are now in a format "Cogs - CogName"
      • "Core Bot" category has now been further split into subcategories like "Core - Bot Commands" or "Core - Command-line Interfaces"
        • note that some entries may be just "Core" if they apply to multiple subcategories
      • The developer changelog now also contains categories

Things that still need to be considered:

  • I was considering adding release highlights a long time ago so these could be added to changelogs (not necessarily all of them).
    • Release highlights would be a few changes that are most exciting in our opinion.
    • The format could either be a dedicated section or something like a ❤️ emoji before the changelog entries that we want to highlight.
  • I should probably verify that making a redirect from changelog_3_4_0.html->changelog.html on RTD will keep the anchor link with it. If not, then oh well, we'll have to live with it I guess. But either way, we need to actually make the redirect once this PR is merged.

Have the changes in this PR been tested?

Yes

### Description of the changes The current changelog format is not ideal so I tried to make a bunch of improvements to it. A few alternative looks that have been considered for this change in changelog's format can be found in #4620. The things I've done: - The actual changelog files have been merged and moved into one called CHANGES.rst in the root directory - There now exists `docs/changelog.rst` file that only consists of an `include CHANGES.rst` statement - Added changelogs for releases 3.0.1-3.1.9 - Made changelogs for all releases consistent - Changed the format of the changelog: - What stays the same is that within each changelog there are sections (each is optional): - Read before updating - End-user changelog - Developer changelog - Documentation changes - However, now the changes are grouped by the type of change rather than its category, so e.g: ![image](https://user-images.githubusercontent.com/6032823/156943954-c44f1ef0-14b1-4f95-93bc-416fc2394c6e.png) This is the list of change types (in the order they should appear in the changelog): - Security - Additions - Changes - Deprecations - Removals - Fixes - Additionally (with the exception of documentation changes), the change's category is still shown as a prefix for each entry (other than the few that apply to multiple categories): ![image](https://user-images.githubusercontent.com/6032823/156943980-d33251c5-06ea-4369-8a49-94dfe4fb737a.png) - Category names have been reworked as follows: - Categories for each cog are now in a format "Cogs - CogName" - "Core Bot" category has now been further split into subcategories like "Core - Bot Commands" or "Core - Command-line Interfaces" - note that some entries may be just "Core" if they apply to multiple subcategories - The developer changelog now also contains categories Things that still need to be considered: - I was considering adding release highlights a long time ago so these could be added to changelogs (not necessarily all of them). - Release highlights would be a few changes that are most exciting in our opinion. - The format could either be a dedicated section *or* something like a ❤️ emoji before the changelog entries that we want to highlight. - I should probably verify that making a redirect from changelog_3_4_0.html->changelog.html on RTD will keep the anchor link with it. If not, then oh well, we'll have to live with it I guess. But either way, we need to actually make the redirect once this PR is merged. ### Have the changes in this PR been tested? Yes
Flame442 (Migrated from github.com) requested changes 2023-01-23 20:17:59 +01:00
Flame442 (Migrated from github.com) left a comment

Is it possible to visually separate the releases more, maybe with a horizontal line between them? Having them all on one page and scrolling around, it's a bit hard to see where one begins and one ends at a glance.

I was also wondering about the old changelog links and if those would break, but it sounds like they would at least be able to redirect to the changelog page if not the specific release? If it will at least do that it's probably fine.

Is it possible to visually separate the releases more, maybe with a horizontal line between them? Having them all on one page and scrolling around, it's a bit hard to see where one begins and one ends at a glance. I was also wondering about the old changelog links and if those would break, but it sounds like they would at least be able to redirect to the changelog page if not the specific release? If it will at least do that it's probably fine.
Jackenmen commented 2023-01-23 20:21:21 +01:00 (Migrated from github.com)

Is it possible to visually separate the releases more, maybe with a horizontal line between them?

Sure, will do this in a moment.

I was also wondering about the old changelog links and if those would break, but it sounds like they would at least be able to redirect to the changelog page if not the specific release?

Based on my previous testing, when browsers handle redirects, they keep the anchor link which means that as long as the anchor names stay the same (which they do), they should link to the changelog of a specific release (at least assuming that RTD doesn't do anything weird that would somehow strip the anchor link).

> Is it possible to visually separate the releases more, maybe with a horizontal line between them? Sure, will do this in a moment. > I was also wondering about the old changelog links and if those would break, but it sounds like they would at least be able to redirect to the changelog page if not the specific release? Based on my previous testing, when browsers handle redirects, they keep the anchor link which means that as long as the anchor names stay the same (which they do), they should link to the changelog of a specific release (at least assuming that RTD doesn't do anything weird that would somehow strip the anchor link).
Flame442 (Migrated from github.com) approved these changes 2023-01-23 20:38:12 +01:00
Jackenmen commented 2023-01-28 09:23:48 +01:00 (Migrated from github.com)

I've just added the redirects, they seem to be working as expected:
https://docs.discord.red/en/latest/changelog_3_4_0.html#redbot-3-4-11-2021-06-12

The changelog documents in the current stable documentation also work fine:
https://docs.discord.red/en/stable/changelog_3_4_0.html#redbot-3-4-11-2021-06-12

I've just added the redirects, they seem to be working as expected: https://docs.discord.red/en/latest/changelog_3_4_0.html#redbot-3-4-11-2021-06-12 The changelog documents in the current stable documentation also work fine: https://docs.discord.red/en/stable/changelog_3_4_0.html#redbot-3-4-11-2021-06-12
red-githubbot[bot] commented 2023-04-20 00:53:55 +02:00 (Migrated from github.com)

Sorry, @Jackenmen, I could not cleanly backport this to 3.4 due to a conflict. Please backport using cherry_picker on command line.

cherry_picker 2168585ee15deec4d08e78fc5c0f1e0ec6350655 3.4
Sorry, @Jackenmen, I could not cleanly backport this to `3.4` due to a conflict. Please backport using [cherry_picker](https://pypi.org/project/cherry-picker/) on command line. ``` cherry_picker 2168585ee15deec4d08e78fc5c0f1e0ec6350655 3.4 ```
red-githubbot[bot] commented 2023-04-20 00:58:41 +02:00 (Migrated from github.com)

#6078 is a backport of this pull request to Red 3.4.

#6078 is a backport of this pull request to [Red 3.4](https://github.com/Cog-Creators/Red-DiscordBot/tree/3.4).
Sign in to join this conversation.
No reviewers
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!5602
No description provided.