Authored by 周奇琪

修复接口文档的样式和js

... ... @@ -142,9 +142,9 @@ exports.deepSet = function(obj, key, cb) {
*/
exports.getInterfaceConfig = function(routers) {
var env = process.env.NODE_ENV || 'development';
var cssFile = 'css/all.css';
var cssFile = 'dist/index.css';
if (env !== 'development') {
cssFile = staticOptions.staticDir[env] + '/all.css';
cssFile = staticOptions.staticDir[env].path+'/index.css';
}
return function(req, res) {
... ...
... ... @@ -13,10 +13,10 @@
<body>
<header>
<div class="headerwrapper">
<header style="background:#fff">
<div class="headerwrapper" >
<div class="header-left">
<h4 class="mt5" style="color:#fff">YOHO!BUY API DOC</h4>
<h4 class="mt5" style="margin:0;padding:10px">YOHO!BUY API DOC</h4>
</div>
</div>
... ... @@ -84,10 +84,9 @@
</div>
</section>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/custom.js"></script>
<script src="/assets/plugins/jquery/jquery-1.9.1.min.js"></script>
<script src="/assets/plugins/jquery/jquery-migrate-1.1.0.min.js"></script>
<script src="/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
var formatJson = function(json, options) {
var reg = null,
... ...