Skip to content

Commit 38de758

Browse files
committed
Test DocumenterVitepress
1 parent 95f1cd2 commit 38de758

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/Documentation.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master # update to match your development branch (master, main, dev, trunk, ...)
7+
- dev
78
tags: '*'
89
pull_request:
910

docs/Project.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
66
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
77
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
88
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
9+
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
910
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
1011
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1112
GLM = "38e38edf-8417-5370-95a0-9cbb8c7f171a"

docs/make.jl

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Documenter
2+
using DocumenterVitepress
23
using Downloads: download
34

45
# download and compile theme
@@ -108,14 +109,20 @@ lecture_13 = joinpath.("./lecture_13/", [
108109
makedocs(;
109110
authors="JuliaTeachingCTU",
110111
sitename="Julia for Optimization and Learning",
111-
format=Documenter.HTML(;
112-
prettyurls=get(ENV, "CI", "false") == "true",
113-
collapselevel=1,
112+
format=DocumenterVitepress.MarkdownVitepress(
113+
repo="github.com/JuliaTeachingCTU/Julia-for-Optimization-and-Learning.git",
114114
assets=[
115115
"assets/favicon.ico",
116116
],
117-
ansicolor=true
118117
),
118+
# format=Documenter.HTML(;
119+
# prettyurls=get(ENV, "CI", "false") == "true",
120+
# collapselevel=1,
121+
# assets=[
122+
# "assets/favicon.ico",
123+
# ],
124+
# ansicolor=true
125+
# ),
119126
pages=[
120127
"Home" => "index.md",
121128
"Why Julia?" => "why.md",

0 commit comments

Comments
 (0)