Browse Source

renamed doc // added maintenance deploy

master
Marius Isken 1 month ago
parent
commit
8f7b368e5b
7 changed files with 33 additions and 1 deletions
  1. +0
    -0
      doc/Makefile
  2. +0
    -0
      doc/make.bat
  3. +0
    -0
      doc/source/conf.py
  4. +1
    -1
      doc/source/index.rst
  5. +0
    -0
      doc/source/processing.rst
  6. +0
    -0
      doc/source/setup.rst
  7. +32
    -0
      maintenance/deploy-docs.sh

docs/Makefile → doc/Makefile View File


docs/make.bat → doc/make.bat View File


docs/source/conf.py → doc/source/conf.py View File


docs/source/index.rst → doc/source/index.rst View File


docs/source/processing.rst → doc/source/processing.rst View File


docs/source/setup.rst → doc/source/setup.rst View File


+ 32
- 0
maintenance/deploy-docs.sh View File

@ -0,0 +1,32 @@
#!/bin/bash
set -e
VERSION=v`python3 -c "import pkg_resources; print(pkg_resources.get_distribution('idas_convert').version)"`
if [ ! -f maintenance/deploy-docs.sh ] ; then
echo "must be run from idas_convert's toplevel directory"
exit 1
fi
cd doc
rm -rf build/$VERSION
make clean; make html $1
cp -r build/html build/$VERSION
read -r -p "Are your sure to update live docs at https://pyrocko.org/idas_convert/docs/$VERSION [y/N]?" resp
case $resp in
[yY][eE][sS]|[yY] )
rsync -av build/$VERSION pyrocko@hive:/var/www/pyrocko.org/idas_convert/docs;
;;
* ) ;;
esac
read -r -p "Do you want to link 'current' to the just uploaded version $VERSION [y/N]?" resp
case $resp in
[yY][eE][sS]|[yY] )
echo "Linking idas_convert/docs/$VERSION to docs/current";
ssh pyrocko@hive "rm -rf /var/www/pyrocko.org/idas_convert/docs/current; ln -s /var/www/pyrocko.org/idas_convert/docs/$VERSION /var/www/pyrocko.org/idas_convert/docs/current";
;;
* ) ;;
esac
cd ..

Loading…
Cancel
Save