Skip to content

Commit a22fc49

Browse files
authored
fix deploy docs (#686)
* fix deploy docs * gen new logo * ignore also ico * rename to ico
1 parent 781dc77 commit a22fc49

File tree

8 files changed

+35
-21
lines changed

8 files changed

+35
-21
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ docs/src/.vitepress/cache
2525
node_modules
2626
docs/package-lock.json
2727
*.png
28-
*.svg
28+
*.svg
29+
*.ico

docs/logo.jl

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ meshscatter!(ax, base_points; marker=Rect3f(Vec3f(-0.5,-0.5,0), Vec3f(1,1,1)),
3939
markersize = Vec3f.(0.5,0.5, z), color=z, colormap=tuple.(colors, 1), transparency=false)
4040

4141
mkpath(joinpath(@__DIR__, "src", "assets"))
42-
save(joinpath(@__DIR__, "src", "assets", "logoDD.svg"), fig; pt_per_unit=0.75)
43-
save(joinpath(@__DIR__, "src", "assets", "logoDD.png"), fig; px_per_unit=2)
44-
save(joinpath(@__DIR__, "src", "assets", "favicon.png"), fig; px_per_unit=0.25)
42+
save(joinpath(@__DIR__, "src", "assets", "logo.svg"), fig; pt_per_unit=0.75)
43+
save(joinpath(@__DIR__, "src", "assets", "logo.png"), fig; px_per_unit=2)
44+
save(joinpath(@__DIR__, "src", "assets", "favicon.png"), fig; px_per_unit=0.25)
45+
mv(joinpath(@__DIR__, "src", "assets", "favicon.png"), joinpath(@__DIR__, "src", "assets", "favicon.ico"))

docs/make.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ makedocs(; sitename="DimensionalData", authors="Rafael Schouten et al.",
2323
draft=false,
2424
source="src",
2525
build="build",
26-
# warnonly = true,
26+
warnonly = true,
2727
)
2828

2929
# Deploy built documentation.

docs/package.json

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
2-
"devDependencies": {
3-
"markdown-it": "^14.0.0",
4-
"markdown-it-mathjax3": "^4.3.2",
5-
"vitepress": "^1.0.0-rc.43",
6-
"vitepress-plugin-tabs": "^0.5.0",
7-
"vitest": "^1.3.0"
8-
},
92
"scripts": {
103
"docs:dev": "vitepress dev build/.documenter",
114
"docs:build": "vitepress build build/.documenter",
125
"docs:preview": "vitepress preview build/.documenter"
136
},
7+
"devDependencies": {
8+
"markdown-it-mathjax3": "^4.3.2",
9+
"vitepress": "^1.0.2",
10+
"vitepress-plugin-tabs": "^0.5.0"
11+
},
1412
"dependencies": {
15-
"@shikijs/transformers": "^1.1.7",
13+
"markdown-it": "^14.1.0",
1614
"markdown-it-footnote": "^4.0.0"
1715
}
18-
}
16+
}

docs/src/.vitepress/config.mts

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import footnote from "markdown-it-footnote";
66
// https://vitepress.dev/reference/site-config
77
export default defineConfig({
88
base: 'REPLACE_ME_DOCUMENTER_VITEPRESS',
9-
title: 'REPLACE_ME_DOCUMENTER_VITEPRESS',
9+
title: 'DimensionalData.jl',
1010
description: "Datasets with named dimensions",
1111
lastUpdated: true,
1212
cleanUrls: true,
1313
outDir: 'REPLACE_ME_DOCUMENTER_VITEPRESS', // This is required for MarkdownVitepress to work correctly...
14-
head: [],
15-
ignoreDeadLinks: true,
14+
head: [['link', { rel: 'icon', href: '/DimensionalData.jl/favicon.ico' }]],
1615

1716
markdown: {
1817
math: true,
@@ -28,7 +27,7 @@ export default defineConfig({
2827
},
2928
themeConfig: {
3029
// https://vitepress.dev/reference/default-theme-config
31-
logo: { src: '/logoDD.png', width: 24, height: 24 },
30+
logo: { src: '/logo.png', width: 24, height: 24 },
3231
search: {
3332
provider: 'local',
3433
options: {
@@ -41,8 +40,9 @@ export default defineConfig({
4140
{ text: 'Dimensions', link: '/dimensions' },
4241
{ text: 'DimArrays', link: '/dimarrays' },
4342
{ text: 'Selectors', link: '/selectors' },
44-
{ text: 'Integrations', link: '/integrations',
43+
{ text: 'Integrations',
4544
items: [
45+
{ text: 'Integrations', link: '/integrations'},
4646
{ text: 'Plots and Makie', link: '/plots' },
4747
{ text: 'Tables and DataFrames', link: '/tables' },
4848
{ text: 'CUDA and GPUs', link: '/cuda' },

docs/src/.vitepress/theme/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// .vitepress/theme/index.ts
2+
import type { Theme } from 'vitepress'
3+
import DefaultTheme from 'vitepress/theme'
4+
5+
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'
6+
import './style.css'
7+
8+
export default {
9+
extends: DefaultTheme,
10+
enhanceApp({ app }) {
11+
enhanceAppWithTabs(app)
12+
}
13+
} satisfies Theme

docs/src/groupby.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ groupby(A, Ti => hours(12; start=6, labels=x -> 6 in x ? :night : :day))
274274

275275
:::
276276

277-
## Select by [`Dimension`](@ref)
277+
## Select by Dimension
278+
- [`Dimension`](@ref)
278279

279280
We can also select by `Dimension`s and any objects with `dims` methods.
280281

docs/src/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ hero:
88
text: "Julia datasets with named dimensions"
99
tagline: High performance named indexing for Julia
1010
image:
11-
src: 'logoDD.png'
11+
src: 'logo.png'
1212
actions:
1313
- theme: brand
1414
text: Getting Started

0 commit comments

Comments
 (0)