forked from NovelaNeuro/rec_to_nwb
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docs_upload.sh
36 lines (28 loc) · 1.19 KB
/
docs_upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DOC_REPO='https://github.com/NovelaNeuro/rec_to_nwb-docs'
#GH_DOCS_TOKEN=''
##USERNAME=''
echo 'README.md copying to docs/source and removing first line'
tail -n +2 README.md > README.tmp && mv README.tmp docs/source/README.md
echo 'LICENSE.md copying to docs/source and adding first line'
cp LICENSE.md ./docs/source/
sed -i '1i License' ./docs/source/LICENSE.md && sed -i '2i ===================' ./docs/source/LICENSE.md
echo 'Creating API Documentation'
sphinx-apidoc -fMET ./rec_to_nwb/processing -o ./docs/source/autoapi
echo 'Create HTML Documentation'
make html -C ./docs
#echo 'Deploy documentation to' $DOC_REPO
#git clone ${DOC_REPO}
#cd rec_to_nwb-docs
#ls ../
#git remote rm origin
#git remote add origin https://${USERNAME}:${GH_DOCS_TOKEN}@github.com/NovelaNeuro/rec_to_nwb-docs.git
#cp -r ../docs/build/html .
#git add -f .
#git commit -m "Documentation v$TRAVIS_BUILD_NUMBER"
#git push -f origin master
# maybe this? https://github.community/t5/How-to-use-Git-and-GitHub/Adding-a-folder-from-one-repo-to-another/td-p/5425
# git subtree push --prefix=docs\source &DOC_REPO master
# https://gist.github.com/Maumagnaguagno/84a9807ed71d233e5d3f
#ToDo to delete
echo 'Click enter to exit'
read exitKey