Improve doc

This commit is contained in:
syuilo 2018-07-17 01:11:36 +09:00
parent 455f4ffa27
commit e8da0bcd80
6 changed files with 3410 additions and 4502 deletions

View file

@ -5,6 +5,7 @@
import * as fs from 'fs';
import * as path from 'path';
import * as showdown from 'showdown';
import 'showdown-highlightjs-extension';
import ms = require('ms');
import * as Router from 'koa-router';
import * as send from 'koa-send';
@ -220,7 +221,7 @@ router.get('/*/*', async ctx => {
const conv = new showdown.Converter({
tables: true,
extensions: ['urlExtension', 'apiUrlExtension']
extensions: ['urlExtension', 'apiUrlExtension', 'highlightjs']
});
const md = fs.readFileSync(`${__dirname}/../../../src/docs/${doc}.${lang}.md`, 'utf8');