feat:docs translation + versioning 💥

This commit is contained in:
endiliey 2018-09-07 20:41:04 +08:00
parent 31d333b82f
commit 0f38ae3979
20 changed files with 1133 additions and 520 deletions

View file

@ -5,10 +5,11 @@ module.exports = function(fileString) {
const options = getOptions(this);
const {body} = fm(fileString);
const content = JSON.stringify(body);
// TODO replace all the markdown linking to correct url depends on whether it's versioned/translated/normal docs
// e.g: [test](test.md) become [test](/docs/test)
/*
TODO replace all the markdown linking to correct url depends on whether it's versioned/translated/normal docs
e.g: [test](test.md) become [test](/docs/test)
*/
const siteConfig = JSON.stringify(options.siteConfig);
return (