Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build
include/avr_mcu_section.h
.directory
doc/html
doc/yalla
35 changes: 35 additions & 0 deletions build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

BASE_DIR="`pwd`"
DIRECTORY="doc"
echo "$DIRECTORY"
echo "$BASE_DIR"


# test for doc/html directory
if [ ! -d "$DIRECTORY" ];
then
echo "Doc folder not found - fetching doc repo"
mkdir doc
cd doc
git clone -b gh-pages git@github.com:chrism333/yalla.git
mv yalla html
cd $BASE_DIR
else
echo " Doc folder found - updating repo first"
cd doc/html
git checkout gh-pages
git pull
cd $BASE_DIR
fi

echo "updating doxygen files"
doxygen yalla.doxyfile | grep "finished"
echo
cd doc/html
git add *
git commit -m "updated documentation"
git push origin gh-pages
cd $BASE_DIR
echo "all done"

Loading