vuepress-reco / vuepress-theme-reco Goto Github PK
View Code? Open in Web Editor NEW🎨 This is the repo for vuepress-theme-reco 2.
Home Page: https://vuepress-theme-reco.recoluan.com
License: MIT License
🎨 This is the repo for vuepress-theme-reco 2.
Home Page: https://vuepress-theme-reco.recoluan.com
License: MIT License
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
按下方这样设置的。但所有文章下面都显示了评论
vssueConfig: {
showComment: false,
platform: 'github',
owner: 'XX',
repo: 'XX',
clientId: 'XX',
clientSecret: 'XX'
},
link为外链时,点击按钮或文字无无反应,不会跳转外链(只有点击到旁边的外链标识才能正常跳转)
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
请求增加RSS模块
Describe the bug
例如我有一个文件 Git笔记.md,它生成后的url路径为 localhost:8080/blogs/Git笔记.html
对于这种类似的url我点击它都是无效的
这是页面加载时的信息:
vue-router.esm.js?8c4f:16 [vue-router] Route with path "/blogs/Tools/Git笔记.html" contains unencoded characters, make sure your path is correctly encoded before passing it to the router. Use encodeURI to encode static segments of your path.
当我点击该链接的时候报错信息如下:
vue-router.esm.js?8c4f:16 [vue-router] uncaught error during route navigation:
warn @ vue-router.esm.js?8c4f:16
vue-router.esm.js?8c4f:1 RangeError: Maximum call stack size exceeded
at eval (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2172:51)
at Array.map ()
at eval (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2172:38)
at Array.map ()
at flatMapComponents (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2171:26)
at extractGuards (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2480:16)
at extractLeaveGuards (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2503:10)
at HTML5History.confirmTransition (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2347:5)
at HTML5History.transitionTo (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2261:8)
at HTML5History.push (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2607:10)
moduleIdentifier: "/Users/sicko/blog/test-blog/sicko's blog/.vuepress/.temp/internal/clientAppEnhances.js",
moduleName: './.vuepress/.temp/internal/clientAppEnhances.js',
loc: '1:65',
message: 'Module parse failed: Unexpected token (1:65)\n' +
'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
"> import clientAppEnhance0 from '/Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/plugin-theme-data/lib/client/clientAppEnhance.js'\n" +
"| import clientAppEnhance1 from '/Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/plugin-search/lib/client/clientAppEnhance.js'\n" +
"| import clientAppEnhance2 from '/Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/plugin-external-link-icon/lib/client/clientAppEnhance.js'",
Error: Failed to compile with errors at /Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/bundler-webpack/lib/build/createBuild.js:37:28 at /Users/sicko/blog/test-blog/sicko's blog/node_modules/webpack/lib/webpack.js:148:8 at /Users/sicko/blog/test-blog/sicko's blog/node_modules/neo-async/async.js:2830:7 at done (/Users/sicko/blog/test-blog/sicko's blog/node_modules/neo-async/async.js:2865:11) at /Users/sicko/blog/test-blog/sicko's blog/node_modules/neo-async/async.js:2818:7 at /Users/sicko/blog/test-blog/sicko's blog/node_modules/webpack/lib/HookWebpackError.js:68:3 at _done (eval at create (/Users/sicko/blog/test-blog/sicko's blog/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1) at eval (eval at create (/Users/sicko/blog/test-blog/sicko's blog/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:34:22)
似乎没解决这个问题,版本均是最新的。
categories 设置中文 分类链接自动转化为拼音
...
categories:
- 生活
...
自动转化为shenghuo
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
使用VuePress官网提供的配置文件,修改对应配置文件如下
打包期间会报一个错误
访问站点白屏,控制台报相同的错误
之前一直用的1.x版本可以正常部署
Describe the bug
A clear and concise description of what the bug is.
使用中文路径或者中文名的md文件就会报错
To Reproduce
Steps to reproduce the behavior:
# 1. 安装主题脚手架
npm install @vuepress-reco/theme-cli -g
# 2. 初始化
theme-cli init
# 3. 初始化后install,然后启动项目
npm install &&npm run dev
# 4. 修改初始化好的md文件,比如把docs/theme-reco/api.md 修改为 接口.md
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
vue-router.esm.js?8c4f:2316 RangeError: Maximum call stack size exceeded
at eval (vue-router.esm.js?8c4f:2171:1)
at Array.map (<anonymous>)
at eval (vue-router.esm.js?8c4f:2171:1)
at Array.map (<anonymous>)
at flatMapComponents (vue-router.esm.js?8c4f:2170:1)
at extractGuards (vue-router.esm.js?8c4f:2479:1)
at extractLeaveGuards (vue-router.esm.js?8c4f:2502:1)
at HTML5History.confirmTransition (vue-router.esm.js?8c4f:2346:1)
at HTML5History.transitionTo (vue-router.esm.js?8c4f:2260:1)
at HTML5History.push (vue-router.esm.js?8c4f:2606:1)
表现:打开站点首页浏览数和valine 评论均不显示。
原因:是cdn.jsdelivr.net 挂了(具体原因自己查)。这个请求的av-min.js 是用于获取leancloud的服务。打开站点控制台可以看到错误。
解决:更换CDN服务地址;在本地库文件 valine.pure.min.js 和 valine.min.js 中修改:
//cdn.jsdelivr.net/npm/leancloud-storage@3/dist/av-min.js
为:
//unpkg.com/[email protected]/dist/av-min.js
打包部署,OK~ 正常啦!
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
按照2.0主题进行初始化后报错
npm install @vuepress-reco/[email protected] -g
theme-cli init
只有公告栏显示,主页面空白,控制台有2条报错信息:
ReferenceError: Cannot access 'clientAppEnhances' before initialization
Error: useRouteLocale() is called without provider.
Describe the bug
将reco build后部署在静态server lighttpd上后访问页面,页面一直停留在 LoadingPage组件定义的图像,没有跳转到主页
To Reproduce
Steps to reproduce the behavior:
yarn docs:build
Expected behavior
页面短暂停留 LoadingPage后,跳转至主页
Desktop (please complete the following information):
Additional context
新人一枚,对SSR项目部署有很多疑问,很好奇大家都是怎么部署的,直接部署到github上吗
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
如题:当文章子标题内容过多的情况下,sidebar会出现滚动条影响页面美观,建议隐藏。
Describe the bug
部署完,页面渲染一下然后就白屏了,build的时候有些提示,但是最后都success,console也没有打印报错
Describe the bug
代码块高亮行错误
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
这个应该是vuepress的问题,vue-theme-reco是基于vuepress的。可以通过安装vuepress-plugin-permalink-pinyin来解决这个问题。
这个插件并不是特别好用,会出现其他的兼容性问题。我之前也遇到这个问题了,我的版本是1.6.10
文末的 问题1
但是会有一个新的不好的地方是 链接太长了……
解决:
添加文件.vuepress/enhanceApp.js
export default (ctx) => {
const routes = ctx.router.getRoutes()
ctx.router.beforeEach((to, from, next) => {
// 解决decode后反复重定向的问题
const route = routes.find((v) => v.regex.test(to.path))
// .html有重定向路由,无需特殊处理
if (/\.html$/.test(to.path)) {
return next()
}
// 不特殊处理 非通配符的 没有重定向的路由
if (route && route.path !== '*' && !route.redirect) {
return next()
}
// 解决中文标签/分类路由无法被正确加载的问题
if (decodeURIComponent(to.path) !== to.path) {
return next(
Object.assign({}, to, {
path: decodeURIComponent(to.path),
fullPath: decodeURIComponent(to.fullPath)
})
)
}
next()
})
// 临时解决,防止内部调用钩子再处理
ctx.router.beforeEach = () => {
return
}
}
Originally posted by @duktig666 in #23 (comment)
Describe the bug
[vuepress:sw] Error during service worker registration: TypeError: Failed to register a ServiceWorker for scope ('https://www.duktig.cn/') with script ('https://www.duktig.cn/service-worker.js'): ServiceWorker script evaluation failed
Desktop (please complete the following information):
version:1.6.10
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
第一次使用这个主题,使用 Cli 初始化项目后运行页面一片空白,查看控制台发现报错
项目依赖:
"name": "vuepress-theme-reco-demo",
"version": "2.0.0",
"description": "Demo for [email protected].",
"repository": "[email protected]:recoluan/vuepress-theme-reco-demo.git",
"author": "reco_luan <[email protected]>",
"license": "MIT",
"scripts": {
"dev": "vuepress dev .",
"start": "vuepress dev .",
"build": "vuepress build ."
},
"dependencies": {
"vuepress": "2.0.0-beta.39",
"vuepress-theme-reco": "2.0.0-beta.5"
}
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
如题,在reco的主题中如何才能实现左边的侧边栏可以展示三级菜单?
好像谷歌浏览器才有这个报错,chrome版本 98.0.4758.102
拉的初始化项目,直接build报错,没有检验嘛?
猜测应该是侧边栏挡住了,如果可以的话,建议 back-top 不要太靠边,放到文章和侧边栏的中间就好了,方便点。
版本1.6.11
大佬,我开启了将所有标题都存为锚点的功能,主题里的侧边栏样式错误了,ToT
markdown: {
lineNumbers: true,
extractHeaders: [ 'h2', 'h3', 'h4' ,'h5', 'h6' ],
toc: { includeLevel: [ 2 , 3 , 4 , 5 , 6 ] },
},
## 111
### 111
#### 如何将111
##### 如何将222
###### 如何将333
12312312asda阿斯顿阿达阿达
## 111
### 111
#### 如何将111
##### 如何将222
###### 如何将333
12312312asda阿斯顿阿达阿达
默认端口为8080,请问如何修改启动的端口号
Is your feature request related to a problem? Please describe.
qwq
Describe the solution you'd like
能否根据文件树自动生成左侧边栏啊,这样对于页面很多的文档站会很有用
Describe alternatives you've considered
因为vuepress不再允许插件修改配置,目前我的想法是在文档生成之前先进行series生成然后写入config.ts,然后再进行构建,很明显这样的方法不够优雅
Additional context
嘤嘤嘤
Describe the bug
github部署时出现 js内存溢出 这样的情况,具体报错如下:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
这个vuepress主题的部署,也会遇到这样的问题吗?
主题版本:1.6.10
Desktop (please complete the following information):
Describe the bug
A clear and concise description of what the bug is.
如图所示,侧边栏过长的时候就没法下拉了~
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.