-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ stuff/ | |
.DS_Store | ||
.gitpod.yml | ||
|
||
# For docs build | ||
nextflow/ | ||
|
||
# build output | ||
dist/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
##################################################################### | ||
# NEXTFLOW DOCUMENTATION | ||
##################################################################### | ||
|
||
WEBSITE_DIR=$(pwd) | ||
|
||
# Make the empty target directories | ||
mkdir -p output/docs/latest/ | ||
mkdir -p output/docs/edge/ | ||
|
||
# Fetch the Nextflow repo | ||
git clone https://github.com/nextflow-io/nextflow.git | ||
cd nextflow/docs/ | ||
|
||
# Find the latest stable and edge releases | ||
STABLE_TAG=$(curl -s https://api.github.com/repos/nextflow-io/nextflow/releases | jq -r ". [].tag_name" | grep -v edge | head -n 1) | ||
EDGE_TAG=$(curl -s https://api.github.com/repos/nextflow-io/nextflow/releases | jq -r ". [].tag_name" | grep edge | head -n 1) | ||
echo "Latest stable release: $STABLE_TAG" | ||
echo "Latest edge release: $EDGE_TAG" | ||
|
||
# Sanity check: Assert string lengths | ||
if [ ${#STABLE_TAG} -le 4 ]; then echo "Version string too short" ; exit 1; fi | ||
if [ ${#EDGE_TAG} -le 4 ]; then echo "Version string too short" ; exit 1; fi | ||
|
||
# Build edge docs | ||
git checkout $EDGE_TAG | ||
pip install -r requirements.txt | ||
make clean html | ||
mv _build/html/* $WEBSITE_DIR/output/docs/edge/ | ||
|
||
# Build stable docs | ||
git checkout $STABLE_TAG | ||
pip install -r requirements.txt | ||
make clean html | ||
mv _build/html/* $WEBSITE_DIR/output/docs/latest/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters