mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 11:47:23 +02:00
docs(v1): fixing few typos and enhancing few sentences clarity (#3082)
This commit is contained in:
parent
3cfbf4b70d
commit
6a511b805a
5 changed files with 9 additions and 9 deletions
|
@ -210,7 +210,7 @@ You can find the full list of supported themes in the Highlight.js [`styles`](ht
|
|||
|
||||
### Registering additional languages
|
||||
|
||||
While Highlight.js provides support for [many popular languages out of the box](https://highlightjs.org/static/demo/), you may find the need to register additional language support. For these cases, we provide an escape valve by exposing the `hljs` constant as part of the `highlight` config key. This in turn allows you to call [`registerLanguage`](http://highlightjs.readthedocs.io/en/latest/api.html#registerlanguage-name-language):
|
||||
While Highlight.js provides support for [many popular languages out of the box](https://highlightjs.org/static/demo/), you may find the need to register additional language support. For these cases, we provide an escape valve by exposing the `hljs` constant as part of the `highlight` config key. This, in turn, allows you to call [`registerLanguage`](http://highlightjs.readthedocs.io/en/latest/api.html#registerlanguage-name-language):
|
||||
|
||||
```js
|
||||
{
|
||||
|
|
|
@ -96,7 +96,7 @@ blogSidebarTitle: { default: 'Recent posts', all: 'All blog posts' },
|
|||
|
||||
Docusaurus provides an RSS feed for your blog posts. Both RSS and Atom feed formats are supported. This data is automatically added to your website page's HTML `<HEAD>` tag.
|
||||
|
||||
A summary of the post's text is provided in the RSS feed up to the `<!--truncate-->`. If no `<!--truncate-->` tag is found, then all text up to 250 characters is used.
|
||||
A summary of the post's text is provided in the RSS feed up to the `<!--truncate-->`. If no `<!--truncate-->` tag is found, then all text up to 250 characters are used.
|
||||
|
||||
## Social Buttons
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ You configure the contents of the sidebar, and the order of its documents, in th
|
|||
|
||||
> Until you add your document to `website/sidebars.json`, they will only be accessible via a direct URL. The doc will not show up in any sidebar.
|
||||
|
||||
Within `sidebars.json`, add the `id` you used in the document header to existing sidebar/category. In the below case, `docs` is the name of the sidebar and `Getting Started` is a category within the sidebar.
|
||||
Within `sidebars.json`, add the `id` you used in the document header to the existing sidebar/category. In the below case, `docs` is the name of the sidebar and `Getting Started` is a category within the sidebar.
|
||||
|
||||
```js
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ Pages allow you to customize the layout and specific content of pages like a cus
|
|||
|
||||
Pages with text that you want translated should be placed in `website/pages/en` directory.
|
||||
|
||||
Wrap strings you want translated in a `<translate>` tag, and add the following `require` statement to the top of the file:
|
||||
Wrap strings that you want translated in a `<translate>` tag, and add the following `require` statement to the top of the file:
|
||||
|
||||
```jsx
|
||||
...
|
||||
|
@ -138,7 +138,7 @@ See the generated `website/i18n/en.json` for an example.
|
|||
|
||||
## How Strings Get Translated
|
||||
|
||||
Docusaurus itself does not do any translation from one language to another. Instead, it integrates [Crowdin](https://crowdin.com/) to upload translations and then downloads the appropriately translated files from Crowdin.
|
||||
Docusaurus itself does not do any translation from one language to another. Instead, it integrates [Crowdin](https://crowdin.com/) to upload translations and then download the appropriately translated files from Crowdin.
|
||||
|
||||
## How Docusaurus Uses String Translations
|
||||
|
||||
|
@ -213,7 +213,7 @@ You can add the following to your `package.json` to manually trigger Crowdin.
|
|||
|
||||
### Manual File Sync
|
||||
|
||||
You will always want to upload your markdown files and translatable strings first and the download the translations section. So run the commands in this order:
|
||||
You will always want to upload your markdown files and translatable strings first and download the translations section. So run the commands in this order:
|
||||
|
||||
```bash
|
||||
CROWDIN_DOCUSAURUS_PROJECT_ID=YOUR_CROWDIN_PROJECT_ID CROWDIN_DOCUSAURUS_API_KEY=YOUR_CROWDIN_API_KEY yarn run crowdin-upload
|
||||
|
|
|
@ -15,7 +15,7 @@ yarn examples versions
|
|||
|
||||
This creates the `pages/en/versions.js` file.
|
||||
|
||||
You can edit this file later on to customize how you display the versions.
|
||||
You can edit this file, later on, to customize how you display the versions.
|
||||
|
||||
Add the following script to your `package.json` file if it doesn't already exist:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue