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

egg-doctools TODO list #1890

Closed
2 of 5 tasks
atian25 opened this issue Dec 27, 2017 · 23 comments
Closed
2 of 5 tasks

egg-doctools TODO list #1890

atian25 opened this issue Dec 27, 2017 · 23 comments

Comments

@atian25
Copy link
Member

atian25 commented Dec 27, 2017

  • 修复英语菜单的泰文问题
  • 自动切换语言
  • 支持「下一篇」
  • 支持 TOC
  • 对应的语言的翻译不存在时,提供默认页,并显示默认语言的文档。
@popomore
Copy link
Member

自动切换语言是指?

@atian25
Copy link
Member Author

atian25 commented Dec 27, 2017

根据浏览器 navigator.language 自动切换

@popomore
Copy link
Member

popomore commented Dec 27, 2017

  1. 侧栏只展开当前文档所在的一级菜单
  2. 侧栏选中项自动移到可见区域

@atian25
Copy link
Member Author

atian25 commented Dec 27, 2017

侧栏是不是要支持三级好点,Controller 那章现在太长了

@popomore
Copy link
Member

不是要加 TOC 了么

@popomore
Copy link
Member

#354

@atian25
Copy link
Member Author

atian25 commented Dec 27, 2017

嗯,看 TOC 的样式是怎么样的吧,我看 nuxt.js 是直接分析出来显示在侧边栏的.

@popomore
Copy link
Member

#958

@popomore
Copy link
Member

那侧栏就更长啦

@atian25
Copy link
Member Author

atian25 commented Dec 27, 2017

『侧栏只展开当前文档所在的一级菜单』,仅在当前节点展开就好了。
还是看设计吧

@fsiaonma
Copy link
Contributor

或者参考云雀,侧栏只显示一级菜单,文章内的 TOC 放到右上方。但这个具体要看看 hexo 插件的 支持程度。

@popomore
Copy link
Member

文档 TOC 就前端生成吧,遍历 H2

@popomore
Copy link
Member

popomore commented May 3, 2018

@atian25 我更新了下

@atian25
Copy link
Member Author

atian25 commented May 3, 2018

改了啥?

@popomore
Copy link
Member

popomore commented May 3, 2018

上面有几个 check 了

@thonatos
Copy link
Member

https://antpress.eggjs.app/

@atian25 @popomore

修了几个bug,各位大佬看看能切了没呗~

@fengmk2
Copy link
Member

fengmk2 commented Aug 29, 2018

image

https://antpress.eggjs.app/en/tutorials/index.html 里面的 url 不对

@fengmk2
Copy link
Member

fengmk2 commented Aug 29, 2018

锚点信息没有出现
image

@fengmk2
Copy link
Member

fengmk2 commented Aug 29, 2018

代码语法高亮都没有了?

image

@fengmk2
Copy link
Member

fengmk2 commented Aug 29, 2018

代码块里面的字体大小被修改成 12px了,按道理应该还是 14px 才对的。

image

@thonatos
Copy link
Member

我记一下,晚上一起改了,

TODO

  • 代码高亮
  • 锚点异常
  • 样式异常
  • 统计代码

资源

@okoala
Copy link
Member

okoala commented Aug 30, 2018

我觉得样式可以在 vuepress 的基础上进行改进~

@Jeff-Tian
Copy link
Contributor

Jeff-Tian commented Mar 11, 2019

自动切换语言的功能,我提了个 PR:eggjs/doctools#43

请各位大佬帮忙看看哈。

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

No branches or pull requests

8 participants