-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Standardize yml * Standardize make.jl * Standardize docs * Fix make
- Loading branch information
1 parent
e83e477
commit 65a928c
Showing
12 changed files
with
172 additions
and
58 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,7 +1,8 @@ | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # Location of package manifests | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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
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,13 @@ | ||
name: Spell Check | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
typos-check: | ||
name: Spell Check with Typos | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v4 | ||
- name: Check spelling | ||
uses: crate-ci/typos@master |
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
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,28 @@ | ||
# https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#gh-pages-Branch | ||
|
||
name: DocPreviewCleanup | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
doc-preview-cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
- name: Delete preview and history + push changes | ||
run: | | ||
if [ -d "previews/PR$PRNUM" ]; then | ||
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 push --force origin gh-pages-new:gh-pages | ||
fi | ||
env: | ||
PRNUM: ${{ github.event.number }} |
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 |
---|---|---|
@@ -1,29 +1,45 @@ | ||
# push!(LOAD_PATH,"../src/") | ||
|
||
using AVSfldIO | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(AVSfldIO, :DocTestSetup, :(using AVSfldIO); recursive=true) | ||
|
||
makedocs(; | ||
modules = [AVSfldIO], | ||
authors = "Jeff Fessler <[email protected]> and contributors", | ||
# repo = "https://github.com/JuliaIO/AVSfldIO.jl/blob/{commit}{path}#{line}", | ||
sitename = "AVSfldIO.jl", | ||
format = Documenter.HTML(; | ||
prettyurls = get(ENV, "CI", "false") == "true", | ||
# canonical = "https://JuliaIO.github.io/AVSfldIO.jl/stable", | ||
# assets = String[], | ||
), | ||
execute = isempty(ARGS) || ARGS[1] == "run" | ||
|
||
org, reps = :JuliaIO, :AVSfldIO | ||
eval(:(using $reps)) | ||
import Documenter | ||
#import Literate | ||
|
||
base = "$org/$reps.jl" | ||
|
||
|
||
repo = eval(:($reps)) | ||
Documenter.DocMeta.setdocmeta!(repo, :DocTestSetup, :(using $reps); recursive=true) | ||
|
||
|
||
isci = get(ENV, "CI", nothing) == "true" | ||
|
||
format = Documenter.HTML(; | ||
prettyurls = isci, | ||
edit_link = "main", | ||
canonical = "https://$org.github.io/$repo.jl/stable/", | ||
assets = ["assets/custom.css"], | ||
) | ||
|
||
Documenter.makedocs(; | ||
modules = [repo], | ||
authors = "Jeff Fessler and contributors", | ||
sitename = "$repo.jl", | ||
format, | ||
pages = [ | ||
"Home" => "index.md", | ||
"Methods" => "methods.md", | ||
], | ||
) | ||
|
||
deploydocs(; | ||
repo = "github.com/JuliaIO/AVSfldIO.jl.git", | ||
devbranch = "main", | ||
# devurl = "dev", | ||
# versions = ["stable" => "v^", "dev" => "dev"], | ||
# push_preview = true, | ||
) | ||
if isci | ||
Documenter.deploydocs(; | ||
repo = "github.com/$base", | ||
devbranch = "main", | ||
devurl = "dev", | ||
versions = ["stable" => "v^", "dev" => "dev"], | ||
forcepush = true, | ||
# push_preview = true, | ||
# see https://$org.github.io/$repo.jl/previews/PR## | ||
) | ||
end |
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,3 @@ | ||
.docs-sourcelink { | ||
opacity:1 !important; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Methods list | ||
|
||
```@index | ||
``` | ||
|
||
## Methods usage | ||
|
||
```@autodocs | ||
Modules = [AVSfldIO] | ||
``` |