You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve escape pipe in Markdown tables (facebook#5539)
* Test escape pipe in Markdown table
From a remark on Crowdin:
> The value for the Type entry in the plugin-content-blog page is strange.
> In English documents, the Type item value is normally displayed.
> ex) editUrl: string | EditUrlFunction
> However, in French documentation, the Type item value is shown as an unknown code.
> ex) editUrl:!!crwdBlockTags_249_sgaTkcolBdwrc!!
> ex) blogSidebarCount: !!crwdBlockTags_250_sgaTkcolBdwrc!!
This is a test to see if the other way to escape a pipe in a markdown table could solve the problem.
* Fix all docs to replace &facebook#124; by \|
* Keep `code`
* Apply suggestions from code review
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Copy file name to clipboardExpand all lines: website/docs/api/plugins/plugin-content-blog.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,17 @@ Accepted fields:
29
29
| Name | Type | Default | Description |
30
30
| --- | --- | --- | --- |
31
31
|`path`|`string`|`'blog'`| Path to the blog content directory on the filesystem, relative to site dir. |
32
-
|`editUrl`| <code>string | EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
32
+
|`editUrl`| <code>string \| EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
33
33
|`editLocalizedFiles`|`boolean`|`false`| The edit URL will target the localized file, instead of the original unlocalized file. Ignored when `editUrl` is a function. |
34
34
|`blogTitle`|`string`|`'Blog'`| Blog page title for better SEO. |
35
35
|`blogDescription`|`string`|`'Blog'`| Blog page meta description for better SEO. |
36
-
|`blogSidebarCount`| <code>number | 'ALL'</code> |`5`| Number of blog post elements to show in the blog sidebar. `'ALL'` to show all blog posts; `0` to disable |
36
+
|`blogSidebarCount`| <code>number \| 'ALL'</code> |`5`| Number of blog post elements to show in the blog sidebar. `'ALL'` to show all blog posts; `0` to disable |
37
37
|`blogSidebarTitle`|`string`|`'Recent posts'`| Title of the blog sidebar. |
38
38
|`routeBasePath`|`string`|`'blog'`| URL route for the blog section of your site. **DO NOT** include a trailing slash. Use `/` to put the blog at root path. |
39
39
|`archiveBasePath`|`string`|`'/archive'`| URL route for the archive blog section of your site. It is prepended to the `routeBasePath`. **DO NOT** include a trailing slash. |
40
40
|`include`|`string[]`|`['**/*.{md,mdx}']`| Matching files will be included and processed. |
41
41
|`exclude`|`string[]`|_See example configuration_| No route will be created for matching files. |
42
-
|`postsPerPage`| <code>number | 'ALL'</code> |`10`| Number of posts to show per page in the listing page. Use `'ALL'` to display all posts on one listing page. |
42
+
|`postsPerPage`| <code>number \| 'ALL'</code> |`10`| Number of posts to show per page in the listing page. Use `'ALL'` to display all posts on one listing page. |
43
43
|`blogListComponent`|`string`|`'@theme/BlogListPage'`| Root component of the blog listing page. |
44
44
|`blogPostComponent`|`string`|`'@theme/BlogPostPage'`| Root component of each blog post page. |
45
45
|`blogTagsListComponent`|`string`|`'@theme/BlogTagsListPage'`| Root component of the tags list page |
@@ -52,7 +52,7 @@ Accepted fields:
52
52
|`showReadingTime`|`boolean`|`true`| Show estimated reading time for the blog post. |
53
53
|`authorsMapPath`|`string`|`'authors.yml'`| Path to the authors map file, relative to the blog content directory specified with `path`. Can also be a `json` file. |
54
54
|`feedOptions`|_See below_|`{type: ['rss', 'atom']}`| Blog feed. If undefined, no rss feed will be generated. |
55
-
|`feedOptions.type`| <code>'rss' | 'atom' | 'all'</code> (or array of multiple options) |**Required**| Type of feed to be generated. |
55
+
|`feedOptions.type`| <code>'rss' \| 'atom' \| 'all'</code> (or array of multiple options) |**Required**| Type of feed to be generated. |
56
56
|`feedOptions.title`|`string`|`siteConfig.title`| Title of the feed. |
57
57
|`feedOptions.description`|`string`| <code>\`${siteConfig.title} Blog\`</code> | Description of the feed. |
Copy file name to clipboardExpand all lines: website/docs/api/plugins/plugin-content-docs.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,17 @@ Accepted fields:
29
29
| Name | Type | Default | Description |
30
30
| --- | --- | --- | --- |
31
31
|`path`|`string`|`'docs'`| Path to data on filesystem relative to site dir. |
32
-
|`editUrl`| <code>string | EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
32
+
|`editUrl`| <code>string \| EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
33
33
|`editLocalizedFiles`|`boolean`|`false`| The edit URL will target the localized file, instead of the original unlocalized file. Ignored when `editUrl` is a function. |
34
34
|`editCurrentVersion`|`boolean`|`false`| The edit URL will always target the current version doc instead of older versions. Ignored when `editUrl` is a function. |
35
35
|`routeBasePath`|`string`|`'docs'`| URL route for the docs section of your site. **DO NOT** include a trailing slash. Use `/` for shipping docs without base path. |
36
36
|`include`|`string[]`|`['**/*.{md,mdx}']`| Matching files will be included and processed. |
37
37
|`exclude`|`string[]`|_See example configuration_| No route will be created for matching files. |
|`sidebarCollapsible`|`boolean`|`true`| Whether sidebar categories are collapsible by default. See also [Collapsible categories](/docs/sidebar#collapsible-categories)|
40
40
|`sidebarCollapsed`|`boolean`|`true`| Whether sidebar categories are collapsed by default. See also [Expanded categories by default](/docs/sidebar#expanded-categories-by-default)|
41
41
|`sidebarItemsGenerator`|`SidebarGenerator`|_Omitted_| Function used to replace the sidebar items of type `'autogenerated'` by real sidebar items (docs, categories, links...). See also [Customize the sidebar items generator](/docs/sidebar#customize-the-sidebar-items-generator)|
42
-
|`numberPrefixParser`| <code>boolean | PrefixParser</code> |_Omitted_| Custom parsing logic to extract number prefixes from file names. Use `false` to disable this behavior and leave the docs untouched, and `true` to use the default parser. See also [Using number prefixes](/docs/sidebar#using-number-prefixes)|
42
+
|`numberPrefixParser`| <code>boolean \| PrefixParser</code> |_Omitted_| Custom parsing logic to extract number prefixes from file names. Use `false` to disable this behavior and leave the docs untouched, and `true` to use the default parser. See also [Using number prefixes](/docs/sidebar#using-number-prefixes)|
43
43
|`docLayoutComponent`|`string`|`'@theme/DocPage'`| Root Layout component of each doc page. |
44
44
|`docItemComponent`|`string`|`'@theme/DocItem'`| Main doc container, with TOC, pagination, etc. |
45
45
|`docTagsListComponent`|`string`|`'@theme/DocTagsListPage'`| Root component of the tags list page |
Copy file name to clipboardExpand all lines: website/docs/api/themes/theme-configuration.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Accepted fields:
20
20
21
21
| Name | Type | Default | Description |
22
22
| --- | --- | --- | --- |
23
-
|`defaultMode`| <code>'light' | 'dark'</code> |`'light'`| The color mode when user first visits the site. |
23
+
|`defaultMode`| <code>'light' \| 'dark'</code> |`'light'`| The color mode when user first visits the site. |
24
24
|`disableSwitch`|`boolean`|`false`| Hides the switch in the navbar. Useful if you want to support a single color mode. |
25
25
|`respectPrefersColorScheme`|`boolean`|`false`| Whether to use the `prefers-color-scheme` media-query, using user system preferences, instead of the hardcoded `defaultMode`. |
Copy file name to clipboardExpand all lines: website/versioned_docs/version-2.0.0-beta.5/api/plugins/plugin-content-blog.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,16 +29,16 @@ Accepted fields:
29
29
| Name | Type | Default | Description |
30
30
| --- | --- | --- | --- |
31
31
|`path`|`string`|`'blog'`| Path to the blog content directory on the filesystem, relative to site dir. |
32
-
|`editUrl`| <code>string | EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
32
+
|`editUrl`| <code>string \| EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
33
33
|`editLocalizedFiles`|`boolean`|`false`| The edit URL will target the localized file, instead of the original unlocalized file. Ignored when `editUrl` is a function. |
34
34
|`blogTitle`|`string`|`'Blog'`| Blog page title for better SEO. |
35
35
|`blogDescription`|`string`|`'Blog'`| Blog page meta description for better SEO. |
36
-
|`blogSidebarCount`| <code>number | 'ALL'</code> |`5`| Number of blog post elements to show in the blog sidebar. `'ALL'` to show all blog posts; `0` to disable |
36
+
|`blogSidebarCount`| <code>number \| 'ALL'</code> |`5`| Number of blog post elements to show in the blog sidebar. `'ALL'` to show all blog posts; `0` to disable |
37
37
|`blogSidebarTitle`|`string`|`'Recent posts'`| Title of the blog sidebar. |
38
38
|`routeBasePath`|`string`|`'blog'`| URL route for the blog section of your site. **DO NOT** include a trailing slash. Use `/` to put the blog at root path. |
39
39
|`include`|`string[]`|`['**/*.{md,mdx}']`| Matching files will be included and processed. |
40
40
|`exclude`|`string[]`|_See example configuration_| No route will be created for matching files. |
41
-
|`postsPerPage`| <code>number | 'ALL'</code> |`10`| Number of posts to show per page in the listing page. Use `'ALL'` to display all posts on one listing page. |
41
+
|`postsPerPage`| <code>number \| 'ALL'</code> |`10`| Number of posts to show per page in the listing page. Use `'ALL'` to display all posts on one listing page. |
42
42
|`blogListComponent`|`string`|`'@theme/BlogListPage'`| Root component of the blog listing page. |
43
43
|`blogPostComponent`|`string`|`'@theme/BlogPostPage'`| Root component of each blog post page. |
44
44
|`blogTagsListComponent`|`string`|`'@theme/BlogTagsListPage'`| Root component of the tags list page |
@@ -51,7 +51,7 @@ Accepted fields:
51
51
|`showReadingTime`|`boolean`|`true`| Show estimated reading time for the blog post. |
52
52
|`authorsMapPath`|`string`|`'authors.yml'`| Path to the authors map file, relative to the blog content directory specified with `path`. Can also be a `json` file. |
53
53
|`feedOptions`|_See below_|`{type: ['rss', 'atom']}`| Blog feed. If undefined, no rss feed will be generated. |
54
-
|`feedOptions.type`| <code>'rss' | 'atom' | 'all'</code> (or array of multiple options) |**Required**| Type of feed to be generated. |
54
+
|`feedOptions.type`| <code>'rss' \| 'atom' \| 'all'</code> (or array of multiple options) |**Required**| Type of feed to be generated. |
55
55
|`feedOptions.title`|`string`|`siteConfig.title`| Title of the feed. |
56
56
|`feedOptions.description`|`string`| <code>\`${siteConfig.title} Blog\`</code> | Description of the feed. |
Copy file name to clipboardExpand all lines: website/versioned_docs/version-2.0.0-beta.5/api/plugins/plugin-content-docs.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,17 @@ Accepted fields:
29
29
| Name | Type | Default | Description |
30
30
| --- | --- | --- | --- |
31
31
|`path`|`string`|`'docs'`| Path to data on filesystem relative to site dir. |
32
-
|`editUrl`| <code>string | EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
32
+
|`editUrl`| <code>string \| EditUrlFunction</code> |`undefined`| Base URL to edit your site. The final URL is computed by `editUrl + relativeDocPath`. Using a function allows more nuanced control for each file. Omitting this variable entirely will disable edit links. |
33
33
|`editLocalizedFiles`|`boolean`|`false`| The edit URL will target the localized file, instead of the original unlocalized file. Ignored when `editUrl` is a function. |
34
34
|`editCurrentVersion`|`boolean`|`false`| The edit URL will always target the current version doc instead of older versions. Ignored when `editUrl` is a function. |
35
35
|`routeBasePath`|`string`|`'docs'`| URL route for the docs section of your site. **DO NOT** include a trailing slash. Use `/` for shipping docs without base path. |
36
36
|`include`|`string[]`|`['**/*.{md,mdx}']`| Matching files will be included and processed. |
37
37
|`exclude`|`string[]`|_See example configuration_| No route will be created for matching files. |
|`sidebarCollapsible`|`boolean`|`true`| Whether sidebar categories are collapsible by default. See also [Collapsible categories](/docs/sidebar#collapsible-categories)|
40
40
|`sidebarCollapsed`|`boolean`|`true`| Whether sidebar categories are collapsed by default. See also [Expanded categories by default](/docs/sidebar#expanded-categories-by-default)|
41
41
|`sidebarItemsGenerator`|`SidebarGenerator`|_Omitted_| Function used to replace the sidebar items of type `'autogenerated'` by real sidebar items (docs, categories, links...). See also [Customize the sidebar items generator](/docs/sidebar#customize-the-sidebar-items-generator)|
42
-
|`numberPrefixParser`| <code>boolean | PrefixParser</code> |_Omitted_| Custom parsing logic to extract number prefixes from file names. Use `false` to disable this behavior and leave the docs untouched, and `true` to use the default parser. See also [Using number prefixes](/docs/sidebar#using-number-prefixes)|
42
+
|`numberPrefixParser`| <code>boolean \| PrefixParser</code> |_Omitted_| Custom parsing logic to extract number prefixes from file names. Use `false` to disable this behavior and leave the docs untouched, and `true` to use the default parser. See also [Using number prefixes](/docs/sidebar#using-number-prefixes)|
43
43
|`docLayoutComponent`|`string`|`'@theme/DocPage'`| Root Layout component of each doc page. |
44
44
|`docItemComponent`|`string`|`'@theme/DocItem'`| Main doc container, with TOC, pagination, etc. |
45
45
|`docTagsListComponent`|`string`|`'@theme/DocTagsListPage'`| Root component of the tags list page |
0 commit comments