-
Notifications
You must be signed in to change notification settings - Fork 3
/
histoire.config.ts
44 lines (43 loc) · 1.16 KB
/
histoire.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { defineConfig } from "histoire";
import { HstVue } from "@histoire/plugin-vue";
export default defineConfig({
plugins: [HstVue()],
viteIgnorePlugins: ["vite-plugin-eslint", "vite:dts"],
setupFile: "./docs/.histoire/setup.ts",
storyMatch: ["**/.histoire/*.story.vue"],
storyIgnored: ["**/node_modules/**", "**/dist/**", "**/playground/**"],
tree: {
groups: [
{
title: "Basic",
include: (file) => /Play with|Fixed nodes/.test(file.title),
},
{
title: "Grouping",
include: (file) => /Node groups/.test(file.title),
},
{
title: "Theming",
include: (file) => /Custom theme|Custom CSS/.test(file.title),
},
{
title: "C4 Model",
include: (file) => /C4/.test(file.title),
},
],
},
outDir: "./dist-docs/histoire/",
theme: {
title: "D3 Network graph",
/* logo: {
square: "./img/square.png",
light: "./img/light.png",
dark: "./img/dark.png",
}, */
logoHref: "https://la-fabrique.github.io/vue-d3-network-graph/histoire/",
favicon: "favicon.png",
},
vite: {
base: "/vue-d3-network-graph/histoire/",
},
});