chore: Rename Twitter links/labels to X (#10509)

This commit is contained in:
Sébastien Lorber 2024-09-19 11:30:57 +02:00 committed by GitHub
parent a435fbd36e
commit 95e2d469e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
95 changed files with 217 additions and 218 deletions

View file

@ -1098,7 +1098,7 @@ describe('escapeMarkdownHeadingIds', () => {
## News {#news}
For the latest news about Docusaurus, [follow **@docusaurus** on Twitter](https://twitter.com/docusaurus) and the [official Docusaurus blog](/blog) on this website.
For the latest news about Docusaurus, [follow **@docusaurus** on X](https://x.com/docusaurus) and the [official Docusaurus blog](/blog) on this website.
`),
).toEqual(dedent`
# Support
@ -1128,7 +1128,7 @@ describe('escapeMarkdownHeadingIds', () => {
## News \{#news}
For the latest news about Docusaurus, [follow **@docusaurus** on Twitter](https://twitter.com/docusaurus) and the [official Docusaurus blog](/blog) on this website.
For the latest news about Docusaurus, [follow **@docusaurus** on X](https://x.com/docusaurus) and the [official Docusaurus blog](/blog) on this website.
`);
});
});

View file

@ -211,7 +211,7 @@ export function toURLPath(url: URL): URLPath {
/**
* Let's name the concept of (pathname + search + hash) as URLPath
* See also https://twitter.com/kettanaito/status/1741768992866308120
* See also https://x.com/kettanaito/status/1741768992866308120
* Note: this function also resolves relative pathnames while parsing!
*/
export function parseURLPath(urlPath: string, fromPath?: string): URLPath {