Remora / Remora.Discord

A data-oriented C# Discord library, focused on high-performance concurrency and robust design.
GNU Lesser General Public License v3.0
246 stars 44 forks source link

Shortens anchor links in documentation #292

Closed MazeXP closed 1 year ago

MazeXP commented 1 year ago

This PR shortens the anchors to members of a type in the documentation.

Anchor generation

  1. Strip Type FullName from UID
  2. Append index based on occurence of member name per type

Before:

.../api/Remora.Discord.Rest.API.DiscordRestWebhookAPI.html#Remora_Discord_Rest_API_DiscordRestWebhookAPI_EditWebhookMessageAsync_Remora_Rest_Core_Snowflake_System_String_Remora_Rest_Core_Snowflake_Remora_Rest_Core_Optional_System_String__Remora_Rest_Core_Optional_System_Collections_Generic_IReadOnlyList_Remora_Discord_API_Abstractions_Objects_IEmbed___Remora_Rest_Core_Optional_Remora_Discord_API_Abstractions_Objects_IAllowedMentions__Remora_Rest_Core_Optional_System_Collections_Generic_IReadOnlyList_Remora_Discord_API_Abstractions_Objects_IMessageComponent___Remora_Rest_Core_Optional_System_Collections_Generic_IReadOnlyList_OneOf_OneOf_Remora_Discord_API_Abstractions_Rest_FileData_Remora_Discord_API_Abstractions_Objects_IPartialAttachment____Remora_Rest_Core_Optional_Remora_Rest_Core_Snowflake__System_Threading_CancellationToken_

After

.../api/Remora.Discord.Rest.API.DiscordRestWebhookAPI.html#EditWebhookMessageAsync_1