commit | 0408ec18c5c66adb441814a6a7f2c67a3efe21ba | [log] [tgz] |
---|---|---|
author | Willem Jiang <willem.jiang@gmail.com> | Mon Dec 23 11:58:14 2019 +0800 |
committer | Willem Jiang <willem.jiang@gmail.com> | Mon Dec 23 11:58:14 2019 +0800 |
tree | 79f63973732bf6a8705785b32d39bfd943593301 | |
parent | f323c43eff57edb7246f5cb5fa40e7a1aed1a5d1 [diff] |
Fixed the broken links of footer
The Web Site of ServiceComb is based on Minimal Mistakes Jekyll Theme.
As this website is using the gitpubsub and we use Jekyll to generate the site. We choose master branch to hold all the site source change and asf-site for apache gitpubsub. Please sent your PR to the master branch instead of asf-site.
Change to non-root user
Install Jekyll and Bundler
sudo gem install jekyll bundler
Clone the site files
git clone https://github.com/apache/incubator-servicecomb-website.git
cd incubator-servicecomb-website
Install the gems with bundle
sudo bundle install
Start the jekyll server
sudo bundle exec jekyll server
Start web browser to access http://localhost:4000
Switch to asf-site branch
git checkout asf-site
Merge the changes of master branch
git merge master
Generate the website static pages
bundle exec jekyll build
Commit the changes into git repo
git add content
git commit -m "publish website"
Note that tested versions of the tools covered in this section are as following,
The website supports English now and English is used as the default language.
Things to be cautious:
There are two language labels: en and cn.
lang: cn ref: unique_post_ref_just_like_the_urlAnd remember to add the prefix /cn to your permalink, e.g. before:
permalink: /about/me/after:
permalink: /cn/about/me/Besides, if contents of your post contains links to the Chinese version of pages, remember to add the prefix /cn before the link. e.g. /about/community/ becomes /cn/about/community/ Notes: English Posts do not need to add any prefixes as it's the default language.
Add the annotation {: .figure-caption}
below the Image Caption line as follows:
![image alt text](image_path) Image Caption {: .figure-caption}