From 2da4693ae69955baa1d8226b9c8bba5b75de9d59 Mon Sep 17 00:00:00 2001 From: Alan Luo Date: Sat, 15 Feb 2020 17:41:44 -0500 Subject: [PATCH] Updated readme.md for new language and sitemap --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index defd8193..49bc7c35 100644 --- a/README.md +++ b/README.md @@ -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