mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 20:32:42 +02:00
Adding crowdin config to Docusaurs. Content updates to: README.md, guides-translation.md. Moved docs into /docs/en.
This commit is contained in:
parent
105e6283d0
commit
d379f58581
21 changed files with 351 additions and 30 deletions
|
@ -196,5 +196,5 @@ DEPLOY_USER=deltice GIT_USER=test-site-bot CIRCLE_PROJECT_USERNAME=deltice CIRCL
|
||||||
|
|
||||||
## More Information
|
## More Information
|
||||||
|
|
||||||
For details on how to set up translation support, read [here](/docs/en/translation.md).
|
For details on how to set up translation support, read [here](/docs/en/guides-translation.md).
|
||||||
For details on how to set up documentation search, read [here](/docs/en/search.md).
|
For details on how to set up documentation search, read [here](/docs/en/guides-search.md).
|
||||||
|
|
49
crowdin.yaml
Normal file
49
crowdin.yaml
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
project_identifier_env: CROWDIN_PROJECT_ID
|
||||||
|
api_key_env: CROWDIN_API_KEY
|
||||||
|
base_path: "./"
|
||||||
|
preserve_hierarchy: true
|
||||||
|
|
||||||
|
files:
|
||||||
|
-
|
||||||
|
source: '/docs/en/*.md'
|
||||||
|
translation: '/website/translated_docs/%locale%/%original_file_name%'
|
||||||
|
languages_mapping: &anchor
|
||||||
|
locale:
|
||||||
|
'af': 'af'
|
||||||
|
'ar': 'ar'
|
||||||
|
'bs-BA': 'bs-BA'
|
||||||
|
'ca': 'ca'
|
||||||
|
'cs': 'cs'
|
||||||
|
'da': 'da'
|
||||||
|
'de': 'de'
|
||||||
|
'el': 'el'
|
||||||
|
'es-ES': 'es-ES'
|
||||||
|
'fa': 'fa-IR'
|
||||||
|
'fi': 'fi'
|
||||||
|
'fr': 'fr'
|
||||||
|
'he': 'he'
|
||||||
|
'hu': 'hu'
|
||||||
|
'id': 'id-ID'
|
||||||
|
'it': 'it'
|
||||||
|
'ja': 'ja'
|
||||||
|
'ko': 'ko'
|
||||||
|
'mr': 'mr-IN'
|
||||||
|
'nl': 'nl'
|
||||||
|
'no': 'no-NO'
|
||||||
|
'pl': 'pl'
|
||||||
|
'pt-BR': 'pt-BR'
|
||||||
|
'pt-PT': 'pt-PT'
|
||||||
|
'ro': 'ro'
|
||||||
|
'ru': 'ru'
|
||||||
|
'sk': 'sk-SK'
|
||||||
|
'sr': 'sr'
|
||||||
|
'sv-SE': 'sv-SE'
|
||||||
|
'tr': 'tr'
|
||||||
|
'uk': 'uk'
|
||||||
|
'vi': 'vi'
|
||||||
|
'zh-CN': 'zh-Hans'
|
||||||
|
'zh-TW': 'zh-Hant'
|
||||||
|
-
|
||||||
|
source: '/website/i18n/en.json'
|
||||||
|
translation: '/website/i18n/%locale%.json'
|
||||||
|
languages_mapping: *anchor
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
id: translation
|
id: translation
|
||||||
title: Translations
|
title: Translations & Localization
|
||||||
---
|
---
|
||||||
|
|
||||||
Docusaurus allows for easy translation functionality using Crowdin. Documentation files written in English are uploaded to Crowdin for translation by users. Top-level pages written with English strings can be translated by wrapping any strings you want to translate in a `<translate>` tag. Other titles and labels will also be found and properly translated.
|
Docusaurus allows for easy translation functionality using Crowdin. Documentation files written in English are uploaded to Crowdin for translation by users within a community. Top-level pages written with English strings can be translated by wrapping any strings you want to translate in a `<translate>` tag. Other titles and labels will also be found and properly translated.
|
||||||
|
|
||||||
## Docusaurus Translation Configurations
|
## Docusaurus Translation Configurations
|
||||||
|
|
||||||
|
@ -13,6 +13,12 @@ To generate example files for translations with Docusuaurus, run the `examples`
|
||||||
npm run examples translations
|
npm run examples translations
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn examples translations
|
||||||
|
```
|
||||||
|
|
||||||
This will create the following files:
|
This will create the following files:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -21,19 +27,30 @@ languages.js
|
||||||
crowdin.yaml
|
crowdin.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
The `pages/en/help-with-translations.js` file is the same example help page generated by the `examples` script but now using translations tags that are described below.
|
The `pages/en/help-with-translations.js` file includes the same starter help page generated by the `examples` script, but now includes translation tags.
|
||||||
|
|
||||||
The `languages.js` file tells Docusaurus what languages you want to enable for your site.
|
The `languages.js` file tells Docusaurus what languages you want to enable for your site.
|
||||||
The `crowdin.yaml` file is used to configure crowdin integration, and is copied out one level into your project repo.
|
|
||||||
|
|
||||||
## Writing Pages to be Translated
|
The `crowdin.yaml` file is used to configure crowdin integration, and is copied up one level into your docusaurus project repo. If your docusaurus project resides in `/project/website`, then `crowdin.yaml` will be copied to `/project/crowdin.yaml`.
|
||||||
|
|
||||||
Any pages with text you want to be translated should go into the `website/pages/en` folder. Simply wrap any strings you want translated in a `<translate>` tag, and add the following `require` statement to the top of the file:
|
## Translating Your Existing Docs
|
||||||
|
|
||||||
|
Your documentation files do not need to be changed or moved to support translations. They will be uploaded to Crowdin to be translated directly.
|
||||||
|
|
||||||
|
|
||||||
|
## Enabling Translations on Pages
|
||||||
|
|
||||||
|
Pages allow you to customize layout and specific content of pages like a custom index page or help page.
|
||||||
|
|
||||||
|
Pages with text that you want translated should be placed in `website/pages/en` folder.
|
||||||
|
|
||||||
|
Wrap strings you want translated in a `<translate>` tag, and add the following `require` statement to the top of the file:
|
||||||
```jsx
|
```jsx
|
||||||
...
|
...
|
||||||
const translate = require("../../server/translate.js").translate;
|
const translate = require("../../server/translate.js").translate;
|
||||||
...
|
...
|
||||||
<h2>
|
<h2>
|
||||||
<translate>This is a Header I want translated</translate>
|
<translate>This header will be translated</translate>
|
||||||
</h2>
|
</h2>
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
@ -45,10 +62,10 @@ You can also include an optional description attribute to give more context to a
|
||||||
<p>
|
<p>
|
||||||
```
|
```
|
||||||
|
|
||||||
Documentation files do not need to be changed to support translations. They will be uploaded to Crowdin to be translated directly.
|
|
||||||
|
|
||||||
## Gathering Strings to Translate
|
## Gathering Strings to Translate
|
||||||
|
|
||||||
|
The strings within localized Pages must be extracted and provided to Crowdin.
|
||||||
|
|
||||||
Add the following script to your package.json file:
|
Add the following script to your package.json file:
|
||||||
```json
|
```json
|
||||||
...
|
...
|
||||||
|
@ -70,22 +87,47 @@ The script will include text from the following places:
|
||||||
|
|
||||||
## How Strings Get Translated
|
## How Strings Get Translated
|
||||||
|
|
||||||
Docusaurus itself does not do any translation from one language to another. Instead, it uses [Crowdin](https://crowdin.com/) to manage translations and then downloads appropriately translated files from Crowdin. More information on how to set up Crowdin translations later.
|
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.
|
||||||
|
|
||||||
## How Docusaurus Uses String Translations
|
## How Docusaurus Uses String Translations
|
||||||
|
|
||||||
This section provides some more context for how translation works, but is not necessary information for the user to know.
|
This section provides context about how translations in Docusaurus works.
|
||||||
|
|
||||||
For things like the strings found in the headers and sidebars of pages, Docusaurus references a translated version of `i18n/en.json` (for example, a `i18n/fr.json` file downloaded from Crowdin).
|
### Strings
|
||||||
|
|
||||||
For documentation text itself, fully translated markdown files will be compiled in the same way English documentation markdown files would be.
|
A Docusaurus site has many strings used throughout it that require localization. However, maintaining a list of strings used through out a site can be laborious. Docusaurus simplies this by centralizing strings.
|
||||||
|
|
||||||
For other pages, Docusaurus will automatically transform all `<translate>` tags into function calls that will return appropriately translated strings. For each language that is enabled with `languages.js`, Docusaurus will build translated pages using the files in `pages/en` and the language's respective `.json` file in `i18n`.
|
The header navigation, for example can have links to 'Home' or your 'Blog'. This and other strings found in the headers and sidebars of pages are extracted and placed into `i18n/en.json`. When your files are translated, say into Spanish, a `i18n/fr.json` file will be downloaded from Crowdin. Then, when the Spanish pages are generated, Docusaurus will replace the English version of corresponding strings with translated strings from the corresponding localized strings file (e.g. In a Spanish enabled site 'Help' will become 'Ayuda').
|
||||||
|
|
||||||
## Crowdin Set-Up
|
### Markdown Files
|
||||||
|
|
||||||
|
For documentation files themselves, translated versions of these files are downloaded and then rendered through the proper layout template.
|
||||||
|
|
||||||
|
### Other Pages
|
||||||
|
|
||||||
|
For other pages, Docusaurus will automatically transform all `<translate>` tags it finds into function calls that return the translated strings from corresponding localized _`locale`_`.json`.
|
||||||
|
|
||||||
|
## Crowdin
|
||||||
|
|
||||||
Create your translation project on [Crowdin](https://www.crowdin.com/). You can use [Crowdin's guides](https://support.crowdin.com/translation-process-overview/) to learn more about the translations work flow.
|
Create your translation project on [Crowdin](https://www.crowdin.com/). You can use [Crowdin's guides](https://support.crowdin.com/translation-process-overview/) to learn more about the translations work flow.
|
||||||
|
|
||||||
|
### Manual File Sync
|
||||||
|
|
||||||
|
You can add the following to your `package.json` to manually trigger crowdin.
|
||||||
|
|
||||||
|
```json
|
||||||
|
"scripts": {
|
||||||
|
"crowdin-upload": "export CROWDIN_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
|
||||||
|
"crowdin-download": "export CROWDIN_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml download -b master"
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
These commands require having an environment variable set with your crowdin project id and api key (`CROWDIN_PROJECT_ID`, `CROWDIN_API_KEY`). You can add them inline like above or add them permanently to your `.bashrc` or `.bash_profile`.
|
||||||
|
|
||||||
|
If you run more than one localized Docusaurus project on your computer, you should change the name of the enviroment variables to something unique (`CROWDIN_DOCUSAURUS_PROJECT_ID`, `CROWDIN_DOCUSAURUS_API_KEY`).
|
||||||
|
|
||||||
|
### Automated File Sync
|
||||||
|
|
||||||
To automatically get the translations for your files, update the `circle.yml` file in your project directory to include steps to upload English files to be translated and download translated files using the Crowdin CLI. Here is an example `circle.yml` file:
|
To automatically get the translations for your files, update the `circle.yml` file in your project directory to include steps to upload English files to be translated and download translated files using the Crowdin CLI. Here is an example `circle.yml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -128,7 +170,11 @@ Now, Circle will help you automatically get translations prior to building your
|
||||||
|
|
||||||
If you wish to use Crowdin on your machine locally, you can install the [Crowdin CLI tool](https://support.crowdin.com/cli-tool/) and run the same commands found in the `circle.yaml` file. The only difference is that you must set `project_identifier` and `api_key` values in the `crowdin.yaml` file since you will not have Circle environment variables set up.
|
If you wish to use Crowdin on your machine locally, you can install the [Crowdin CLI tool](https://support.crowdin.com/cli-tool/) and run the same commands found in the `circle.yaml` file. The only difference is that you must set `project_identifier` and `api_key` values in the `crowdin.yaml` file since you will not have Circle environment variables set up.
|
||||||
|
|
||||||
## Translations and Versioning
|
## Versioned Translations
|
||||||
|
|
||||||
|
TODO - This section needs to be fleshed out.
|
||||||
|
|
||||||
|
OLD -
|
||||||
|
|
||||||
If you wish to have translation and versioning for your documentation, add the following section to the end of your `crowdin.yaml` file:
|
If you wish to have translation and versioning for your documentation, add the following section to the end of your `crowdin.yaml` file:
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
const languages = [
|
const languages = [
|
||||||
{
|
|
||||||
enabled: false,
|
|
||||||
name: "日本語",
|
|
||||||
tag: "ja"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
enabled: true,
|
enabled: true,
|
||||||
name: "English",
|
name: "English",
|
||||||
tag: "en"
|
tag: "en"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "日本語",
|
||||||
|
tag: "ja"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
enabled: false,
|
enabled: false,
|
||||||
name: "العربية",
|
name: "العربية",
|
||||||
|
|
38
website/i18n/en.json
Normal file
38
website/i18n/en.json
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"localized-strings": {
|
||||||
|
"next": "Next",
|
||||||
|
"previous": "Previous",
|
||||||
|
"tagline": "Easy to Maintain Open Source Documentation Websites",
|
||||||
|
"commands": "CLI Commands",
|
||||||
|
"doc-markdown": "Markdown Features",
|
||||||
|
"api-pages": "Pages and Styles",
|
||||||
|
"site-config": "siteConfig.js",
|
||||||
|
"installation": "Installation",
|
||||||
|
"site-preparation": "Site Preparation",
|
||||||
|
"site-creation": "Creating your site",
|
||||||
|
"getting-started": "getting-started",
|
||||||
|
"blog": "Adding a Blog",
|
||||||
|
"custom-pages": "Custom Pages",
|
||||||
|
"navigation": "Navigation and Sidebars",
|
||||||
|
"search": "Enabling Search",
|
||||||
|
"translation": "Translations & Localization",
|
||||||
|
"versioning": "Versioning",
|
||||||
|
"Docs": "Docs",
|
||||||
|
"Help": "Help",
|
||||||
|
"Blog": "Blog",
|
||||||
|
"GitHub": "GitHub",
|
||||||
|
"Getting Started": "Getting Started",
|
||||||
|
"Guides": "Guides",
|
||||||
|
"API": "API"
|
||||||
|
},
|
||||||
|
"pages-strings": {
|
||||||
|
"Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)|no description given": "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)",
|
||||||
|
"Browse Docs|no description given": "Browse Docs",
|
||||||
|
"Ask questions about the documentation and project|no description given": "Ask questions about the documentation and project",
|
||||||
|
"Join the community|no description given": "Join the community",
|
||||||
|
"Find out what's new with this project|no description given": "Find out what's new with this project",
|
||||||
|
"Stay up to date|no description given": "Stay up to date",
|
||||||
|
"Need help?|no description given": "Need help?",
|
||||||
|
"This project is maintained by a dedicated group of people.|statement made to reader": "This project is maintained by a dedicated group of people."
|
||||||
|
}
|
||||||
|
}
|
183
website/languages.js
Normal file
183
website/languages.js
Normal file
|
@ -0,0 +1,183 @@
|
||||||
|
/**
|
||||||
|
* Copyright (c) 2017-present, Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD-style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const languages = [
|
||||||
|
{
|
||||||
|
enabled: true,
|
||||||
|
name: "English",
|
||||||
|
tag: "en"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "日本語",
|
||||||
|
tag: "ja"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "العربية",
|
||||||
|
tag: "ar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Bosanski",
|
||||||
|
tag: "bs-BA"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Català",
|
||||||
|
tag: "ca"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Čeština",
|
||||||
|
tag: "cs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Dansk",
|
||||||
|
tag: "da"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Deutsch",
|
||||||
|
tag: "de"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Ελληνικά",
|
||||||
|
tag: "el"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Español",
|
||||||
|
tag: "es-ES"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "فارسی",
|
||||||
|
tag: "fa-IR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Suomi",
|
||||||
|
tag: "fi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Français",
|
||||||
|
tag: "fr"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "עִברִית",
|
||||||
|
tag: "he"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Magyar",
|
||||||
|
tag: "hu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Bahasa Indonesia",
|
||||||
|
tag: "id-ID"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Italiano",
|
||||||
|
tag: "it"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Afrikaans",
|
||||||
|
tag: "af"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "한국어",
|
||||||
|
tag: "ko"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "मराठी",
|
||||||
|
tag: "mr-IN"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Nederlands",
|
||||||
|
tag: "nl"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Norsk",
|
||||||
|
tag: "no-NO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Polskie",
|
||||||
|
tag: "pl"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Português",
|
||||||
|
tag: "pt-PT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Português (Brasil)",
|
||||||
|
tag: "pt-BR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Română",
|
||||||
|
tag: "ro"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Русский",
|
||||||
|
tag: "ru"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Slovenský",
|
||||||
|
tag: "sk-SK"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Српски језик (Ћирилица)",
|
||||||
|
tag: "sr"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Svenska",
|
||||||
|
tag: "sv-SE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Türkçe",
|
||||||
|
tag: "tr"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Українська",
|
||||||
|
tag: "uk"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "Tiếng Việt",
|
||||||
|
tag: "vi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
enabled: false,
|
||||||
|
name: "中文",
|
||||||
|
tag: "zh-Hans"
|
||||||
|
},
|
||||||
|
{ enabled: false, name: "繁體中文", tag: "zh-Hant" }
|
||||||
|
];
|
||||||
|
module.exports = languages;
|
|
@ -1,10 +1,13 @@
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "../lib/start-server.js",
|
"start": "docusaurus-start",
|
||||||
"build": "../lib/build-files.js",
|
"build": "docusaurus-build",
|
||||||
"publish-gh-pages": "../lib/publish-gh-pages.js",
|
"publish-gh-pages": "docusaurus-publish",
|
||||||
"examples": "../lib/copy-examples.js",
|
"examples": "docusaurus-examples",
|
||||||
"write-translations": "../lib/write-translations.js",
|
"write-translations": "docusaurus-write-translations",
|
||||||
"version": "../lib/version.js"
|
"version": "docusaurus-version",
|
||||||
|
"rename-version": "docusaurus-rename-version",
|
||||||
|
"crowdin-upload": "export CROWDIN_PROJECT_ID=docusaurus; export CROWDIN_API_KEY=d618a1663b548eca3fc7fc7c4294512e; crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
|
||||||
|
"crowdin-download": "export CROWDIN_PROJECT_ID=docusaurus; export CROWDIN_API_KEY=d618a1663b548eca3fc7fc7c4294512e; crowdin-cli --config ../crowdin.yaml download -b master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ const users = [
|
||||||
|
|
||||||
const siteConfig = {
|
const siteConfig = {
|
||||||
title: "Docusaurus",
|
title: "Docusaurus",
|
||||||
tagline: "Open Source Documentation Websites",
|
tagline: "Easy to Maintain Open Source Documentation Websites",
|
||||||
url: "https://docusaurus.io",
|
url: "https://docusaurus.io",
|
||||||
baseUrl: "/",
|
baseUrl: "/",
|
||||||
projectName: "Docusaurus",
|
projectName: "Docusaurus",
|
||||||
|
@ -42,6 +42,8 @@ const siteConfig = {
|
||||||
headerLinks: [
|
headerLinks: [
|
||||||
{ doc: "installation", label: "Docs" },
|
{ doc: "installation", label: "Docs" },
|
||||||
{ page: "help", label: "Help" },
|
{ page: "help", label: "Help" },
|
||||||
|
{ blog: true, label: "Blog" },
|
||||||
|
{ languages: true },
|
||||||
{
|
{
|
||||||
href: "https://github.com/facebookexperimental/docusaurus",
|
href: "https://github.com/facebookexperimental/docusaurus",
|
||||||
label: "GitHub"
|
label: "GitHub"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue