Skip to content

Commit ce5dd69

Browse files
exclude benchmarks from DocsNav (#78)
1 parent 7f3afc0 commit ce5dd69

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/DocNav.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,21 @@ jobs:
3232
3333
# Define the URL of the navbar to be used
3434
NAVBAR_URL="https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/TuringNavbar.html"
35-
36-
# Update all HTML files in the current directory (gh-pages root)
37-
./insert_navbar.sh . $NAVBAR_URL
38-
35+
36+
# Define file & folder to exclude (comma-separated list), Un-Comment the below line for excluding anything!
37+
EXCLUDE_PATHS="benchmarks"
38+
39+
# Update all HTML files in the current directory (gh-pages root), use `--exclude` only if requred!
40+
./insert_navbar.sh . $NAVBAR_URL --exclude "$EXCLUDE_PATHS"
41+
3942
# Remove the insert_navbar.sh file
4043
rm insert_navbar.sh
41-
44+
4245
# Check if there are any changes
4346
if [[ -n $(git status -s) ]]; then
4447
git add .
4548
git commit -m "Added navbar and removed insert_navbar.sh"
4649
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
4750
else
4851
echo "No changes to commit"
49-
fi
52+
fi

0 commit comments

Comments
 (0)