Skip to content

Commit

Permalink
Build the current docs on master (#184)
Browse files Browse the repository at this point in the history

Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
  • Loading branch information
ewels authored Mar 22, 2024
1 parent f59fc39 commit a3f1f66
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: "0 1 * * *" # Daily, 1am

jobs:
build:
Expand Down
7 changes: 7 additions & 0 deletions build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WEBSITE_DIR=$(pwd)
# Make the empty target directories
mkdir -p output/docs/latest/
mkdir -p output/docs/edge/
mkdir -p output/docs/master/

# Fetch the Nextflow repo
git clone https://github.com/nextflow-io/nextflow.git
Expand All @@ -35,3 +36,9 @@ git checkout $STABLE_TAG
pip install -r requirements.txt
make clean html
mv _build/html/* $WEBSITE_DIR/output/docs/latest/

# Build current docs on master
git checkout master
pip install -r requirements.txt
make clean html
mv _build/html/* $WEBSITE_DIR/output/docs/master/
5 changes: 3 additions & 2 deletions src/components/Menu.astro
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ const scrollClass = isHomepage ? ["scroll"] : [];
<li class="dropdown show animated flipInX">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/docs/latest/index.html">Reference documentation</a></li>
<li><a href="/docs/edge/index.html">Edge release documentation</a></li>
<li><a href="/docs/latest/index.html">Documentation: Stable release</a></li>
<li><a href="/docs/edge/index.html">Documentation: Edge release</a></li>
<li><a href="/docs/dev/index.html">Documentation: Current dev</a></li>
<li><a href="http://training.nextflow.io">Nextflow training</a></li>
<li><a href="http://nextflow-io.github.io/patterns/index.html">Implementation patterns</a></li>
<li><a href="/ambassadors.html">Nextflow Ambassadors</a></li>
Expand Down

0 comments on commit a3f1f66

Please sign in to comment.