Skip to content

Commit 9befb48

Browse files
committed
Update to VuePress 2
1 parent cc0fff2 commit 9befb48

File tree

7 files changed

+1866
-8787
lines changed

7 files changed

+1866
-8787
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
uses: JamesIves/[email protected]
3737
with:
3838
branch: gh-pages
39-
folder: .build
39+
folder: docs/.vuepress/dist

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,9 @@ typings/
7777

7878
/.build
7979

80-
/composer.lock
80+
/composer.lock
81+
82+
/docs/.vuepress/dist
83+
/docs/.vuepress/.cache
84+
/docs/.vuepress/.temp
85+
/docs/.build

docs/.vuepress/config.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/.vuepress/config.ts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import { defineUserConfig } from 'vuepress';
2+
import defaultTheme from '@vuepress/theme-default';
3+
import { viteBundler } from '@vuepress/bundler-vite'
4+
import { searchProPlugin } from 'vuepress-plugin-search-pro';
5+
import { mdEnhancePlugin } from 'vuepress-plugin-md-enhance';
6+
7+
export default defineUserConfig({
8+
title: 'Northwestern Tools for Laravel',
9+
description: 'Enhance Laravel with easy access to popular Northwestern APIs & webSSO/Duo multi-factor authentication.',
10+
head: [
11+
['link', { href: 'https://common.northwestern.edu/v8/icons/favicon-16.png', rel: 'icon', sizes: '16x16', type: 'image/png' }],
12+
['link', { href: 'https://common.northwestern.edu/v8/icons/favicon-32.png', rel: 'icon', sizes: '32x32', type: 'image/png' }],
13+
['link', { href: 'https://use.fontawesome.com/releases/v6.4.0/css/all.css', rel: 'stylesheet'}],
14+
],
15+
pagePatterns: ['**/*.md', '!**/README.md', '!.vuepress', '!node_modules'],
16+
base: '/SysDev-laravel-soa/',
17+
18+
bundler: viteBundler({
19+
viteOptions: {},
20+
vuePluginOptions: {},
21+
}),
22+
23+
theme: defaultTheme({
24+
repo: 'NIT-Administrative-Systems/SysDev-laravel-soa',
25+
docsBranch: 'develop',
26+
docsDir: 'docs',
27+
editLink: true,
28+
editLinkText: 'Edit Page',
29+
lastUpdated: true,
30+
sidebarDepth: 1,
31+
32+
sidebar: [
33+
{
34+
text: 'Getting Started',
35+
collapsible: false,
36+
children: [
37+
{ text: 'Introduction', link: '/' },
38+
{ text: 'Upgrading', link: '/upgrading' },
39+
],
40+
},
41+
42+
{
43+
text: 'Services',
44+
collapsible: false,
45+
children: [
46+
{ text: 'WebSSO', link: '/websso' },
47+
{ text: 'EventHub', link: '/eventhub' },
48+
{ text: 'Directory Search', link: '/directory-search' },
49+
],
50+
}
51+
],
52+
}),
53+
plugins: [
54+
searchProPlugin({
55+
indexContent: true,
56+
searchDelay: 500,
57+
autoSuggestions: false,
58+
}),
59+
mdEnhancePlugin({
60+
tabs: true,
61+
footnote: true,
62+
mark: true,
63+
include: true,
64+
})
65+
],
66+
});
File renamed without changes.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"docs:build": "vuepress build docs"
1111
},
1212
"devDependencies": {
13-
"vuepress": "^1.9.10"
13+
"@vuepress/bundler-vite": "2.0.0-rc.7",
14+
"@vuepress/theme-default": "2.0.0-rc.12",
15+
"vue": "^3.4.15",
16+
"vuepress": "2.0.0-rc.7",
17+
"vuepress-plugin-md-enhance": "2.0.0-rc.23",
18+
"vuepress-plugin-search-pro": "2.0.0-rc.23"
1419
}
1520
}

0 commit comments

Comments
 (0)