Skip to content

Commit

Permalink
chore: Rename Twitter links/labels to X (#10509)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Sep 19, 2024
1 parent a435fbd commit 95e2d46
Show file tree
Hide file tree
Showing 95 changed files with 217 additions and 218 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ module.exports = {
'@',
'WebContainers',
'Twitter',
'X',
'GitHub',
'Dev.to',
'1.x',
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ There are many ways to contribute to Docusaurus, and many of them do not involve
- Read through the [Docusaurus docs](https://docusaurus.io/docs/installation). If you find anything that is confusing or can be improved, you can click "Edit this page" at the bottom of most docs, which takes you to the GitHub interface to make and propose changes.
- Take a look at the [features requested](https://github.com/facebook/docusaurus/labels/feature) by others in the community and consider opening a pull request if you see something you want to work on.

Contributions are very welcome. If you think you need help planning your contribution, please ping us on Twitter at [@docusaurus](https://twitter.com/docusaurus) and let us know you are looking for a bit of help.
Contributions are very welcome. If you think you need help planning your contribution, please ping us on X at [@docusaurus](https://x.com/docusaurus) and let us know you are looking for a bit of help.

### Join our Discord Channel

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ We have a few channels for contact:
- [Discord](https://discord.gg/docusaurus):
- `#general` for those using Docusaurus.
- `#contributors` for those wanting to contribute to the Docusaurus core.
- [@docusaurus](https://x.com/docusaurus) X (Twitter)
- [@docusaurus](https://x.com/docusaurus) X
- [GitHub Issues](https://github.com/facebook/docusaurus/issues)

## Contributors
Expand Down
4 changes: 2 additions & 2 deletions admin/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Create a separate branch/PR and run `yarn examples:generate`

### 9. Notify people about new release (optional but desirable)

After new release, it is cool to notify our users about this in the Discord chat (`#announcements` channel) and write summaries on Twitter using the following templates.
After new release, it is cool to notify our users about this in the Discord chat (`#announcements` channel) and write summaries on X using the following templates.

For Discord:

Expand All @@ -227,7 +227,7 @@ A new version %VER% is available now! 🎉
See release notes at the following link https://github.com/facebook/docusaurus/releases/tag/%VER%
```

For Twitter:
For X:

```
💥 A new version %VER% is available now! 💥
Expand Down
4 changes: 2 additions & 2 deletions examples/classic-typescript/docusaurus.config.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/classic/docusaurus.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ const config: Config = {
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
label: 'X',
href: 'https://x.com/docusaurus',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ const config = {
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
label: 'X',
href: 'https://x.com/docusaurus',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-pwa/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getSWBabelLoader() {
{
useBuiltIns: 'entry',
corejs: '3',
// See https://twitter.com/jeffposnick/status/1280223070876315649
// See https://x.com/jeffposnick/status/1280223070876315649
targets: 'chrome >= 56',
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-pwa/src/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function parseSwParams() {

// Doc advises against dynamic imports in SW
// https://developers.google.com/web/tools/workbox/guides/using-bundlers#code_splitting_and_dynamic_imports
// https://twitter.com/sebastienlorber/status/1280155204575518720
// https://x.com/sebastienlorber/status/1280155204575518720
// but looks it's working fine as it's inlined by webpack, need to double check
async function runSWCustomCode(params: {offlineMode: boolean; debug: boolean}) {
if (process.env.PWA_SW_CUSTOM) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/*
When the navbar is sticky, ensure that on anchor click,
the browser does not scroll that anchor behind the navbar
See https://twitter.com/JoshWComeau/status/1332015868725891076
See https://x.com/JoshWComeau/status/1332015868725891076
*/
.anchorWithStickyNavbar {
scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

// We want to ensurer a stable plural form order in all cases
// It is more convenient and natural to handle "small values" first
// See https://twitter.com/sebastienlorber/status/1366820663261077510
// See https://x.com/sebastienlorber/status/1366820663261077510
const OrderedPluralForms: Intl.LDMLPluralRule[] = [
'zero',
'one',
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-mermaid/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function useMermaidRenderResult({
.then(setResult)
.catch((e) => {
// Funky way to trigger parent React error boundary
// See https://twitter.com/sebastienlorber/status/1628340871899893768
// See https://x.com/sebastienlorber/status/1628340871899893768
setResult(() => {
throw e;
});
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-utils/src/__tests__/markdownUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
`);
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-utils/src/urlUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ describe('handleBrokenLinks', () => {
// We try to minimize the calls to this expensive function
// Otherwise large sites will have super long execution times
// See https://github.com/facebook/docusaurus/issues/9754
// See https://twitter.com/sebastienlorber/status/1749392773415858587
// See https://x.com/sebastienlorber/status/1749392773415858587
// We expect no more matchRoutes calls than number of dynamic route links
expect(matchRoutesMock).toHaveBeenCalledTimes(scale * 2);
// We expect matchRoutes to be called with a reduced number of routes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export async function extractSourceCodeFileTranslations(
ast: true,
// filename is important, because babel does not process the same files
// according to their js/ts extensions.
// See https://twitter.com/NicoloRibaudo/status/1321130735605002243
// See https://x.com/NicoloRibaudo/status/1321130735605002243
filename: sourceCodeFilePath,
}) as Node;

Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/src/webpack/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function createBaseClientConfig({
entry: path.resolve(__dirname, '../client/clientEntry.js'),
optimization: {
// Keep the runtime chunk separated to enable long term caching
// https://twitter.com/wSokra/status/969679223278505985
// https://x.com/wSokra/status/969679223278505985
runtimeChunk: true,
},
plugins: [
Expand Down
12 changes: 6 additions & 6 deletions packages/eslint-plugin/src/rules/__tests__/no-html-links.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ ruleTester.run('prefer-docusaurus-link', rule, {
code: '<Link to="/test">test</Link>',
},
{
code: '<Link to="https://twitter.com/docusaurus">Twitter</Link>',
code: '<Link to="https://x.com/docusaurus">X</Link>',
},
{
code: '<a href="https://twitter.com/docusaurus">Twitter</a>',
code: '<a href="https://x.com/docusaurus">X</a>',
options: [{ignoreFullyResolved: true}],
},
{
code: '<a href={`https://twitter.com/docusaurus`}>Twitter</a>',
code: '<a href={`https://x.com/docusaurus`}>X</a>',
options: [{ignoreFullyResolved: true}],
},
{
Expand All @@ -50,11 +50,11 @@ ruleTester.run('prefer-docusaurus-link', rule, {
errors: errorsJSX,
},
{
code: '<a href="https://twitter.com/docusaurus" target="_blank">test</a>',
code: '<a href="https://x.com/docusaurus" target="_blank">test</a>',
errors: errorsJSX,
},
{
code: '<a href="https://twitter.com/docusaurus" target="_blank" rel="noopener noreferrer">test</a>',
code: '<a href="https://x.com/docusaurus" target="_blank" rel="noopener noreferrer">test</a>',
errors: errorsJSX,
},
{
Expand Down Expand Up @@ -82,7 +82,7 @@ ruleTester.run('prefer-docusaurus-link', rule, {
// TODO we might want to make this test pass
// Can template literals be statically pre-evaluated? (Babel can do it)
// eslint-disable-next-line no-template-curly-in-string
code: '<a href={`https://twitter.com/${"docu" + "saurus"} ${"rex"}`}>Twitter</a>',
code: '<a href={`https://x.com/${"docu" + "saurus"} ${"rex"}`}>Twitter</a>',
options: [{ignoreFullyResolved: true}],
errors: errorsJSX,
},
Expand Down
2 changes: 1 addition & 1 deletion website/_dogfooding/_blog tests/2024-07-03-dual-author.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
socials:
twitter: https://twitter.com/sebastienlorber
x: https://x.com/sebastienlorber
github: https://github.com/slorber
linkedin: https://www.linkedin.com/in/sebastienlorber/
newsletter: https://thisweekinreact.com/newsletter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors:
imageURL: https://github.com/slorber.png
title: Docusaurus Maintainer and This Week In React editor editor editor editor editor editor editor editor
socials:
twitter: https://twitter.com/sebastienlorber
x: https://x.com/sebastienlorber
github: https://github.com/slorber
stackoverflow: https://stackoverflow.com/users/82609/sebastien-lorber
Expand All @@ -14,7 +13,7 @@ authors:
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
socials:
twitter: https://x.com/sebastienlorber
x: https://x.com/sebastienlorber
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
title: Docusaurus Maintainer and This Week In React editor
Expand All @@ -28,14 +27,13 @@ authors:
imageURL: https://github.com/slorber.png
socials:
github: https://github.com/slorber
twitter: https://twitter.com/sebastienlorber
x: https://x.com/sebastienlorber
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
title: Docusaurus Maintainer and This Week In React editor editor editor editor editor editor editor editor
socials:
github: https://github.com/slorber
twitter: https://x.com/sebastienlorber
x: https://x.com/sebastienlorber
- name: Sébastien Lorber
imageURL: https://github.com/slorber.png
socials:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ authors:
title: Docusaurus Maintainer and This Week In React editor editor editor editor editor editor editor editor editor editor editor editor editor editor
socials:
x: https://x.com/sebastienlorber
twitter: https://twitter.com/sebastienlorber
github: https://github.com/slorber
linkedin: https://www.linkedin.com/in/sebastienlorber/
newsletter: https://thisweekinreact.com/newsletter
Expand Down
3 changes: 2 additions & 1 deletion website/_dogfooding/_blog tests/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ slorber:
title: Docusaurus maintainer
url: https://sebastienlorber.com
image_url: https://github.com/slorber.png
twitter: sebastienlorber
page: true
socials:
x: sebastienlorber

ozaki:
name: ozaki
Expand Down
4 changes: 2 additions & 2 deletions website/blog/2017/12-14-introducing-docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ build

![](/img/docusaurus.svg)

We welcome your [contributions](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md) to Docusaurus, whether you want to use it for your own site, you want to [contribute](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md) to the Docusaurus core or just have questions. Follow us on [GitHub](https://github.com/facebook/docusaurus) and [X (formerly Twitter)](https://x.com/docusaurus).
We welcome your [contributions](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md) to Docusaurus, whether you want to use it for your own site, you want to [contribute](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md) to the Docusaurus core or just have questions. Follow us on [GitHub](https://github.com/facebook/docusaurus) and [X)](https://x.com/docusaurus).

## Acknowledgements

Expand All @@ -151,6 +151,6 @@ Without their dedication to creating or migrating their websites over to the pla
## Resources

- [Read our documentation](https://v1.docusaurus.io)
- [Follow our X (formerly Twitter) feed](https://x.com/docusaurus)
- [Follow our X feed](https://x.com/docusaurus)
- [Follow us on GitHub](https://github.com/facebook/docusaurus)
- [About Slash, the Docusaurus mascot](https://v1.docusaurus.io/about-slash.html)
6 changes: 3 additions & 3 deletions website/blog/2018/09-11-Towards-Docusaurus-2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ If you've read the post up until to this point, you should be able to notice tha

The exact list of breaking changes is not totally known yet as development is not 100% finalized. However, one thing that I will highlight is that we will deprecate a lot of options in `siteConfig.js` and we plan to keep it as lean as possible. For example, the `cleanUrl` siteConfig will be deprecated as all the URL for Docusaurus 2 sites will be without the `.html` suffix.

Our goal is that most sites should be able to upgrade to Docusaurus 2 without a lot of pain. We will also include a migration guide when we release Docusaurus 2. When the times come, feel free to ping us on [Discord](https://discord.gg/docusaurus) or [Twitter](https://twitter.com/docusaurus) for questions and help.
Our goal is that most sites should be able to upgrade to Docusaurus 2 without a lot of pain. We will also include a migration guide when we release Docusaurus 2. When the times come, feel free to ping us on [Discord](https://discord.gg/docusaurus) or [X](https://x.com/docusaurus) for questions and help.

### When is the release of Docusaurus 2?

As of now, we do not have an exact date planned for the release. I personally estimate that we might be able to release an alpha version in the next one to two months, but this is, of course, just an estimate.

One thing that I would like to share is that while Docusaurus is part of [Facebook Open Source](https://opensource.fb.com/) and most of the team are Facebook employees, the maintenance and development work is mostly done outside of normal working hours. I am currently a final year undergraduate student at [NTU Singapore](https://twitter.com/NTUsg), so I had to juggle between doing my coursework, my final year project and maintaining/developing Docusaurus. However, that does not mean that we do not want to make Docusaurus better. In fact, **we want to make it as awesome as possible**.
One thing that I would like to share is that while Docusaurus is part of [Facebook Open Source](https://opensource.fb.com/) and most of the team are Facebook employees, the maintenance and development work is mostly done outside of normal working hours. I am currently a final year undergraduate student at [NTU Singapore](https://x.com/NTUsg), so I had to juggle between doing my coursework, my final year project and maintaining/developing Docusaurus. However, that does not mean that we do not want to make Docusaurus better. In fact, **we want to make it as awesome as possible**.

For now, the actual Docusaurus 2 work is still hosted in a private repository. In the near future, we will move them into the [public repository](https://github.com/facebook/docusaurus). When that time arrives, I encourage everyone to look into it and hopefully contribute in some way. Before then, please stay tuned 😉!

Expand All @@ -136,4 +136,4 @@ If you are using Docusaurus, you are part of our community; keep letting us know

> If you are sponsoring our work on [Open Collective](https://opencollective.com/Docusaurus), we'll personally offer you a helping hand for maintenance and upgrading of Docusaurus website.
Lastly, if you haven't done so already, click the **star** and **watch** button on [GitHub](https://github.com/facebook/docusaurus), and follow us on [Twitter](https://twitter.com/docusaurus).
Lastly, if you haven't done so already, click the **star** and **watch** button on [GitHub](https://github.com/facebook/docusaurus), and follow us on [X](https://x.com/docusaurus).
4 changes: 2 additions & 2 deletions website/blog/2018/12-14-Happy-First-Birthday-Slash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Docusaurus [went live](https://v1.docusaurus.io/blog/2017/12/14/introducing-docu

<!--truncate-->

We now have nearly [60 known users of Docusaurus](https://v1.docusaurus.io/en/users), and probably more that we don't know about. We have [9K GitHub stars](https://github.com/facebook/docusaurus) and an active community, particularly [Yangshun Tay](https://twitter.com/yangshunz) and [Endilie Yacop Sucipto](https://twitter.com/endiliey), both of whom are the lead maintainers helping keep this project [moving forward](https://docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2).
We now have nearly [60 known users of Docusaurus](https://v1.docusaurus.io/en/users), and probably more that we don't know about. We have [9K GitHub stars](https://github.com/facebook/docusaurus) and an active community, particularly [Yangshun Tay](https://x.com/yangshunz) and [Endilie Yacop Sucipto](https://x.com/endiliey), both of whom are the lead maintainers helping keep this project [moving forward](https://docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2).

Thank you to everyone for your support and use of this project! I am super proud of how far this project has come in just a year.

> Special thanks to [Eric Nakagawa](https://twitter.com/ericnakagawa), creator of Slash, for creating this 1-year image of Slash enjoying cake. The Slash brand has been a boon for us!
> Special thanks to [Eric Nakagawa](https://x.com/ericnakagawa), creator of Slash, for creating this 1-year image of Slash enjoying cake. The Slash brand has been a boon for us!
Loading

0 comments on commit 95e2d46

Please sign in to comment.