Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否添加下一页、上一页的链接功能 #2237

Open
clso opened this issue Jul 21, 2024 · 3 comments
Open

能否添加下一页、上一页的链接功能 #2237

clso opened this issue Jul 21, 2024 · 3 comments

Comments

@clso
Copy link

clso commented Jul 21, 2024

自动给页尾添加上下页的链接,或者使用伪代码如 {{next}} {{pre}}生成上下文档的链接

另外,几个 editormd.js 文件中使用了 cdn.staticfile.org 的文件加速,目前 staticfile.org staticfile.net bootcdn.cn bootcdn.com 均已被CDN投毒,已被各个广告屏蔽插件所屏蔽,建议换掉

@star7th
Copy link
Owner

star7th commented Jul 21, 2024

已经推送了master分支代码,不再使用cdn加载js。
至于你说的上下页面,其实showdoc比较推送用左侧栏来做切换,我不清楚用上下页的方式是否有必要

@clso
Copy link
Author

clso commented Jul 21, 2024

已经推送了master分支代码,不再使用cdn加载js。 至于你说的上下页面,其实showdoc比较推送用左侧栏来做切换,我不清楚用上下页的方式是否有必要

面对章节比较多的教程或者文章,“下一页”的链接可以避免用户翻找、点击下一章的过程,可以让用户更专注于阅读。
这个功能其他文档应用基本都有,如 Gitbook、Docsify 都支持这项功能。

@star7th
Copy link
Owner

star7th commented Jul 22, 2024

但是使用场景不一样。showdoc更偏重于写技术文档,api文档。这种文档里,上一页 下一页功能用得少,而如果 永久出现按钮,或者专门为此开发一种语法,似乎都有种不太必要的感觉。再看看吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants