Skip to content

Commit 953c6ab

Browse files
updated insert_navbar.sh & DocsNav.yml for custom navbar (#86)
* updated & for custom navbar * added navbar for JuliaGP * updated JuliaGP Workflow * with collaboration emoji * update JuliaGP Navbar * run workflow every week
1 parent 85ada2f commit 953c6ab

File tree

5 files changed

+476
-6
lines changed

5 files changed

+476
-6
lines changed

assets/scripts/DocsNav.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Add Navbar
33
on:
44
page_build: # Triggers the workflow on push events to gh-pages branch
55
workflow_dispatch: # Allows manual triggering
6+
schedule:
7+
- cron: '0 0 * * 0' # Runs every week on Sunday at midnight (UTC)
68

79
jobs:
810
add-navbar:
@@ -27,9 +29,12 @@ jobs:
2729
run: |
2830
git config user.name github-actions[bot]
2931
git config user.email github-actions[bot]@users.noreply.github.com
32+
33+
# Define the URL of the navbar to be used
34+
NAVBAR_URL="https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/TuringNavbar.html"
3035
3136
# Update all HTML files in the current directory (gh-pages root)
32-
./insert_navbar.sh .
37+
./insert_navbar.sh . $NAVBAR_URL
3338
3439
# Remove the insert_navbar.sh file
3540
rm insert_navbar.sh

0 commit comments

Comments
 (0)