Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 1878750

Browse files
committed
Update pathname
1 parent 01732fa commit 1878750

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: npm-publish
2+
on:
3+
push:
4+
branches:
5+
- master # Change this to your default branch
6+
jobs:
7+
npm-publish:
8+
name: npm-publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@master
13+
- name: Set up Node.js
14+
uses: actions/setup-node@master
15+
with:
16+
node-version: 10.0.0
17+
- name: Publish if version has been updated
18+
uses: MHuiG/npm-publish-action@master
19+
with: # All of theses inputs are optional
20+
tag_name: "v%s"
21+
tag_message: "v%s"
22+
commit_pattern: "^Release\\:(.*)"
23+
env: # More info about the environment variables in the README
24+
GITHUB_TOKEN: ${{ secrets.TOKEN }} # Leave this as is, it's automatically generated
25+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Example <https://github.com/MiniValine/docs/blob/main/en/index.html>
1111
window.$docsify = {
1212
//...
1313
MiniValine: {
14-
docPath: 'full', // If not root,It is needed.
1514
appId: '<APP_ID>',
1615
appKey: '<APP_Key>',
1716
//More Options https://minivaline.github.io/docs/en/#/Options except [el]
@@ -20,7 +19,7 @@ Example <https://github.com/MiniValine/docs/blob/main/en/index.html>
2019
}
2120
</script>
2221
//...
23-
<script src='//cdn.jsdelivr.net/npm/minivaline@4/dist/MiniValine.min.js'></script>
22+
<script src='//cdn.jsdelivr.net/npm/minivaline@latest/dist/MiniValine.min.js'></script>
2423
<script src="//cdn.jsdelivr.net/npm/docsify-minivaline@latest/dist/docsify-minivaline.min.js"></script>
2524
</body>
2625
```

dist/docsify-minivaline.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "docsify-minivaline",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "MiniValine for docsify",
55
"main": "dist/minivaline.min.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "https://https://github.com/MiniValine/docsify-minivaline.git"
11+
"url": "git+https://github.com/MiniValine/docsify-minivaline.git"
1212
},
1313
"keywords": [
1414
"minivaline"

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function docsifyMiniValine(hook, vm) {
1010
vm.config.MiniValine = vm.config.MiniValine || {}
1111
var options = Object.assign({
1212
el: '#minivcomments',
13-
pathname: vm.config.MiniValine.docPath === 'full' ? location.pathname + location.hash.replace(/\?.+/, "") : location.hash.replace(/\?.+/, ""),
13+
pathname: location.pathname + location.hash.replace(/\?.+/, "") ,
1414
}, vm.config.MiniValine)
1515
new MiniValine(options)
1616
})

0 commit comments

Comments
 (0)