https://github.com/lmfit/lmfit-py
Revision 3da8e622d54c57e1b36c4ae199ddc67959e117b0 authored by Matthew Newville on 05 July 2021, 13:41:39 UTC, committed by Matthew Newville on 05 July 2021, 13:41:39 UTC
1 parent 65f5a4d
Raw File
Tip revision: 3da8e622d54c57e1b36c4ae199ddc67959e117b0 authored by Matthew Newville on 05 July 2021, 13:41:39 UTC
add test of collisions with unprefixed parameter when constructing function arguments for model function
Tip revision: 3da8e62
publish_docs.sh
#!/usr/bin/env sh

# shell script for building the documentation and updating GitHub Pages

cd doc
echo '# Building lmfit documentation (PDF/EPUB/HTML)'
make clean
make all
cd ../

echo '# Building tarball of documentation'
tar czf lmfit_docs.tar.gz doc/_build/html/* -C doc/_build/html .

echo "# Switching to gh-pages branch"
git checkout gh-pages

if  [ $? -ne 0 ]  ; then
  echo ' failed.'
  exit
fi

echo '# Clean-up old documentation files'
rm -rf *.html *.js
rm -rf _download _images _sources _static

echo '# Unpack new documentation files'
tar xzf lmfit_docs.tar.gz
rm -f lmfit_docs.tar.gz
rm -f .buildinfo

echo '# Commit changes to gh-pages branch'
export version=`git tag | sort | tail -1`
git add *
git commit -am "DOC: update documentation for ${version}"

if  [ $? -ne 0 ]  ; then
  echo ' failed.'
  exit
fi

echo '# Please check the commit and if everything looks good, push the changes:'
echo 'for example by doing: `git push` or `git push upstream`'
back to top