Vladimir Dementyev
2bceabcb8e
fix: fallback page should use path not file location ( #1301 )
...
* fix: fallback page should use path not file location
When resolving fallback page for the path (`fallbackLanguages` option), we should consider the original path, not the file location (which could be different when aliases are used).
* fix: use router.getFile to resolve fallback url
* specs: add cypress test for fallbackLanguages
Co-authored-by: 沈唁 <52o@qq52o.cn>
2020-08-04 14:47:03 +05:30
Mattia Astorino
90d283d340
fix: convert {docsify-ignore} and {docsify-ignore-all} to HTML comments ( #1318 )
...
* breaking: convert {docsify-ignore} and {docsify-ignore-all} to HTML comments
Close https://github.com/docsifyjs/docsify/issues/441
* chore: add ignore and ignore-all unit tests
Co-authored-by: 沈唁 <52o@qq52o.cn>
2020-07-30 18:11:04 +08:00
沈唁
952f4c921b
fix: the uncaught typeerror when el is null ( #1308 )
2020-07-30 17:58:45 +08:00
Vladimir Dementyev
d179dde1c7
feat(search): add pathNamespaces option
...
This option allows to dynamically choose the index path depending on the path prefixes in auto mode. Thus, different path namespace could avoid index intersection (e.g., when having multiple locales)
2020-07-24 11:43:06 +03:00
黄朝晖
78775b6ee7
fix: Search plugin: matched text is replaced with search text ( #1298 )
...
* Fix search plugin will replace matching text
* Fix bug that will replace a unexpected text
* Fix bug that will replace a unexpected text
* Optimized
Co-authored-by: 沈唁 <52o@qq52o.cn>
2020-07-24 10:22:54 +08:00
Vladimir Dementyev
9f4f79e0f7
fix typo ( #1302 )
2020-07-23 18:16:19 +08:00
沈唁
b869019900
fix: Fix search error when exist translations documents ( #1300 )
2020-07-22 15:01:13 +08:00
沈唁
6f9baab616
style: Update index.html and scroll.js ( #1292 )
2020-07-20 08:54:54 +08:00
沈唁
667496b85d
feat: Add title to sidebar links ( #1286 )
2020-07-19 09:00:23 +08:00
沈唁
3f03e78418
fix: search can not search the table header ( #1256 )
2020-07-01 08:36:06 +08:00
沈唁
34d918f997
fix: after setting the background image, the button is obscured ( #1234 )
...
* fix: after setting the background image, the button is obscured
* Update _coverpage.styl
2020-06-26 15:46:26 +08:00
Mohammed Sahl
0663cb3ab1
Fix: fixed onlycover flag in mobile ( #1243 )
2020-06-26 15:29:45 +08:00
Anix
714ef29afe
feat: added html sanitizer for remote rendering ( #1128 )
...
Co-authored-by: Joe Pea <joe@trusktr.io>
2020-06-17 23:55:59 +05:30
Mohammed Sahl
0bf03f5810
fix: cover overlapping sidebar by removing z-index
...
* Fix cover overlapping sidebar
* Fix transition of cover page
* Revmove transition property from .cover
* Remove z-index attribute from _coverpage.styl
2020-06-15 22:43:31 +05:30
Joe Pea
809fda9591
Merge branch 'develop' into allow-config-function
2020-06-07 14:10:57 -07:00
沈唁
785302602b
style: Get emoji from github api ( #1188 )
...
* style: Get emoji from github api and remove emoji for 404
* update all emojis use github
* fix url is not unicode
* Update index.html
2020-06-08 04:31:44 +08:00
Joe Pea
dca22f3ced
simplify import
2020-06-07 11:27:38 -07:00
Joe Pea
79fe3d5c5e
remove some unused code and accept eslint changes
2020-06-07 11:24:54 -07:00
Joe Pea
88033b639e
remove the DOCSIFY global made by Rollup, and move Docsify into a separate file where we can import it from tests while leaving the entry point for the bundle without any exports so that Rollup will not create a global variable from it
2020-06-07 11:09:06 -07:00
沈唁
31010e4979
fix: search does not find the contents of the table ( #1198 )
...
* fix: search does not find the contents of the table
* refactor: add getTableData function
2020-06-07 14:07:28 +05:30
Joe Pea
7e002bf939
feat: update src/core/index.js to export all global APIs, deprecate old globals in favor of a single global DOCSIFY, and add tests for this
2020-05-23 14:10:00 -07:00
沈唁
1a09ce3a77
Fix: emoji +1 and -1 not rendering ( #1187 )
2020-05-23 09:05:25 +08:00
Anix
5ea28c465a
Merge pull request #1102 from tschaible/bugfix/multiple-embeds
...
fix: updated the insertion of embedded tokens for async returns (fixes #970 )
2020-05-22 15:29:10 +05:30
Anix
bd9e24b7ae
Merge pull request #1147 from HerbertHe/patch-1
...
fix: rendering cover width bug
2020-05-22 15:27:19 +05:30
沈唁
e9dd2de384
fix: consistent location of search result
...
* fix 1098
* Update component.js
* Update component.js
2020-05-22 15:25:40 +05:30
Joe Pea
b4b8bdc93e
add tests to make sure the global and plugin APIs are available and that configs can be functions
2020-05-22 01:28:34 -07:00
Joe Pea
f72bf4cc9a
allow the user's $docsify config to be a function that receives as input the Docsify instance
2020-05-21 23:36:18 -07:00
Anix
3d662a5bf7
fix: fixed target and rel issue ( fixes #1183 )
2020-05-20 11:14:26 +00:00
mau-jac
9ff4d06773
fix: default html img resize if no height included ( #1065 )
...
* fix: default html img resize if no height included
* chore: adjust render test to not expect height
2020-05-18 16:42:59 +05:30
Kumaravel Palanisamy
699172db37
Cursor pointer added for search clear button
2020-05-16 15:07:28 +05:30
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
沈唁
6e554f8ebd
fix: The search error after setting the ID in the title ( #1159 )
...
* Update search.js
* Update search.js
* Update search.js
* Update search.js
2020-05-14 17:18:17 +05:30
Anix
708ca9db7c
Merge pull request #1111 from CHU295/develop
...
fix~issues 1110
2020-05-14 17:15:08 +05:30
沈唁
f2ff01d91e
Update component.js
2020-05-14 08:51:50 +08:00
沈唁
62d0986b74
Delete sidebar.js
2020-05-13 09:09:38 +08:00
沈唁
f9d0c721eb
Create sidebar.js
2020-05-13 09:09:16 +08:00
沈唁
6ac71f9056
Delete sidebar.js
2020-05-13 08:59:02 +08:00
沈唁
7d38a32a5a
Create sidebar.js
2020-05-13 08:58:34 +08:00
Anix
22030f4328
Merge pull request #1148 from sytone/develop
...
Updated embed to strip YAML front matter fixes #1129
2020-05-07 14:00:24 +05:30
Sytone
b05949a161
Add front matter to dev page
...
Update embeded files documentation
Add example with front matter
Add various comments I used to understand code
Updated front matter to have installed flag
Added function to parse front matter
Added intercept to remove front matter for embed
2020-04-27 12:24:24 -07:00
Herbert
717991c90c
fix: rendering cover width bug
2020-04-28 01:07:27 +08:00
vagra
b108c86d38
reset and modify.
2020-04-27 16:55:55 +08:00
Luffy
dcb0aaea99
fix: Inconsistent search and body rendering
...
* fix
* Update search.js
* Update search.js
* Update search.js
* Update search.js
* Update search.js
2020-04-19 19:42:55 +05:30
CHUXK
1c43abe8ff
Linting Checks
2020-04-15 16:03:40 +08:00
CHUXK
fed6a83930
Linting Checks
2020-04-15 16:01:09 +08:00
koooooo-7
517f0d7dea
[ fix #1115 ] Image resize in % doesn't work.
2020-04-13 23:04:34 +08:00
CHUXK
b4e7b21928
Update component.js
...
fix bug https://github.com/docsifyjs/docsify/issues/1098
2020-04-10 11:30:12 +08:00
CHUXK
d32d91bebc
Update sidebar.js
...
fix bug https://github.com/docsifyjs/docsify/issues/1110
2020-04-10 11:28:32 +08:00
Tom Schaible
ea17dcc66c
updated the insertion of embedded tokens so it correctly handles embedded token results returning in any order
...
fixes #970
2020-04-07 08:21:24 -04:00
anikethsaha
154abf59a6
fix: digit issue with sidebar (complete REVERT to old method)
2020-03-24 18:47:43 +05:30