Skip to content

Commit d0a75f2

Browse files
committed
fix: updated vuepress
1 parent 2dc0fb8 commit d0a75f2

File tree

13 files changed

+23641
-2861
lines changed

13 files changed

+23641
-2861
lines changed

Diff for: .github/workflows/pr-next.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 14.x
19-
- name: Install dependencies
20-
run: npm install
21-
- name: Lint
22-
run: npm run lint
23-
- name: Test
24-
run: npm run test:unit --if-present
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 16.x
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Lint
22+
run: npm run lint
23+
- name: Test
24+
run: npm run test:unit --if-present

Diff for: .github/workflows/release-next.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 14.x
19-
- name: Install dependencies
20-
run: npx ci
21-
- name: Install semantic-release extra plugins
22-
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
23-
- name: Lint
24-
run: npm run lint-fix
25-
- name: Test
26-
run: npm run test:unit-coverage --if-present
27-
- name: Build
28-
run: npm run build
29-
- name: Release
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
run: npx semantic-release
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 16.x
19+
- name: Install dependencies
20+
run: npx ci
21+
- name: Install semantic-release extra plugins
22+
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
23+
- name: Lint
24+
run: npm run lint-fix
25+
- name: Test
26+
run: npm run test:unit-coverage --if-present
27+
- name: Build
28+
run: npm run build
29+
- name: Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: npx semantic-release

Diff for: .husky/commit-msg

100644100755
File mode changed.

Diff for: .husky/pre-commit

100644100755
File mode changed.

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16

Diff for: babel.config.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
module.exports = {
2-
presets: ['@vue/cli-plugin-babel/preset']
2+
env: {
3+
test: {
4+
presets: [
5+
[
6+
'@babel/preset-env',
7+
{
8+
targets: {
9+
node: 'current'
10+
}
11+
}
12+
]
13+
]
14+
}
15+
}
316
}

Diff for: docs/.vuepress/client.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import Dataset from '@/Dataset.vue'
2+
import DatasetInfo from '@/DatasetInfo.vue'
3+
import DatasetItem from '@/DatasetItem.vue'
4+
import DatasetPager from '@/DatasetPager.vue'
5+
import DatasetSearch from '@/DatasetSearch.vue'
6+
import DatasetShow from '@/DatasetShow.vue'
7+
import { defineClientConfig } from '@vuepress/client'
8+
import './styles/styles.scss'
9+
10+
export default defineClientConfig({
11+
enhance({ app, router, siteData }) {
12+
app.component('Dataset', Dataset)
13+
app.component('DatasetShow', DatasetShow)
14+
app.component('DatasetSearch', DatasetSearch)
15+
app.component('DatasetPager', DatasetPager)
16+
app.component('DatasetItem', DatasetItem)
17+
app.component('DatasetInfo', DatasetInfo)
18+
},
19+
setup() {
20+
// noop
21+
},
22+
rootComponents: []
23+
})

Diff for: docs/.vuepress/clientAppEnhance.js

-18
This file was deleted.

Diff for: docs/.vuepress/config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ module.exports = {
1919
theme: defaultTheme({
2020
contributors: false,
2121
repo: 'https://github.com/kouts/vue-dataset/tree/next',
22-
darkMode: false,
22+
colorMode: 'light',
23+
colorModeSwitch: false,
2324
sidebar: [
2425
{
2526
link: '/',

Diff for: docs/.vuepress/styles/styles.scss

+28-7
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ $link-hover-color: lighten($link-color, 15%) !default;
2626
@import '~bootstrap/scss/_button-group';
2727
/*
2828
@import '~bootstrap/scss/_input-group';
29-
*/
3029
@import '~bootstrap/scss/_custom-forms';
30+
*/
3131
@import '~bootstrap/scss/_nav';
3232
/*
3333
@import '~bootstrap/scss/_navbar';
@@ -96,12 +96,12 @@ blockquote p {color: #777;}
9696
}
9797

9898
/* Fix margin-bottom for headers */
99-
.theme-container .theme-default-content:not(.custom) > h2,
100-
.theme-container .theme-default-content:not(.custom) > h3,
101-
.theme-container .theme-default-content:not(.custom) > h4,
102-
.theme-container .theme-default-content:not(.custom) > h5,
103-
.theme-container .theme-default-content:not(.custom) > h6 {
104-
margin-bottom: 1rem !important;
99+
.theme-container .theme-default-content:not(.custom) h2,
100+
.theme-container .theme-default-content:not(.custom) h3,
101+
.theme-container .theme-default-content:not(.custom) h4,
102+
.theme-container .theme-default-content:not(.custom) h5,
103+
.theme-container .theme-default-content:not(.custom) h6 {
104+
margin-bottom: 1rem;
105105
}
106106

107107
/* Fix footer nav links */
@@ -110,11 +110,32 @@ blockquote p {color: #777;}
110110
padding: 0;
111111
}
112112

113+
/* Fix navbar links */
114+
.theme-container .navbar a:hover {
115+
text-decoration: none;
116+
}
117+
118+
.theme-container .navbar .navbar-items a:hover {
119+
border-bottom: none;
120+
}
121+
113122
/* Fix stripped table rows colors */
114123
.table.table-striped tr:nth-child(2n) {
115124
background-color: #f6f8fa;
116125
}
117126

127+
/* Fix card titles */
128+
.theme-container .theme-default-content:not(.custom) .card > .card-body > h5.card-title,
129+
.theme-container .theme-default-content:not(.custom) .card > .card-body > h6 {
130+
margin: 0px;
131+
padding: 0px;
132+
}
133+
134+
.theme-container .theme-default-content:not(.custom) .card>.card-body h3 {
135+
margin: 0px 0px 8px 0px;
136+
padding: 0px;
137+
}
138+
118139
/* Fix headings font-size */
119140
h1 {
120141
font-size: 2.2rem;

0 commit comments

Comments
 (0)