Skip to content

Adding a dev website path for the new lints.json format and testing deployment #7229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
11 changes: 11 additions & 0 deletions .github/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@ set -ex

echo "Removing the current docs for master"
rm -rf out/master/ || exit 0
rm -rf out/dev/ || exit 0

echo "Making the docs for master"
mkdir out/master/
cp util/gh-pages/index.html out/master
python3 ./util/export.py out/master/lints.json

# Feeding the beast
# This will run in parallel to the current lint list version until everything is fully adapted
echo "Building dev environment"
mkdir -p out/dev/
cp util/gh-pages/dev-index.html out/dev/index.html
cargo collect-metadata
# Temporary fix until the old headline syntax will be replaced with the markdown ### syntax
sed -i -e 's/ \*\*/### /g' -e 's/\*\*/\\n/g' util/gh-pages/metadata_collection.json
cp util/gh-pages/metadata_collection.json out/dev/lints.json

if [[ -n $TAG_NAME ]]; then
echo "Save the doc for the current tag ($TAG_NAME) and point stable/ to it"
cp -r out/master "out/$TAG_NAME"
Expand Down
Loading