Skip to content

Commit f45b76c

Browse files
authored
Docs: master->latest, latest->stable (#198)
1 parent 6c16975 commit f45b76c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

build_docs.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WEBSITE_DIR=$(pwd)
99
# Make the empty target directories
1010
mkdir -p output/docs/latest/
1111
mkdir -p output/docs/edge/
12-
mkdir -p output/docs/master/
12+
mkdir -p output/docs/stable/
1313

1414
# Fetch the Nextflow repo
1515
git clone https://github.com/nextflow-io/nextflow.git
@@ -26,19 +26,22 @@ if [ ${#STABLE_TAG} -le 4 ]; then echo "Version string too short" ; exit 1; fi
2626
if [ ${#EDGE_TAG} -le 4 ]; then echo "Version string too short" ; exit 1; fi
2727

2828
# Build edge docs
29+
echo "=============== Building edge docs: $EDGE_TAG ==============="
2930
git checkout $EDGE_TAG
3031
pip install -r requirements.txt
3132
make clean html
3233
mv _build/html/* $WEBSITE_DIR/output/docs/edge/
3334

3435
# Build stable docs
36+
echo "=============== Building stable docs: $STABLE_TAG ==============="
3537
git checkout $STABLE_TAG
3638
pip install -r requirements.txt
3739
make clean html
38-
mv _build/html/* $WEBSITE_DIR/output/docs/latest/
40+
mv _build/html/* $WEBSITE_DIR/output/docs/stable/
3941

4042
# Build current docs on master
43+
echo "=============== Building latest docs: master ==============="
4144
git checkout master
4245
pip install -r requirements.txt
4346
make clean html
44-
mv _build/html/* $WEBSITE_DIR/output/docs/master/
47+
mv _build/html/* $WEBSITE_DIR/output/docs/latest/

src/components/Menu.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const isHomepage = currentPath === "/" || currentPath === "/index.html";
3030
<div class="navbar-collapse collapse">
3131
<ul class="nav navbar-nav">
3232
<li class="show animated flipInX">
33-
<a href="/docs/master/index.html">Documentation</a>
33+
<a href="/docs/latest/index.html">Documentation</a>
3434
</li>
3535

3636
<li class="dropdown show animated flipInX">

src/pages/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import Layout from "@layouts/Layout.astro";
2929
</p>
3030

3131
<p class="text-center">
32-
<a href="/docs/master/index.html" class="btn btn-color btn-xxl animated fadeInUp delay4"> Documentation </a>
32+
<a href="/docs/latest/index.html" class="btn btn-color btn-xxl animated fadeInUp delay4"> Documentation </a>
3333
<a
3434
href="https://community.seqera.io/c/nextflow/5"
3535
target="_blank"

0 commit comments

Comments
 (0)