Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ee76d17
feat: adding plugins support
tool3 Mar 12, 2020
8b9fccb
fix: fixing url
tool3 Mar 12, 2020
21a097f
fix: removing temp docs
tool3 Mar 12, 2020
a078e08
docs: adding documentation for init --plugins
tool3 Mar 12, 2020
b8b89c7
fix: removing unused files
tool3 Mar 13, 2020
64b32e0
fix: removing .nojekyll top-level
tool3 Mar 13, 2020
f522d07
chore: adding tests
tool3 Mar 13, 2020
e532c1e
fix: fixing docs links
tool3 Mar 13, 2020
6558cee
refactor: cleaner matchSnapshot
tool3 Mar 13, 2020
5431de3
fix: removing redundant spread
tool3 Mar 20, 2020
1083bec
fix(init): adding jsdelivr and major version to plugins init
tool3 Jun 18, 2020
54dd557
fix: realigning with remote
tool3 Jun 18, 2020
de9bcce
fix(e2e): recreating index snap with latest docsify version
tool3 Jun 18, 2020
3c547f9
Merge branch 'master' into master
tool3 Jun 21, 2020
067bb2a
Update docs/README.md
tool3 Apr 28, 2021
c1f92b4
Update README.md
tool3 Apr 28, 2021
5ec56bb
Update lib/template/index.html
tool3 Apr 28, 2021
0059e7f
Update lib/commands/init.js
tool3 Apr 28, 2021
272e310
chore: Optimize code to ensure equal indentation
sy-records Apr 29, 2021
c83fa11
Merge branch 'master' into tool3/master
sy-records Apr 29, 2021
f3e717c
chore: update snap
sy-records Apr 29, 2021
e48d7a8
chore: update snap
sy-records Apr 29, 2021
f96f6d5
chore: update zh.json
sy-records Apr 29, 2021
2debff8
fix: the exception caused by the plugin name being a number
sy-records Apr 29, 2021
6f26f05
Use MultiSelect
sy-records May 19, 2021
1b7f8f2
Update README
sy-records May 19, 2021
f2943a1
Update lib/commands/init.js
sy-records May 27, 2021
e1118d5
Update msg
sy-records May 27, 2021
63e9d95
Fix missing msg
sy-records May 27, 2021
790e96c
refactor: simplify code with async/await
jamesgeorge007 May 27, 2021
149bd81
chore: handle user interruptions
jamesgeorge007 May 28, 2021
828b672
Update README
sy-records Jun 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/commands/init.js
Co-authored-by: 沈唁 <[email protected]>
  • Loading branch information
tool3 and sy-records authored Apr 28, 2021
commit 0059e7ff741fe0fd3a619a964e56fc28a3fdcb75
2 changes: 1 addition & 1 deletion lib/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function (path = '', local, theme, plugins) {
replace(target(filename), '_plugins_', '_plugin\n '.repeat(plugins.length))
plugins.forEach(plugin => {
const major = version[0]
const url = plugin.includes('//') ? plugin : `https://cdn.jsdelivr.net/npm/docsify@${major}/lib/plugins/${plugin}.min.js`
const url = plugin.includes('//') ? plugin : `//cdn.jsdelivr.net/npm/docsify@${major}/lib/plugins/${plugin}.min.js`
const scriptTemplate = `<script src="${url}"></script>`
replace(target(filename), '_plugin', scriptTemplate)
})
Expand Down