-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code for improved readability and consistency; adjust format…
…ting in multiple files
- Loading branch information
1 parent
4e34e0f
commit db1105f
Showing
31 changed files
with
1,774 additions
and
877 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 |
---|---|---|
|
@@ -9,13 +9,14 @@ GENERATED = joinpath(@__DIR__, "..", "examples") | |
OUTDIR = joinpath(@__DIR__, "src", "examples") | ||
|
||
blacklist = ["gpu", "JuKeBOX", "Krang_logo", "enzyme"] | ||
SOURCE_FILES = filter(x-> all(i->!occursin(i, x), blacklist), Glob.glob("*.jl", GENERATED)) | ||
foreach(fn -> Literate.markdown(fn, OUTDIR, documenter=true), SOURCE_FILES) | ||
SOURCE_FILES = | ||
filter(x -> all(i -> !occursin(i, x), blacklist), Glob.glob("*.jl", GENERATED)) | ||
foreach(fn -> Literate.markdown(fn, OUTDIR, documenter = true), SOURCE_FILES) | ||
MD_FILES = [joinpath("examples", file) for file in readdir(OUTDIR)] | ||
|
||
Documenter.DocMeta.setdocmeta!(Krang, :DocTestSetup, :(using Krang); recursive=true) | ||
Documenter.DocMeta.setdocmeta!(Krang, :DocTestSetup, :(using Krang); recursive = true) | ||
|
||
format=DocumenterVitepress.MarkdownVitepress( | ||
format = DocumenterVitepress.MarkdownVitepress( | ||
repo = "https://github.com/dominic-chang/Krang.jl", # this must be the full URL! | ||
devbranch = "main", | ||
devurl = "dev", | ||
|
@@ -24,35 +25,29 @@ format=DocumenterVitepress.MarkdownVitepress( | |
) | ||
|
||
makedocs(; | ||
sitename="Krang.jl", | ||
authors="Dominic <[email protected]> and contributors", | ||
modules=[Krang], | ||
repo="https://github.com/dominic-chang/Krang.jl/blob/{commit}{path}#{line}", | ||
format=format, | ||
sitename = "Krang.jl", | ||
authors = "Dominic <[email protected]> and contributors", | ||
modules = [Krang], | ||
repo = "https://github.com/dominic-chang/Krang.jl/blob/{commit}{path}#{line}", | ||
format = format, | ||
draft = false, | ||
source = "src", | ||
build = "build", | ||
pages=[ | ||
pages = [ | ||
"Home" => "index.md", | ||
"Getting Started" => "getting_started.md", | ||
"Examples" => MD_FILES, | ||
"Theory" => [ | ||
"Raytracing" => [ | ||
"kerr_geodesic_summary.md", | ||
"time_regularization.md", | ||
], | ||
"Polarization" => [ | ||
"newmann_penrose.md", | ||
"polarization.md", | ||
] | ||
"Raytracing" => ["kerr_geodesic_summary.md", "time_regularization.md"], | ||
"Polarization" => ["newmann_penrose.md", "polarization.md"], | ||
], | ||
"api.md", | ||
], | ||
) | ||
|
||
deploydocs(; | ||
repo="github.com/dominic-chang/Krang.jl", | ||
repo = "github.com/dominic-chang/Krang.jl", | ||
target = "build", # this is where Vitepress stores its output | ||
devbranch="main", | ||
push_preview=true, | ||
devbranch = "main", | ||
push_preview = 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
Oops, something went wrong.