Skip to content
Snippets Groups Projects
Commit 2248df79 authored by robjmcgibbon's avatar robjmcgibbon
Browse files

Generate docs

parent dea7b078
No related branches found
No related tags found
1 merge request!21Add user map
......@@ -11,3 +11,4 @@ data/pubs.yaml
gallery/*
user_map/*
swift/*
#!/bin/bash
# Tested on winkel.strw.leidenuniv.nl
module purge
module load localhosts
# Uncomment to create new venv
#python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# TODO Remove
#git checkout user_map
git pull
rm -r gallery
cp -r /home/mcgibbon/public_html/SWIFT/webpage_image_gallery gallery
python query.py rLY4HeXMXttDOSedTGrYuRufATu2gDwgE84Hqy3B
python generate_map.py
python compiler.py
rsync -auv compiled/* ../
[ ! -d "swift" ] && git clone "git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git" "swift"
cd swift
git checkout master
git pull
# Generate read the docs
cd doc/RTD
rm -rf build
make html > docbuild.out 2> docbuild.err
# Generate onboarding guide
cd ../onboardingGuide
rm -rf build
make latexpdf > onbuild.out 2> onbuild.err
# Copy both to webpage
cd ../../..
rm -rf ../docs/*
cp -r swift/doc/RTD/build/html/ ../docs
cp swift/doc/onboardingGuide/build/latex/onboarding.pdf ../onboarding.pdf
# Generate read the docs for the zoom branch
cd swift
git checkout zoom_docs
git pull
cd doc/RTD
rm -rf build
make html > docbuild.out 2> docbuild.err
cd ../../..
rm -rf ../docs_will/*
cp -r swift/doc/RTD/build/html/ ../docs_will
# Required for SWIFTweb
pyyaml
jinja2
mistune
python-dateutil
myads
bokeh
# Required for swift docs
sphinx_rtd_theme
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment