Skip to content

Commit 9443408

Browse files
committed
Update Vuepress to 2.0.0-rc.26
1 parent e041be4 commit 9443408

4 files changed

Lines changed: 6974 additions & 8311 deletions

File tree

docs/.vuepress/config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
import { defaultTheme, defineUserConfig } from 'vuepress'
1+
import { defineUserConfig } from 'vuepress'
2+
import { viteBundler } from '@vuepress/bundler-vite'
3+
import { defaultTheme } from '@vuepress/theme-default'
24
import { backToTopPlugin } from '@vuepress/plugin-back-to-top';
35
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
46
//import { searchPlugin } from '@vuepress/plugin-search'
57
import { diceRollerPlugin } from '@dice-roller/vuepress-plugin-dice-roller';
68
import { sidebarTree } from '../api/config';
79
import { mdEnhancePlugin } from 'vuepress-plugin-md-enhance';
8-
import { copyCodePlugin } from "vuepress-plugin-copy-code2";
10+
import { copyCodePlugin } from '@vuepress/plugin-copy-code';
911

1012
const base = `/${process.env.BASE_PATH || 'documentation'}/`;
1113

1214
export default defineUserConfig({
15+
bundler: viteBundler({
16+
viteOptions: {},
17+
vuePluginOptions: {},
18+
}),
1319
lang: 'en-GB',
1420
title: 'RPG Dice Roller',
1521
description: 'A JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations.',

docs/.vuepress/styles/index.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
$rainbow: linear-gradient(-45deg, #c6ffdd, #fbd786, #f7797d);
22
$hexagonClip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
33

4-
.navbar a {
4+
.vp-navbar a {
55
&:hover,
66
&:focus,
77
&:active {
8-
//noinspection CssUnusedSymbol
9-
.logo {
8+
.vp-site-logo {
109
background-position: 40px;
1110
}
1211
}
1312

14-
.logo {
13+
.vp-site-logo {
1514
background-image: $rainbow;
1615
background-position: 0;
1716
clip-path: $hexagonClip;
1817
transition: all ease-in .25s;
1918

20-
html.dark & {
19+
html[data-theme="dark"] & {
2120
padding: 2px;
2221
}
2322
}
2423
}
2524

26-
.home .hero img {
25+
.vp-hero-image {
2726
padding: 1rem;
2827
box-sizing: border-box;
2928
background: $rainbow;

0 commit comments

Comments
 (0)