Skip to content

Conversation

@JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented Mar 3, 2025

This moves us away from capital letters and underscores in files, and towards lower case and dashes. The corresponding dev portal PR also stops trying to infer the title of the doc from the filename, and instead uses the title metadata or H1 contents.

@JustinBeckwith JustinBeckwith requested a review from a team as a code owner March 3, 2025 17:57
@JustinBeckwith JustinBeckwith requested review from colinloretz and removed request for a team March 3, 2025 17:57
const changelogAnchors = [];
for (const [name, raw] of docFiles) {
const keyName = `DOCS${name.replaceAll("/", "_").toUpperCase()}`;
const keyName = `DOCS${name.replaceAll("/", "_").replaceAll("-", "_").toUpperCase()}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const keyName = `DOCS${name.replaceAll("/", "_").replaceAll("-", "_").toUpperCase()}`;
const keyName = `DOCS${name.replaceAll(/[/-]/g ,"_").toUpperCase()}`;

Copy link
Contributor

@colinloretz colinloretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JustinBeckwith JustinBeckwith merged commit f90fb59 into main Mar 26, 2025
4 checks passed
@JustinBeckwith JustinBeckwith deleted the betternames branch March 26, 2025 20:19
@JustinBeckwith
Copy link
Contributor Author

to every other PR I am sorry

mazylol pushed a commit to mazylol/discord-api-docs that referenced this pull request Jul 3, 2025
* change file naming strategy

* Fix DOCS_MONETIZATION_IMPLEMENTING_ONE_TIME_PURCHASES refs

* /change_log/ -> /change-log/

---------

Co-authored-by: Colin Loretz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants