Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Commit ab3bc72

Browse files
authored
Merge pull request #24 from tolking/dev
fix typo
2 parents 2dbb082 + 73728ed commit ab3bc72

File tree

8 files changed

+57
-43
lines changed

8 files changed

+57
-43
lines changed

.github/workflows/build docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2.3.1
16+
with:
17+
persist-credentials: false
18+
19+
- name: Install and Build
20+
run: |
21+
npm install
22+
npm run build
23+
24+
- name: Deploy
25+
uses: JamesIves/github-pages-deploy-action@3.6.2
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.page }}
28+
BRANCH: gh-pages
29+
FOLDER: dist
30+
CLEAN: true

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.editorconfig
55
.eslintrc.js
66
.prettierrc
7+
.github
78

89
node_modules/
910
test/

.travis.yml

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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[README](README.md) | [CHANGELOG](CHANGELOG.md)
44

5+
## 1.1.2
6+
7+
- fix typo
8+
59
## 1.1.1
610

711
- adjust color matching

docs/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,16 @@ module.exports = {
6666
::: danger
6767
After `v1.1.0`, it is no longer necessary to add a postcss plugIn to set `defaulttheme`. It is recommended to remove the relevant content. In the near future, `css-prefers-color-scheme` will be remove from `package.json`
6868

69-
~~postcss: {~~
70-
71-
~~plugins: [~~
72-
73-
~~**require('css-prefers-color-scheme/postcss'),**~~
74-
75-
~~require('autoprefixer')~~
76-
77-
~~]~~
78-
79-
~~}~~
69+
``` js
70+
module.exports = {
71+
- postcss: {
72+
- plugins: [
73+
- require('css-prefers-color-scheme/postcss'),
74+
- require('autoprefixer')
75+
- ]
76+
- }
77+
}
78+
```
8079
:::
8180

8281
[Theme Config](https://vuepress.vuejs.org/theme/default-theme-config.html)

docs/zh/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,16 @@ module.exports = {
6666
::: danger
6767
`v1.1.0` 以后设置 `defaultTheme` 不在需要增加postcss插件,建议移除相关内容。在不久的未来将会把 `package.json` 中的 `css-prefers-color-scheme` 移除
6868

69-
~~postcss: {~~
70-
71-
~~plugins: [~~
72-
73-
~~**require('css-prefers-color-scheme/postcss'),**~~
74-
75-
~~require('autoprefixer')~~
76-
77-
~~]~~
78-
79-
~~}~~
69+
``` js
70+
module.exports = {
71+
- postcss: {
72+
- plugins: [
73+
- require('css-prefers-color-scheme/postcss'),
74+
- require('autoprefixer')
75+
- ]
76+
- }
77+
}
78+
```
8079
:::
8180

8281
其它配置与 [官方主题配置](https://vuepress.vuejs.org/theme/default-theme-config.html) 相同

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-default-prefers-color-scheme",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"main": "index.js",
55
"description": "add prefers-color-scheme for vuepress default theme",
66
"author": "tolking <qw13131wang@gmail.com>",

styles/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ div[class*='language-'].line-numbers-mode .line-numbers-wrapper
306306
// pwa
307307
.global-ui
308308
.sw-update-popup
309-
border-color var(--accentColors) !important
309+
border-color var(--accentColor) !important
310310
background-color var(--bgColor) !important
311311
color var(--textColor) !important
312312

0 commit comments

Comments
 (0)