-
Notifications
You must be signed in to change notification settings - Fork 7
Use Turing Actions for Documenter site and Navbar and upgrade package to use latest compats #151
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
20be351
Use Turing Actions for Documenter site and Navbar
shravanngoswamii 2ab0f76
only 1 process at a time to fix docs
shravanngoswamii 49ccc9b
update CI
shravanngoswamii 12d3505
debump formatter checkout
shravanngoswamii be3d97e
more debump formatter checkout
shravanngoswamii 847b269
Ohh, shame on me -- I was changing version without v
shravanngoswamii 696eb07
support latest Julia versions
shravanngoswamii 9efe1a7
fix tests and update few more things
shravanngoswamii 8c01f84
remove Julia 1.6 from CI
shravanngoswamii 3e746f9
fix docs
shravanngoswamii b98e5e7
format
shravanngoswamii c7f4dd9
ignore size thresold in docs
shravanngoswamii 030346a
address all copilot suggestions
shravanngoswamii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,40 @@ | ||
| name: Add Navbar | ||
| name: Rebuild docs with newest navbar | ||
|
|
||
| on: | ||
| page_build: # Triggers the workflow on push events to gh-pages branch | ||
| workflow_dispatch: # Allows manual triggering | ||
| # 3:25 AM UTC every Sunday -- choose an uncommon time to avoid | ||
| # periods of heavy GitHub Actions usage | ||
| schedule: | ||
| - cron: '0 0 * * 0' # Runs every week on Sunday at midnight (UTC) | ||
| - cron: '25 3 * * 0' | ||
| # Whenever needed | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| add-navbar: | ||
| update-navbar: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - name: Checkout gh-pages | ||
| uses: actions/checkout@v4 | ||
| - name: Checkout gh-pages branch | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: gh-pages | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Download insert_navbar.sh | ||
| run: | | ||
| curl -O https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/insert_navbar.sh | ||
| chmod +x insert_navbar.sh | ||
| - name: Insert navbar | ||
| uses: TuringLang/actions/DocsNav@main | ||
| with: | ||
| doc-path: '.' | ||
| navbar-url: https://raw.githubusercontent.com/JuliaGaussianProcesses/.github/refs/heads/main/DocumenterNavbar/JuliaGPNavbar.html | ||
|
|
||
| - name: Update Navbar | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Commit and push changes | ||
| run: | | ||
| git config user.name github-actions[bot] | ||
| git config user.email github-actions[bot]@users.noreply.github.com | ||
|
|
||
| # Define the URL of the navbar to be used | ||
| NAVBAR_URL="https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/JuliaGPNavbar.html" | ||
|
|
||
| # Update all HTML files in the current directory (gh-pages root) | ||
| ./insert_navbar.sh . $NAVBAR_URL | ||
|
|
||
| # Remove the insert_navbar.sh file | ||
| rm insert_navbar.sh | ||
|
|
||
| # Check if there are any changes | ||
| if [[ -n $(git status -s) ]]; then | ||
| git add . | ||
| git commit -m "Added navbar and removed insert_navbar.sh" | ||
| git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages | ||
| git config user.name github-actions[bot] | ||
| git config user.email github-actions[bot]@users.noreply.github.com | ||
| git add -A | ||
| git commit -m "Update navbar (automated)" | ||
| git push | ||
| else | ||
| echo "No changes to commit" | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,4 +38,4 @@ PDMats = "0.11" | |
| Reexport = "1" | ||
| SpecialFunctions = "1, 2" | ||
| StatsBase = "0.33, 0.34" | ||
| julia = "1.6" | ||
| julia = "1" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.