mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
调整 gh-pages 流程
This commit is contained in:
parent
0e7050d952
commit
ce4f4df752
@ -35,5 +35,5 @@ glob('./docs/**/*.md', {}, function (er, docs) {
|
|||||||
path: doc.replace('.md', '')
|
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);
|
this.onSearchCancel = this.onSearchCancel.bind(this);
|
||||||
}
|
}
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
Axios.get('/docs/docs.json')
|
Axios.get(__uri('../docs.json'))
|
||||||
.then(result => {
|
.then(result => {
|
||||||
this.docs = result.data.docs;
|
this.docs = result.data.docs;
|
||||||
})
|
})
|
||||||
|
1
examples/docs.json
Normal file
1
examples/docs.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
Loading…
Reference in New Issue
Block a user