Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion append_doc_feature.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env -S bash -euo pipefail

for var in "$@"
do
Expand Down
6 changes: 2 additions & 4 deletions append_info.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash

set -e
#!/usr/bin/env -S bash -euo pipefail

for var in "$@"
do
Expand All @@ -19,4 +17,4 @@ do
# Find the first free line after "//!" comments and insert the text there
sed "0,/^[[:space:]]*$/ s/^[[:space:]]*$/$TEXT\n/" $var -i
fi
done
done
32 changes: 13 additions & 19 deletions build_relm_docs.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
#!/bin/sh
#!/usr/bin/env -S bash -euo pipefail

# Return on error
set -e
mkdir --parents docs/{stable,next} tmp
pushd tmp

mkdir docs
mkdir docs/stable
mkdir docs/next

mkdir tmp
cd tmp

git clone https://github.com/AaronErhardt/relm4 ./
git checkout stable
git clone --depth 1 --no-single-branch -- https://github.com/Relm4/Relm4 ./
git switch --detach $(git tag --list --sort "v:refname" | grep -v - | tail -n 1)

# Stable docs
export STABLE=1
Expand All @@ -20,26 +13,27 @@ find -name "lib.rs" -exec ../append_doc_feature.sh {} +

cargo update

cd relm4-components
pushd relm4-components
cargo +nightly doc --all-features -Z rustdoc-scrape-examples
popd

cd ../relm4-macros
pushd relm4-macros
cargo +nightly doc --all-features
# -Z rustdoc-scrape-examples
popd

cd ..
cargo +nightly doc --all-features -Z rustdoc-scrape-examples

cd ..
popd

mv tmp/target/doc/* docs/stable

# Unstable docs
export STABLE=0
cd tmp
pushd tmp

git stash
git checkout main
git switch main

cargo clean --doc
cargo update
Expand All @@ -50,7 +44,7 @@ export RUSTDOCFLAGS="--cfg dox"

cargo +nightly doc --all-features -Z rustdoc-scrape-examples

cd ..
popd

mv tmp/target/doc/* docs/next

Expand Down
5 changes: 1 addition & 4 deletions fix_ssh.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/bin/bash

# Return on error
set -e
#!/usr/bin/env -S bash -euo pipefail

# Overwrite global SSH configuration
echo "Host *
Expand Down
Loading