Skip to content

Commit

Permalink
Added separate docs generation script for macos
Browse files Browse the repository at this point in the history
crnbaker committed Jan 11, 2022
1 parent 66486c3 commit 0b38158
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions generate_docs.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
echo 'Generating documentation with pdoc...'
pdoc -t . --docformat google -o ./docs spectrumdevice
sed -i s/index.html/contents.html/g' docs/spectrumdevice.html
sed -i s/index.html/contents.html/g' docs/spectrumdevice/settings.html
sed -i 's/index.html/contents.html/g' docs/spectrumdevice.html
sed -i 's/index.html/contents.html/g' docs/spectrumdevice/settings.html
mv docs/index.html docs/contents.html
sed -i s/spectrumdevice.html/index.html/g' docs/contents.html
sed -i s/spectrumdevice.html/index.html/g' docs/spectrumdevice/settings.html
sed -i 's/spectrumdevice.html/index.html/g' docs/contents.html
sed -i 's/spectrumdevice.html/index.html/g' docs/spectrumdevice/settings.html
mv docs/spectrumdevice.html docs/index.html
10 changes: 5 additions & 5 deletions generate_docs_macos.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
echo 'Generating documentation with pdoc...'
pdoc -t . --docformat google -o ./docs spectrumdevice
sed -i '' s/index.html/contents.html/g' docs/spectrumdevice.html
sed -i '' s/index.html/contents.html/g' docs/spectrumdevice/settings.html
pdoc -t . --docformat google -o ./docs ./spectrumdevice
sed -i '' 's/index.html/contents.html/g' docs/spectrumdevice.html
sed -i '' 's/index.html/contents.html/g' docs/spectrumdevice/settings.html
mv docs/index.html docs/contents.html
sed -i '' s/spectrumdevice.html/index.html/g' docs/contents.html
sed -i '' s/spectrumdevice.html/index.html/g' docs/spectrumdevice/settings.html
sed -i '' 's/spectrumdevice.html/index.html/g' docs/contents.html
sed -i '' 's/spectrumdevice.html/index.html/g' docs/spectrumdevice/settings.html
mv docs/spectrumdevice.html docs/index.html

0 comments on commit 0b38158

Please sign in to comment.