move docs, remove katex

This commit is contained in:
undefined committed 2020-07-20 16:03:22 +08:00
1 parent da6002278d
commit c4a13f2e27
27 files changed
+190 -550

No files matched your search

+2 -4
View File
@@ -13,7 +13,6 @@ import Router from 'koa-router';
import cache from 'koa-static-cache';
import sockjs from 'sockjs';
import serialize, { SerializeJSOptions } from 'serialize-javascript';
import parse from 'yargs-parser';
import { lrucache } from '../utils';
import { User, DomainDoc } from '../interface';
import {
@@ -32,7 +31,6 @@ import * as blacklist from '../model/blacklist';
import * as token from '../model/token';
import * as opcount from '../model/opcount';
const argv = parse(process.argv.slice(2));
const app = new Koa();
let server;
const router = new Router();
@@ -774,8 +772,8 @@ export async function start() {
}
app.use(router.routes()).use(router.allowedMethods());
Route('notfound_handler', '*', Handler);
server.listen(argv.port || port);
console.log('Server listening at: %s', argv.port || port);
server.listen(global.argv.port || port);
console.log('Server listening at: %s', global.argv.port || port);
}
global.Hydro.service.server = {