调整 gh-pages 流程
This commit is contained in:
parent
5ac3169cf0
commit
d7b75b268f
|
@ -35,5 +35,5 @@ glob('./docs/**/*.md', {}, function (er, docs) {
|
|||
path: doc.replace('.md', '')
|
||||
});
|
||||
}
|
||||
fs.writeFileSync('./gh-pages/docs/docs.json', JSON.stringify(resultData));
|
||||
fs.writeFileSync('./examples/docs.json', JSON.stringify(resultData));
|
||||
});
|
||||
|
|
|
@ -17,7 +17,7 @@ export default class DocSearch extends React.Component {
|
|||
this.onSearchCancel = this.onSearchCancel.bind(this);
|
||||
}
|
||||
componentDidMount() {
|
||||
Axios.get('/docs/docs.json')
|
||||
Axios.get(__uri('../docs.json'))
|
||||
.then(result => {
|
||||
this.docs = result.data.docs;
|
||||
})
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Reference in New Issue