Commit Graph
16 Commits
Author SHA1 Message Date
zthxxxandULIVZ 2a59800677 fix($core): '[Vue warn]: Unknown custom element' when using <Content /> in a custom page without markdown (#1699)
**Bug**: example, , will raise `[Vue warn]: Unknown custom element`, like #1173 #1426

**Reason**: because it not inject any content in `@internal/page-components` while not find markdown file, `Vue.component` of `pageKey` must be `undefined`, then `h(pageKey)` raise this error

**Fix**: judge as `if (Vue.component(pageKey))`, unnecessary to render if no component existed
2019-07-20 14:41:20 +08:00
ULIVZ d1a17a8880 chore: remove layout component options directly 2019-06-05 14:58:44 +08:00
ULIVZ 83b02ba517 fix($core): failed to render <Content /> with dynamic pageKey from current $page. 2019-06-05 11:10:56 +08:00
ULIVZ bd0bdf989d feat($core): global variable "__VUEPRESS__" to store runtime key infos 2019-06-02 23:54:59 +08:00
ULIVZ 7d0542e33e feat($core): safer class name of content outlet
We shouldn't let the core render the `.content` class, so once we use custom layout in the default theme, the styles of default theme will pollute the styles of custom layout.
2019-06-02 14:51:53 +08:00
ULIVZandGitHub e6af68fa01 fix($core): Search result cannot jump to the correct hash anchor (close: #1594) (#1599) 2019-05-14 13:22:49 +08:00
ULIVZ fbbd677f56 Revert "feat($markdown): TOC component (close: #1275) (#1375)"
This reverts commit 760f90b914.
2019-05-13 00:12:49 +08:00
ULIVZ 8013417d9a Revert "refactor($theme-default): leverage markdown-it-table-of-contents (#1436)"
This reverts commit cab5b8318e.
2019-05-12 23:58:31 +08:00
ShigmaandULIVZ cab5b8318e refactor($theme-default): leverage markdown-it-table-of-contents (#1436) 2019-05-12 23:00:48 +08:00
ShigmaandULIVZ d34e0389a5 fix($core): do not use stylus in outbound link 2019-03-27 22:29:51 +08:00
ShigmaandULIVZ 9caada0221 chore: fix lint (#1451) 2019-03-15 23:31:14 +08:00
Rahul KadyanandULIVZ ef82c4715e fix($core): do not register component in render function (#1449) 2019-03-15 09:44:56 +08:00
ULIVZ 3e91eba5be fix($core): PascalCase layouts cannot be used with camelCase nor hyphen-delimited (close: #1391) 2019-03-10 06:01:24 +08:00
ULIVZ 0306574b1f fix($core): global components cannot be used as layouts (close: #1321) 2019-03-10 04:47:02 +08:00
ULIVZ 9d0151483b fix($core): cannot render another page with pageKey (close: #1173)
Error: Unknown Custom Element - <v-#####>
2019-03-10 04:29:08 +08:00
ULIVZandGitHub e5d8ed4655 feat: refine node api (#1395)
- fix($core): markdown slot doesn‘t work. (regression of c85f62d)
- docs: fresh Node.JS API.
- test: official plugins.
2019-03-04 23:46:13 +08:00