30 Commits

Author SHA1 Message Date
Koy
fd2cec6bd6
fix: cross-origin url cannot be redirected when "externalLinkTarget" is set to "_self" and "routerMode" is set to "history". (#1062)
* [fix #1046] fix cross-origin url cannot be redirected when  "externalLinkTarget" is set to "_self" and "routerMode" is set to "history".

* [code format] code format.

* update docs

* docs refine.

* fix(core): cross-orgin link work incorrect (#1046)

Fix cross-origin url cannot be redirected when "externalLinkTarget" is set to "_self" and "routerMode" is set to "history". 
Add new configuration for those cases and completed docs.

Fixes #1046

PR Close #1062
2020-05-15 11:00:36 +05:30
Leonardo Rossi
b53ea1e304
Adds option to specify an header height (#1045)
* Adds option to specify an header height

When using a template that has a sticky-header, clicking on the sidebar will
scroll the page under the header.

I added the option `headerHeight` (default = `0`) so that the content div will
be scrolled down that amount of pixels.

* updates documentation and renames variable
2020-03-09 14:19:31 +05:30
Anix
75c72e917b
chore: added new linter config (#1028)
* chore: added new linter config

* chore: linting fixes

* chore: refactore in linting config and minor linting fixes
2020-02-20 14:01:04 +05:30
Anix
5f7464af48
chore: migrate CI to github, refactore CI and npm scripts, linting fixes (#1023) 2020-02-14 15:22:53 +05:30
Ben Liu
0e4cdad73e
fix config initialization and coercion (#861)
* fix: document.currentScript reference

* fix: merge config
2020-02-14 02:03:53 +05:30
Giulio Ambrogi
db97a1d22a Eslint fixes for v4x (#989)
* UPDATE .eslintrc

* UPDATE lint task

* FIX lint errors

* CLEANUP

* FIX no-eq-null warning

* FIX many jsdoc warnings

* FIX jsdoc issues

* FIX jsdoc warnings

* FIX jsdoc

* FIX eqeq and no-eq-null

* ADD lint to travis

* UPDATE test env for eslint
2019-12-30 22:01:46 +05:30
Vaishak Kallore
11762cbb73 Merged upstream develop and resolved the conflict 2019-12-02 18:04:59 +05:30
Mt
e61410a757 add new config cornerExternalLinkTarget for the corner link target
rm   CNAME

add CNAME

add repo test

back to the origin index.html

fix: the Git corner displayed bigger when the externalLinkTarget = ''

[update] a new independent config for corner link target attribute.

[update doc] add the `cornerExternalLinkTarget` config in the doc.
2019-12-02 18:10:42 +08:00
Vaishak Kallore
4769018e26 Added support for rel='noopener' 2019-09-06 11:13:40 +05:30
Sylvain Brocard
31654f12ec feat: allows relative path, fixed #590 2019-03-25 16:33:03 +01:00
qingwei.li
2bc880d335 fix: ssr package dep, fixed #605 2018-10-31 21:11:06 +08:00
John Hildenbiddle
94bc415534 feat: Add docsify version to $window.docsify object (#641)
Fix #521

Please makes sure these boxes are checked before submitting your PR, thank you!

* [ x ] Make sure you are merging your commits to `master` branch.
* [ x ] Add some descriptions and refer relative issues for you PR.
* [ x ] DO NOT include files inside `lib` directory.
2018-10-23 15:26:55 +08:00
qingwei.li
e4e011c81f fix: async install config, fixed #425 2018-03-19 09:56:29 +08:00
cinwell.li
8352a1e489
refactor: build config (#408)
* refactor: build config

* chore: fix conflict

* fix: 404 page path
2018-03-03 22:51:27 +08:00
qingwei.li
248aa72cd2 feat(render): add ext option for custom file extenstion, close #340 2018-02-11 22:22:06 +08:00
qingwei.li
aba2aec0d0 chore: prettier code 2017-09-22 10:07:10 +08:00
Jeremygao
2959497874 bugfix: config.js里面应为routerMode属性而非routerModel (#245) 2017-09-01 16:33:29 +08:00
cinwell.li
2e00f4c993 feat: ignore to compiled link, fixed #203 (#204)
* feat: ignore to compiled link, fixed #203

* feat: add noCompileLinks, fixed #203

* fix: remove test code
2017-07-10 22:38:26 +08:00
qingwei.li
fc1cd3f11d
fix: basePath for history mode 2017-05-30 10:11:48 +08:00
qingwei.li
2d73285de5
feat: add externalLinkTarget, close #149 2017-05-16 23:09:41 +08:00
qingwei.li
d2be5aecf8
feat: add docsify-updated, close #158 2017-05-16 23:03:22 +08:00
cinwell.li
9220523a40 feat(render): add mergeNavbar option, close #125, #124 (#145) 2017-04-09 12:10:37 +08:00
qingwei.li
3aef37a445 feat(emojify): add no-emoji option 2017-03-11 19:30:38 +08:00
qingwei.li
780c1e580e fix(render): execute script 2017-02-20 08:57:09 +08:00
qingwei.li
079bd00395 refactor(plugins): update search plugin 2017-02-19 14:38:38 +08:00
qingwei.li
3e7d6ab26c docs: add executeScript demo 2017-02-19 14:38:38 +08:00
qingwei.li
b7768b1b3c feat(render): add auto header 2017-02-19 14:38:38 +08:00
qingwei.li
30da0d5d46 refactor(core): add router 2017-02-19 14:38:38 +08:00
qingwei.li
8bee8f0213 refactor(core): add render 2017-02-19 14:38:38 +08:00
qingwei.li
aad62b65f5 refactor(core): adjust directory structure: 2017-02-19 14:38:38 +08:00