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

关于目前在用的几个问题 #22

Open
zhuhoudan opened this issue Apr 1, 2019 · 3 comments
Open

关于目前在用的几个问题 #22

zhuhoudan opened this issue Apr 1, 2019 · 3 comments

Comments

@zhuhoudan
Copy link

zhuhoudan commented Apr 1, 2019

  1. 版权更换,版权修改能不能像更新icon的方式一样设置简单一些,我看您说可以通过更换主题的方式修改,但是这个对于非react的专业学员来说操作确实麻烦了一点。
  2. 虽然是doc,但是目前手机端的流量也蛮大,我发现目前对于手机端的适配比较不友好,请问是否有计划对手机端的显示做一些优化,目前使用iPhone发现竖屏的情况下,左侧的导航栏占据了一大部分的屏幕,右边的doc内容被压缩得很窄,读起来很费劲。

感谢倾听,望回复!

@jaywcjlove
Copy link
Owner

@zhuhoudan
需求

  1. 默认板式支持移动端,这个要在有空的时候搞一下。
  2. icon支持替换

第二个需求是支持的 https://react-doc.github.io/#/introduce/api/conf

package.json 中添加配置

{
  "name": "doc",
  "version": "1.0.0",
  "scripts": {
    "deploy": "rdoc --publish <your repo url>",
    "build": "rdoc -d home,introduce --clean --build",
    "start": "rdoc -d home,introduce --clean"
  },
  "rdoc": {
    "theme": "rdoc-theme-load-react",
+    "favicon": "./assets/favicon.ico",
+    "logo": "./assets/rdoc.logo.svg",
    "react_modules": {
      "Hotkeys": "react-hot-keys"
    }
  },
  "dependencies": {
    "rdoc": "1.4.x",
    "rdoc-theme-load-react": "^1.1.0",
    "react-hot-keys": "^1.1.0"
  }
}

或者在 .rdocrc.json 中添加配置。

{
  "title": "Rdoc title",
  "theme": "rdoc-theme-load-react",
  "favicon": "./assets/favicon.ico",
  "logo": "./assets/rdoc.logo.svg",
  "react_modules": {
    "Hotkeys": "react-hot-keys"
  }
}

@zhuhoudan
Copy link
Author

  1. 默认版式目前支持移动端是没错的,但是版式的排版是很不友好。
  2. icon是支持换的,这个我是知道的,我是想说Copyright支不支持不更改主题的方式更换呢?

@jaywcjlove
Copy link
Owner

@zhuhoudan Copyright 也是支持的,你把皮肤拷贝出来,改一下就还了

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