diff --git a/cypress.json b/cypress.json
deleted file mode 100644
index 60ed5aa53..000000000
--- a/cypress.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "video": false
-}
diff --git a/docs/configuration.md b/docs/configuration.md
index 7a65553a3..7b3b5fcda 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -245,10 +245,10 @@ window.$docsify = {
// Custom file name
coverpage: 'cover.md',
- // mutiple covers
+ // multiple covers
coverpage: ['/', '/zh-cn/'],
- // mutiple covers and custom file name
+ // multiple covers and custom file name
coverpage: {
'/': 'cover.md',
'/zh-cn/': 'cover.md',
@@ -410,7 +410,7 @@ window.$docsify = {
};
```
-?> If this options is `false` but you dont want to emojify some specific colons , [Refer this](https://github.com/docsifyjs/docsify/issues/742#issuecomment-586313143)
+?> If this options is `false` but you don't want to emojify some specific colons , [Refer this](https://github.com/docsifyjs/docsify/issues/742#issuecomment-586313143)
## mergeNavbar
@@ -494,15 +494,15 @@ window.$docsify = {
```
## crossOriginLinks
-- type: `Array`
-When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
-In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
+- type: `Array`
+
+When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
+In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
+
```js
window.$docsify = {
- crossOriginLinks:[
- "https://example.com/cross-origin-link",
- ],
+ crossOriginLinks: ['https://example.com/cross-origin-link'],
};
```
@@ -604,7 +604,7 @@ window.$docsify = {
};
```
-Load the right 404 page according to the localisation:
+Load the right 404 page according to the localization:
```js
window.$docsify = {
@@ -629,3 +629,104 @@ window.$docsify = {
topMargin: 90, // default: 0
};
```
+
+## vueComponents
+
+- type: `Object`
+
+Creates and registers global [Vue components](https://vuejs.org/v2/guide/components.html). Components are specified using the component name as the key with an object containing Vue options as the value. Component `data` is unique for each instance and will not persist as users navigate the site.
+
+```js
+window.$docsify = {
+ vueComponents: {
+ 'button-counter': {
+ template: `
+
+ `,
+ data() {
+ return {
+ count: 0,
+ };
+ },
+ },
+ },
+};
+```
+
+```markdown
+
+ + {{ count }} + +
+``` + + + +## vueMounts + +- type: `Object` + +Specifies DOM elements to mount as [Vue instances](https://vuejs.org/v2/guide/instance.html) and their associated options. Mount elements are specified using a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) as the key with an object containing Vue options as their value. Docsify will mount the first matching element in the main content area each time a new page is loaded. Mount element `data` is unique for each instance and will not persist as users navigate the site. + +```js +window.$docsify = { + vueMounts: { + '#counter': { + data() { + return { + count: 0, + }; + }, + }, + }, +}; +``` + +```markdown +