Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme.md for New Language and Sitemap #244

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Expand Up @@ -79,18 +79,17 @@ date: 2018-12-29
---
```

## How To Add One New Language
## How to Add a New Language

If you want to add a new language, such as Thai.

1. Please append the element: ```{ value: 'th-th', text: 'ภาษาไทย' }``` to the `langlist` variable of `site config/site.js`.
2. Then please add directories named `th-th` in `docs`and `blog` directories , here you can add documents in this language .
1. Please append the element: ```{ value: 'th-th', text: 'ภาษาไทย' }``` to the `langList` variable of `site_config/site.js`.
2. Next, make a copy of `en-us.js` in `i18n`, and name it `th-th.js`. Now you can start translating phrases on the page.
3. Then please add directories named `th-th` in `docs`and `blog` directories. Here you can copy articles from `en-us`, translate them, and then add them to `th-th`.

notice : Of course, you can also see `langlist` variables in several other files. This is just a bottom line measure, and you don't have to modify it..
## How to Add Sitemap for SEO

## How To Add sitemap for SEO

Please see the page : https://docsite.js.org/en-us/docs/SEO.html
`sitemap.xml` is generated automatically by `sitemap-generator.js` during the deployment process.


## Others
Expand Down