Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWIFTweb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTweb
Commits
1f90f617
Commit
1f90f617
authored
1 month ago
by
robjmcgibbon
Browse files
Options
Downloads
Patches
Plain Diff
No errors from make_page
parent
c0e937ed
No related branches found
No related tags found
1 merge request
!21
Add user map
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
make_page.sh
+13
-10
13 additions, 10 deletions
make_page.sh
with
13 additions
and
10 deletions
make_page.sh
+
13
−
10
View file @
1f90f617
#!/bin/bash
set
-e
# Tested on winkel.strw.leidenuniv.nl
module purge
module load localhosts
#
Uncomment to create new venv
#
python -m venv venv
#
Create venv if it doesn't exist
[
!
-d
"venv"
]
&&
python
-m
venv venv
source
venv/bin/activate
pip
install
--upgrade
pip
pip
install
-r
requirements.txt
# Create main webpage
git pull
rm
-r
gallery
cp
-r
/home/mcgibbon/public_html/SWIFT/webpage_image_gallery gallery
...
...
@@ -20,31 +23,31 @@ rsync -auv compiled/* ../
[
!
-d
"swift"
]
&&
git clone
"git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git"
"swift"
cd
swift
git checkout master
[
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
!=
"master"
]
&&
git checkout master
git pull
# Generate read the docs
cd
doc/RTD
rm
-rf
build
[
-d
"build"
]
&&
rm
-rf
build
make html
>
docbuild.out 2> docbuild.err
# Generate onboarding guide
cd
../onboardingGuide
rm
-rf
build
[
-d
"build"
]
&&
rm
-rf
build
make latexpdf
>
onbuild.out 2> onbuild.err
# Copy both to webpage
cd
../../..
rm
-rf
../docs
/
*
[
-d
"../docs"
]
&&
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
[
!
-d
"swift_will"
]
&&
git clone
"git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git"
"swift_will"
cd
swift_will
git checkout zoom_docs
[
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
!=
"zoom_docs"
]
&&
git checkout zoom_docs
git pull
cd
doc/RTD
rm
-rf
build
[
-d
"build"
]
&&
rm
-rf
build
make html
>
docbuild.out 2> docbuild.err
cd
../../..
rm
-rf
../docs_will
/
*
[
-d
"../docs_will"
]
&&
rm
-rf
../docs_will
cp
-r
swift_will/doc/RTD/build/html/ ../docs_will
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment