Skip to content

Commit eb939f0

Browse files
authored
Merge pull request #506 from JuliaDataCubes/la/new_hero
2 parents 54671c9 + 4bbe98e commit eb939f0

File tree

6 files changed

+55
-37
lines changed

6 files changed

+55
-37
lines changed

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ WeightedOnlineStats = "bbac0a1f-7c9d-5672-960b-c6ca726e5d5d"
3333
YAXArrayBase = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
3434

3535
[compat]
36-
CFTime = "0.0, 0.1"
36+
CFTime = "0.0, 0.1, 0.2"
3737
DataStructures = "0.17, 0.18"
3838
DimensionalData = "0.27, 0.28, 0.29"
39+
DiskArrayEngine = "0.2"
3940
DiskArrayTools = "0.1.12"
4041
DiskArrays = "0.3, 0.4.10"
4142
DocStringExtensions = "0.8, 0.9"
4243
Glob = "1.3"
43-
Interpolations = "0.12, 0.13, 0.14, 0.15"
44+
Interpolations = "0.12, 0.13, 0.14, 0.15, 0.16"
4445
IntervalSets = "0.3, 0.4, 0.5, 0.6, 0.7"
4546
IterTools = "1"
4647
OffsetArrays = "1"

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ WeightedOnlineStats = "bbac0a1f-7c9d-5672-960b-c6ca726e5d5d"
3232
YAXArrayBase = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
3333
YAXArrays = "c21b50f5-aa40-41ea-b809-c0f5e47bfa5c"
3434
Zarr = "0a941bbe-ad1d-11e8-39d9-ab76183a1d99"
35+
36+
[compat]
37+
DocumenterVitepress = "0.2"
38+
39+
[sources]
40+
YAXArrays = { path = ".." }

docs/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
2-
"scripts": {
3-
"docs:dev": "vitepress dev build/.documenter",
4-
"docs:build": "vitepress build build/.documenter",
5-
"docs:preview": "vitepress preview build/.documenter"
6-
},
72
"devDependencies": {
8-
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.14.0",
3+
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.15.0",
94
"@types/d3-format": "^3.0.4",
10-
"@types/node": "^22.13.4",
5+
"@types/node": "^22.13.9",
6+
"markdown-it": "^14.1.0",
117
"markdown-it-mathjax3": "^4.3.2",
12-
"rollup-plugin-delete": "^3.0.0",
138
"vitepress": "^1.6.3",
149
"vitepress-plugin-tabs": "^0.6.0"
1510
},
11+
"scripts": {
12+
"docs:dev": "vitepress dev build/.documenter",
13+
"docs:build": "vitepress build build/.documenter",
14+
"docs:preview": "vitepress preview build/.documenter"
15+
},
1616
"dependencies": {
1717
"d3-format": "^3.1.0",
18-
"markdown-it": "^14.1.0",
1918
"markdown-it-footnote": "^4.0.0"
2019
}
2120
}

docs/src/.vitepress/config.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from 'vitepress'
22
import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
33
import mathjax3 from "markdown-it-mathjax3";
4+
import path from 'path'
45

56
function getBaseRepository(base: string): string {
67
if (!base || base === '/') return '/';
@@ -94,6 +95,11 @@ export default defineConfig({
9495
define: {
9596
__DEPLOY_ABSPATH__: JSON.stringify('REPLACE_ME_DOCUMENTER_VITEPRESS_DEPLOY_ABSPATH'),
9697
},
98+
resolve: {
99+
alias: {
100+
'@': path.resolve(__dirname, '../components')
101+
}
102+
},
97103
build: {
98104
assetsInlineLimit: 0, // so we can tell whether we have created inlined images or not, we don't let vite inline them
99105
},

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ import {
88
NolebaseEnhancedReadabilitiesScreenMenu,
99
} from '@nolebase/vitepress-plugin-enhanced-readabilities/client'
1010

11-
import AsideTrustees from '../../components/AsideTrustees.vue'
12-
import VersionPicker from "../../components/VersionPicker.vue"
13-
import StarUs from '../../components/StarUs.vue'
14-
import AuthorBadge from '../../components/AuthorBadge.vue'
15-
import Authors from '../../components/Authors.vue'
11+
import AsideTrustees from '@/AsideTrustees.vue'
12+
import VersionPicker from "@/VersionPicker.vue"
13+
import StarUs from '@/StarUs.vue'
14+
import AuthorBadge from '@/AuthorBadge.vue'
15+
import Authors from '@/Authors.vue'
1616
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'
1717

1818
import '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'
1919
import './style.css'
20+
import './docstrings.css'
2021

2122
export const Theme: ThemeConfig = {
2223
extends: DefaultTheme,

docs/src/components/StarUs.vue

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,45 @@
11
<!-- code adapted from https://github.com/observablehq/plot/blob/main/docs/.vitepress/theme/VersionAndStars.vue -->
22
<script setup>
3-
43
import {formatPrefix} from "d3-format";
54
import {data} from "./stargazers.data";
6-
const formattedStarCount = data ? formatPrefix(".1s", 1000)(data) : "";
75
6+
// Define props with repository URL
7+
const props = defineProps({
8+
repoUrl: {
9+
type: String,
10+
default: "https://github.com/JuliaDataCubes/YAXArrays.jl"
11+
}
12+
});
13+
14+
const formattedStarCount = data ? (data < 1000 ? `${data}` : formatPrefix(".1s", 1000)(data)) : "";
815
</script>
916

1017
<template>
1118
<a
1219
target="_blank"
1320
data-decoration="&#x2605;"
14-
:title="data.toLocaleString('en-US').concat(' GitHub stars')"
15-
href="https://github.com/JuliaDataCubes/YAXArrays.jl"
21+
:title="data ? data.toLocaleString('en-US').concat(' GitHub stars') : ''"
22+
:href="repoUrl"
1623
>
17-
<svg
18-
xmlns="http://www.w3.org/2000/svg"
19-
viewBox="0 0 24 24"
20-
width="20"
21-
height="20"
22-
fill="currentColor"
23-
style="vertical-align: middle; margin-right: 0.25rem; margin-left: 0.5rem;"
24-
>
25-
<path
26-
d="M12 .297C5.375.297 0 5.673 0 12.3c0 5.292 3.438 9.8 8.207 11.387.6.11.793-.26.793-.577 0-.285-.01-1.04-.015-2.04-3.338.727-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.807 1.305 3.493.997.107-.774.42-1.305.762-1.605-2.665-.3-5.467-1.333-5.467-5.931 0-1.31.47-2.382 1.236-3.222-.123-.303-.535-1.52.117-3.166 0 0 1.01-.323 3.31 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.138 3 .405 2.3-1.553 3.31-1.23 3.31-1.23.653 1.646.24 2.863.117 3.166.765.84 1.236 1.912 1.236 3.222 0 4.61-2.807 5.625-5.477 5.921.43.372.823 1.102.823 2.222 0 1.606-.015 2.902-.015 3.293 0 .32.192.693.8.577C20.565 22.1 24 17.588 24 12.297 24 5.673 18.627.297 12 .297z"
27-
/>
28-
</svg>
24+
<svg
25+
xmlns="http://www.w3.org/2000/svg"
26+
viewBox="0 0 24 24"
27+
width="20"
28+
height="20"
29+
fill="currentColor"
30+
style="vertical-align: middle; margin-right: 0.25rem; margin-left: 0.5rem;"
31+
>
32+
<path
33+
d="M12 .297C5.375.297 0 5.673 0 12.3c0 5.292 3.438 9.8 8.207 11.387.6.11.793-.26.793-.577 0-.285-.01-1.04-.015-2.04-3.338.727-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.807 1.305 3.493.997.107-.774.42-1.305.762-1.605-2.665-.3-5.467-1.333-5.467-5.931 0-1.31.47-2.382 1.236-3.222-.123-.303-.535-1.52.117-3.166 0 0 1.01-.323 3.31 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.138 3 .405 2.3-1.553 3.31-1.23 3.31-1.23.653 1.646.24 2.863.117 3.166.765.84 1.236 1.912 1.236 3.222 0 4.61-2.807 5.625-5.477 5.921.43.372.823 1.102.823 2.222 0 1.606-.015 2.902-.015 3.293 0 .32.192.693.8.577C20.565 22.1 24 17.588 24 12.297 24 5.673 18.627.297 12 .297z"
34+
/>
35+
</svg>
2936
<span>{{ formattedStarCount }}</span>
3037
</a>
3138
<a
3239
class="mobile"
3340
target="_blank"
34-
:title="data.toLocaleString('en-US').concat(' GitHub stars')"
35-
href="https://juliadatacubes.github.io/YAXArrays.jl/stable/"
41+
:title="data ? data.toLocaleString('en-US').concat(' GitHub stars') : ''"
42+
:href="repoUrl"
3643
>
3744
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 21 21" fill="none">
3845
<path
@@ -44,7 +51,6 @@ const formattedStarCount = data ? formatPrefix(".1s", 1000)(data) : "";
4451
</template>
4552

4653
<style scoped>
47-
4854
a {
4955
font-size: 14px;
5056
font-weight: 500;
@@ -86,5 +92,4 @@ a.mobile {
8692
display: flex;
8793
}
8894
}
89-
90-
</style>
95+
</style>

0 commit comments

Comments
 (0)