-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4e4f06
commit 5d6781f
Showing
9 changed files
with
989 additions
and
904 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,165 +1,175 @@ | ||
const { viteBundler, defaultTheme } = require('vuepress'); | ||
const { searchPlugin } = require('@vuepress/plugin-search'); | ||
const { viteBundler, defaultTheme } = require('vuepress') | ||
const { searchPlugin } = require('@vuepress/plugin-search') | ||
|
||
module.exports = { | ||
title: 'wangEditor', | ||
description: '开源 Web 富文本编辑器,开箱即用,配置简单', | ||
bundler: viteBundler(), | ||
head: [ | ||
['link', { rel: 'icon', href: '/favicon.ico' }], | ||
title: 'wangEditor', | ||
description: '开源 Web 富文本编辑器,开箱即用,配置简单', | ||
bundler: viteBundler(), | ||
head: [ | ||
['link', { rel: 'icon', href: '/favicon.ico' }], | ||
|
||
// 百度统计 | ||
[ | ||
'script', | ||
{}, | ||
` | ||
// 百度统计 | ||
[ | ||
'script', | ||
{}, | ||
` | ||
var _hmt = _hmt || []; | ||
(function() { | ||
var hm = document.createElement("script"); | ||
hm.src = "https://hm.baidu.com/hm.js?a25f260386e515f4eee3e0a6bb4166be"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
` | ||
], | ||
|
||
// // Google AdSense | ||
// [ | ||
// 'script', | ||
// { | ||
// async: true, | ||
// src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8334016716119444', | ||
// crossorigin: 'anonymous' | ||
// }, | ||
// ] | ||
`, | ||
], | ||
|
||
locales: { | ||
'/': { | ||
lang: 'zh-CN', | ||
}, | ||
'/en/': { | ||
lang: 'en', | ||
}, | ||
}, | ||
// // Google AdSense | ||
// [ | ||
// 'script', | ||
// { | ||
// async: true, | ||
// src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8334016716119444', | ||
// crossorigin: 'anonymous' | ||
// }, | ||
// ] | ||
], | ||
|
||
theme: defaultTheme({ | ||
logo: '/image/logo.png', | ||
locales: { | ||
'/': { | ||
lang: 'zh-CN', | ||
}, | ||
'/en/': { | ||
lang: 'en', | ||
}, | ||
}, | ||
|
||
locales: { | ||
'/': { | ||
lang: 'zh-CN', | ||
selectLanguageName: '简体中文', | ||
theme: defaultTheme({ | ||
logo: '/image/logo.png', | ||
|
||
navbar: [ | ||
{ text: '指南', link: '/v5/getting-started.md' }, | ||
{ text: '视频教程', link: '/v5/video-course.md' }, | ||
{ text: 'Demo 示例', link: 'https://www.wangeditor.com/demo/index.html' }, | ||
{ text: '插件', link: '/v5/plugins.md' }, | ||
{ text: 'Github', link: 'https://github.com/wangeditor-team/wangEditor' }, | ||
{ text: 'v4 版本', link: 'https://www.wangeditor.com/v4/' } | ||
], | ||
locales: { | ||
'/': { | ||
lang: 'zh-CN', | ||
selectLanguageName: '简体中文', | ||
|
||
sidebar: [ | ||
'/v5/README.md', | ||
'/v5/installation.md', | ||
{ | ||
text: '基础', | ||
children: [ | ||
'/v5/getting-started.md', | ||
'/v5/for-frame.md', | ||
'/v5/content.md', | ||
] | ||
}, | ||
{ | ||
text: '配置和 API', | ||
children: [ | ||
'/v5/toolbar-config.md', | ||
'/v5/editor-config.md', | ||
'/v5/menu-config.md', | ||
'/v5/API.md', | ||
] | ||
}, | ||
{ | ||
text: '高级', | ||
children: [ | ||
'/v5/node-define.md', | ||
'/v5/development.md', | ||
'/v5/i18n.md', | ||
'/v5/theme.md', | ||
'/v5/for-ts.md', | ||
'/v5/plugins.md', | ||
] | ||
}, | ||
{ | ||
text: '资源', | ||
children: [ | ||
'/v5/video-course.md' | ||
] | ||
} | ||
], | ||
}, | ||
'/en/': { | ||
lang: 'en', | ||
selectLanguageName: 'English', | ||
description: 'Open source web rich text editor, run right out of the box, config simply.', | ||
navbar: [ | ||
{ text: '指南', link: '/v5/getting-started.md' }, | ||
{ | ||
text: 'Demo 示例', | ||
link: 'https://www.wangeditor.com/demo/index.html', | ||
}, | ||
{ text: '插件', link: '/v5/plugins.md' }, | ||
{ | ||
text: 'Github', | ||
link: 'https://github.com/wangeditor-team/wangEditor', | ||
}, | ||
{ text: 'v4 版本', link: 'https://www.wangeditor.com/v4/' }, | ||
], | ||
|
||
navbar: [ | ||
{ text: 'Guide', link: '/en/v5/' }, | ||
{ text: 'Demo', link: 'https://www.wangeditor.com/demo/index.html?lang=en' }, | ||
{ text: 'Plugins', link: '/en/v5/plugins.md' }, | ||
{ text: 'Github', link: 'https://github.com/wangeditor-team/wangEditor' }, | ||
{ text: 'v4', link: 'https://www.wangeditor.com/v4-en/' } | ||
], | ||
sidebar: [ | ||
'/v5/README.md', | ||
'/v5/installation.md', | ||
{ | ||
text: '基础', | ||
children: [ | ||
'/v5/getting-started.md', | ||
'/v5/for-frame.md', | ||
'/v5/content.md', | ||
], | ||
}, | ||
{ | ||
text: '配置和 API', | ||
children: [ | ||
'/v5/toolbar-config.md', | ||
'/v5/editor-config.md', | ||
'/v5/menu-config.md', | ||
'/v5/API.md', | ||
], | ||
}, | ||
{ | ||
text: '高级', | ||
children: [ | ||
'/v5/node-define.md', | ||
'/v5/development.md', | ||
'/v5/i18n.md', | ||
'/v5/theme.md', | ||
'/v5/for-ts.md', | ||
'/v5/plugins.md', | ||
], | ||
}, | ||
{ | ||
text: '资源', | ||
children: ['/v5/video-course.md'], | ||
}, | ||
], | ||
}, | ||
'/en/': { | ||
lang: 'en', | ||
selectLanguageName: 'English', | ||
description: | ||
'Open source web rich text editor, run right out of the box, config simply.', | ||
|
||
sidebar: [ | ||
'/en/v5/README.md', | ||
'/en/v5/installation.md', | ||
{ | ||
text: 'Basic', | ||
children: [ | ||
'/en/v5/getting-started.md', | ||
'/en/v5/for-frame.md', | ||
'/en/v5/content.md', | ||
] | ||
}, | ||
{ | ||
text: 'Config and API', | ||
children: [ | ||
'/en/v5/toolbar-config.md', | ||
'/en/v5/editor-config.md', | ||
'/en/v5/menu-config.md', | ||
'/en/v5/API.md', | ||
] | ||
}, | ||
{ | ||
text: 'Advance', | ||
children: [ | ||
'/en/v5/node-define.md', | ||
'/en/v5/development.md', | ||
'/en/v5/i18n.md', | ||
'/en/v5/theme.md', | ||
'/en/v5/for-ts.md', | ||
'/en/v5/plugins.md', | ||
] | ||
} | ||
], | ||
}, | ||
}, | ||
}), | ||
navbar: [ | ||
{ text: 'Guide', link: '/en/v5/' }, | ||
{ | ||
text: 'Demo', | ||
link: 'https://www.wangeditor.com/demo/index.html?lang=en', | ||
}, | ||
{ text: 'Plugins', link: '/en/v5/plugins.md' }, | ||
{ | ||
text: 'Github', | ||
link: 'https://github.com/wangeditor-team/wangEditor', | ||
}, | ||
{ text: 'v4', link: 'https://www.wangeditor.com/v4-en/' }, | ||
], | ||
|
||
plugins: [ | ||
[ | ||
searchPlugin({ | ||
locales: { | ||
'/': { | ||
placeholder: '搜索', | ||
}, | ||
'/en/': { | ||
placeholder: 'Search', | ||
}, | ||
}, | ||
}) | ||
sidebar: [ | ||
'/en/v5/README.md', | ||
'/en/v5/installation.md', | ||
{ | ||
text: 'Basic', | ||
children: [ | ||
'/en/v5/getting-started.md', | ||
'/en/v5/for-frame.md', | ||
'/en/v5/content.md', | ||
], | ||
}, | ||
{ | ||
text: 'Config and API', | ||
children: [ | ||
'/en/v5/toolbar-config.md', | ||
'/en/v5/editor-config.md', | ||
'/en/v5/menu-config.md', | ||
'/en/v5/API.md', | ||
], | ||
}, | ||
{ | ||
text: 'Advance', | ||
children: [ | ||
'/en/v5/node-define.md', | ||
'/en/v5/development.md', | ||
'/en/v5/i18n.md', | ||
'/en/v5/theme.md', | ||
'/en/v5/for-ts.md', | ||
'/en/v5/plugins.md', | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
}), | ||
|
||
plugins: [ | ||
[ | ||
searchPlugin({ | ||
locales: { | ||
'/': { | ||
placeholder: '搜索', | ||
}, | ||
'/en/': { | ||
placeholder: 'Search', | ||
}, | ||
}, | ||
}), | ||
], | ||
], | ||
} |
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,7 +1,5 @@ | ||
# 内容处理 | ||
|
||
快速了解可查看[视频教程](./video-course.md)。 | ||
|
||
## 获取内容 | ||
|
||
### 获取 HTML 和 Text | ||
|
Oops, something went wrong.