Skip to content

Commit

Permalink
added liveserver, moved literate
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Oct 25, 2023
1 parent 208fa4c commit 372accc
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

/Manifest.toml
/docs/build/
/docs/src/literate/*/*.md
/docs/src/generated
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ using DataFramesMeta
using Literate
using Glob

GENERATED = joinpath(@__DIR__, "src", "literate")
GENERATED = joinpath(@__DIR__, "src", "generated")
SOURCE = joinpath(@__DIR__, "literate")
for subfolder ["explanations", "HowTo", "tutorials", "reference"]
local SOURCE_FILES = Glob.glob(subfolder * "/*.jl", GENERATED)
local SOURCE_FILES = Glob.glob(subfolder * "/*.jl", SOURCE)
foreach(fn -> Literate.markdown(fn, GENERATED * "/" * subfolder), SOURCE_FILES)

end
Expand All @@ -37,14 +38,14 @@ makedocs(;
pages=[
"UnfoldMakie Documentation" => "index.md",
"Visualizations-Types" => [
"ERP plot" => "literate/tutorials/erp.md",
"ERP plot" => "generated/tutorials/erp.md",
"Butterfly Plot" => "tutorials/butterfly.md",
"Designmatrix" => "tutorials/designmatrix.md",
"ERP Image" => "tutorials/erpimage.md",
"Parallel Coordinates Plot" => "tutorials/parallelcoordinates.md",
"Topo Plot" => "tutorials/topoplot.md",
"Topo Plot Series" => "tutorials/topoplotseries.md",
"Circular TopoPlot" => "literate/tutorials/circTopo.md",
"Circular TopoPlot" => "generated/tutorials/circTopo.md",
],
"How To" => [
"Butterfly Colormap" => "how_to/position2color.md",
Expand All @@ -54,7 +55,7 @@ makedocs(;
"Show out of Bounds Label" => "how_to/show_oob_labels.md",
],
"Reference" => [
"Convert 3D positions / montages to 2D layouts" => "literate/reference/positions.md"
"Convert 3D positions / montages to 2D layouts" => "generated/reference/positions.md"

],
"API" => "api.md",
Expand Down
3 changes: 3 additions & 0 deletions docs/run_liveserver.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using LiveServer
servedocs(skip_dir=joinpath("src","generated"),literate_dir=joinpath("literate"),foldername=".")

File renamed without changes

0 comments on commit 372accc

Please sign in to comment.