-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes the need for Iframes in quickstart
This registers all the components into Vue. This ia a temp fix until github.com/vuejs/vuepress/issues/1173 is patched
- Loading branch information
Showing
2 changed files
with
21 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
var redirectsJson = require('./redirects.json'); | ||
import pageComponents from '@internal/page-components' | ||
|
||
export default ({ router }) => { | ||
export default ({ router, Vue }) => { | ||
router.addRoutes(redirectsJson) | ||
|
||
for (const [name, component] of Object.entries(pageComponents)) { | ||
Vue.component(name, component) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters