Skip to content

Commit fe49328

Browse files
authored
fix: update vitepress (#1288)
1 parent 1a228c9 commit fe49328

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ ReactantCore = {path = "../lib/ReactantCore"}
1111

1212
[compat]
1313
Documenter = "1.4.1"
14+
DocumenterVitepress = "0.2"

docs/make.jl

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@ makedocs(;
1919
],
2020
)...,
2121
],
22-
authors="William Moses <[email protected]>, Valentin Churavy <[email protected]>",
22+
authors=join(
23+
[
24+
"William Moses <[email protected]>",
25+
"Valentin Churavy <[email protected]>",
26+
"Sergio Sánchez Ramírez <[email protected]>",
27+
"Paul Berg <[email protected]>",
28+
"Avik Pal <[email protected]>",
29+
"Mosè Giordano <[email protected]>",
30+
],
31+
", ",
32+
),
2333
sitename="Reactant.jl",
2434
format=MarkdownVitepress(;
2535
repo="github.com/EnzymeAD/Reactant.jl",
@@ -33,4 +43,10 @@ makedocs(;
3343
warnonly=[:cross_references],
3444
)
3545

36-
deploydocs(; repo="github.com/EnzymeAD/Reactant.jl", devbranch="main", push_preview=true)
46+
DocumenterVitepress.deploydocs(;
47+
repo="github.com/EnzymeAD/Reactant.jl",
48+
target=joinpath(@__DIR__, "build"),
49+
branch="gh-pages",
50+
devbranch="main",
51+
push_preview=true,
52+
)

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
"d3-format": "^3.1.0",
1818
"markdown-it-footnote": "^4.0.0"
1919
}
20-
}
20+
}

docs/src/.vitepress/config.mts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineConfig({
1818
outDir: 'REPLACE_ME_DOCUMENTER_VITEPRESS', // This is required for MarkdownVitepress to work correctly...
1919
ignoreDeadLinks: true, // tested in Documenter.jl directly
2020
lastUpdated: true,
21-
21+
2222
head: [
2323
['link', { rel: "icon", href: `${baseTemp.base}favicon.ico` }],
2424
['script', {src: `/versions.js` }],
@@ -31,18 +31,18 @@ export default defineConfig({
3131
}
3232
},
3333
optimizeDeps: {
34-
exclude: [
34+
exclude: [
3535
'@nolebase/vitepress-plugin-enhanced-readabilities/client',
3636
'vitepress',
3737
'@nolebase/ui',
38-
],
39-
},
40-
ssr: {
41-
noExternal: [
38+
],
39+
},
40+
ssr: {
41+
noExternal: [
4242
// If there are other packages that need to be processed by Vite, you can add them here.
4343
'@nolebase/vitepress-plugin-enhanced-readabilities',
4444
'@nolebase/ui',
45-
],
45+
],
4646
},
4747
},
4848
markdown: {

0 commit comments

Comments
 (0)