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

@ -17,7 +17,7 @@ Examples of **incorrect** code for this rule:
```html
<a href="/page">go to page!</a>
<a href="https://twitter.com/docusaurus" target="_blank">Twitter</a>
<a href="https://x.com/docusaurus" target="_blank">X</a>
```
Examples of **correct** code for this rule:
@ -27,7 +27,7 @@ import Link from '@docusaurus/Link'
<Link to="/page">go to page!</Link>
<Link to="https://twitter.com/docusaurus">Twitter</Link>
<Link to="https://x.com/docusaurus">X</Link>
```
## Rule Configuration {#configuration}

View file

@ -207,7 +207,7 @@ Accepted fields:
| --- | --- | --- | --- |
| `authors` | `Authors` | `undefined` | List of blog post authors (or unique author). Read the [`authors` guide](../../blog.mdx#blog-post-authors) for more explanations. Prefer `authors` over the `author_*` front matter fields, even for single author blog posts. |
| `author` | `string` | `undefined` | ⚠️ Prefer using `authors`. The blog post author's name. |
| `author_url` | `string` | `undefined` | ⚠️ Prefer using `authors`. The URL that the author's name will be linked to. This could be a GitHub, Twitter, Facebook profile URL, etc. |
| `author_url` | `string` | `undefined` | ⚠️ Prefer using `authors`. The URL that the author's name will be linked to. This could be a GitHub, X, Facebook profile URL, etc. |
| `author_image_url` | `string` | `undefined` | ⚠️ Prefer using `authors`. The URL to the author's thumbnail image. |
| `author_title` | `string` | `undefined` | ⚠️ Prefer using `authors`. A description of the author. |
| `title` | `string` | Markdown title | The blog post title. |

View file

@ -946,8 +946,8 @@ export default {
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
label: 'X',
href: 'https://x.com/docusaurus',
},
{
html: `
@ -982,8 +982,8 @@ export default {
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
label: 'X',
href: 'https://x.com/docusaurus',
},
{
html: `