Skip to content

Commit

Permalink
抽离开发文档导航资源
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 31, 2018
1 parent da4e540 commit 3de4bbe
Show file tree
Hide file tree
Showing 53 changed files with 6 additions and 1,174 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/dev-site"]
path = src/dev-site
url = https://github.com/jaywcjlove/dev-site.git
2 changes: 1 addition & 1 deletion conf/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ module.exports = {
{ source: "./chrome-main/manifest.json", destination: "./oscnews/manifest.json" },
{ source: "./chrome-main/background.js", destination: "./oscnews/background.js" },
{ source: "./chrome-main/osc-logo.png", destination: "./oscnews/osc-logo.png" },
{ source: "./src/source/icons", destination: "./oscnews/icons" },
{ source: "./src/dev-site/icons", destination: "./oscnews/icons" },
]
}
1 change: 1 addition & 0 deletions src/dev-site
Submodule dev-site added at 052adb
2 changes: 1 addition & 1 deletion src/pages/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import classNames from 'classnames';
import Footer from '../component/Footer';
import styles from './Document.less';
import source from '../source/document.json';
import source from '../dev-site/document.json';

if (!localStorage.getItem('osc-doc')) {
localStorage.setItem('osc-doc', JSON.stringify(source));
Expand Down
1 change: 0 additions & 1 deletion src/pages/Document.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
flex-direction: column;
margin: 0 10px 10px 0;
min-width: 160px;
min-height: 80px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.07);
Expand Down
Loading

0 comments on commit 3de4bbe

Please sign in to comment.