Skip to content

Commit 4f3689b

Browse files
committed
Add docs/stable alias
There's no straightforward way in Jekyll to do such a per-directory alias so just copy the directory. Use the latest stable version as defined in _data/projects.yml.
1 parent cdf23a6 commit 4f3689b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build-docs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ build() {
1616
local name=$1
1717
local query=".[] | select(.name == \"$name\")"
1818
local repo_url=$(yq "${query}.repourl")
19+
local stable=$(yq "${query}.stable[0]")
1920
local repo_dir=$SCRIPT_DIR/_build/$name
2021
local src_path dst_path
2122

@@ -33,6 +34,9 @@ build() {
3334
mkdir -p $dest_dir
3435
DESTDIR=$dest_dir bash -c "cd $tree_dir && $build"
3536
done
37+
38+
# Create stable "alias"
39+
cp -r $DEST_DIR/$stable $DEST_DIR/stable
3640
}
3741

3842
for project in $(yq ".[].name"); do

0 commit comments

Comments
 (0)