-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5fd57c
commit 75d2263
Showing
47 changed files
with
3,352 additions
and
3,230 deletions.
There are no files selected for viewing
This file contains 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,3 +1 @@ | ||
style = "blue" | ||
format_markdown = true | ||
format_docstrings = true |
This file contains 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 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 |
---|---|---|
|
@@ -9,20 +9,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
|
||
- name: Delete preview and history | ||
run: | | ||
git config user.name "Documenter.jl" | ||
git config user.email "[email protected]" | ||
git rm -rf "previews/PR$PRNUM" | ||
git commit -m "delete preview" | ||
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) | ||
git config user.name "Documenter.jl" | ||
git config user.email "[email protected]" | ||
git rm -rf "previews/PR$PRNUM" | ||
git commit -m "delete preview" | ||
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) | ||
env: | ||
PRNUM: ${{ github.event.number }} | ||
PRNUM: ${{ github.event.number }} | ||
|
||
- name: Push changes | ||
run: | | ||
git push --force origin gh-pages-new:gh-pages | ||
git push --force origin gh-pages-new:gh-pages |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: format-check | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "release-*" # Match release branches | ||
tags: "*" # Trigger on tag pushes | ||
pull_request: # Trigger on pull requests | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: [1] # Julia versions | ||
julia-arch: [x86] # Architectures | ||
os: [ubuntu-latest] # OS | ||
steps: | ||
# Step 1: Set up Julia | ||
- name: Set up Julia | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
arch: ${{ matrix.julia-arch }} | ||
|
||
# Step 2: Check out code | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Step 3: Install JuliaFormatter and check formatting | ||
- name: Install JuliaFormatter and check formatting | ||
run: | | ||
julia -e ' | ||
using Pkg; | ||
Pkg.add(PackageSpec(name="JuliaFormatter")); | ||
using JuliaFormatter; | ||
result = format(".", verbose=true) | ||
if !result | ||
error("Some files are not properly formatted. Please run `using JuliaFormatter; format(\".\")` locally.") | ||
else | ||
println("All files are properly formatted.") | ||
end | ||
' |
Oops, something went wrong.