Skip to content

Commit

Permalink
Test DocumenterVitepress
Browse files Browse the repository at this point in the history
  • Loading branch information
VaclavMacha committed Sep 18, 2024
1 parent 95f1cd2 commit 38de758
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master # update to match your development branch (master, main, dev, trunk, ...)
- dev
tags: '*'
pull_request:

Expand Down
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
GLM = "38e38edf-8417-5370-95a0-9cbb8c7f171a"
Expand Down
15 changes: 11 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Documenter
using DocumenterVitepress
using Downloads: download

# download and compile theme
Expand Down Expand Up @@ -108,14 +109,20 @@ lecture_13 = joinpath.("./lecture_13/", [
makedocs(;
authors="JuliaTeachingCTU",
sitename="Julia for Optimization and Learning",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
collapselevel=1,
format=DocumenterVitepress.MarkdownVitepress(
repo="github.com/JuliaTeachingCTU/Julia-for-Optimization-and-Learning.git",
assets=[
"assets/favicon.ico",
],
ansicolor=true
),
# format=Documenter.HTML(;
# prettyurls=get(ENV, "CI", "false") == "true",
# collapselevel=1,
# assets=[
# "assets/favicon.ico",
# ],
# ansicolor=true
# ),
pages=[
"Home" => "index.md",
"Why Julia?" => "why.md",
Expand Down

0 comments on commit 38de758

Please sign in to comment.