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

执行 npm start 控制台提示ip是 0.0.0.0 #15

Closed
maskleo opened this issue Jun 12, 2018 · 8 comments
Closed

执行 npm start 控制台提示ip是 0.0.0.0 #15

maskleo opened this issue Jun 12, 2018 · 8 comments

Comments

@maskleo
Copy link

maskleo commented Jun 12, 2018

DONE  Compiled successfully in 327ms                                                                           11:19:34


Dev Server Listening at http://0.0.0.0:5858

然后浏览器自动打开的也是 http://0.0.0.0:5858

@jaywcjlove
Copy link
Owner

@maskleo 你可以通过 http://127.0.0.0:5858http://localhost:5858本机IP + :5858 访问。回头我增加个获取本机IP,这里显示本机IP

@maskleo
Copy link
Author

maskleo commented Jun 14, 2018

@jaywcjlove
1.这个可以嵌入评论插件吗
2.还有就是提交到git能不能进行配置然后直接执行简单的命令哦

@jaywcjlove
Copy link
Owner

jaywcjlove commented Jun 14, 2018

@maskleo 编译后的,有提交到 git 的配置。默认提交到 gh-pages 分支,可以指定参数 --branch master

{
  "name": "doc-example",
  "description": "Describe doc-example here",
  "scripts": {
+    "deploy": "rdoc --publish 你的git仓库地址",
    "build": "rdoc -d home,introduce,faq,example,about,github --build"
    "start": "rdoc -d home,introduce,faq,example,about,github --clean"
  },
  "dependencies": {
    "rdoc": "1.2.x"
  },
  "license": "MIT"
}

指定参数 --branch master 提交到别的分支。

{
  "name": "doc-example",
  "description": "Describe doc-example here",
  "scripts": {
+    "deploy": "rdoc --publish 你的git仓库地址 --branch master",
    "build": "rdoc -d home,introduce,faq,example,about,github --build"
    "start": "rdoc -d home,introduce,faq,example,about,github --clean"
  },
  "dependencies": {
    "rdoc": "1.2.x"
  },
  "license": "MIT"
}

目前不支持评论插件,回头,我想办法弄进去。

@maskleo maskleo closed this as completed Jun 21, 2018
@maskleo maskleo reopened this Jun 21, 2018
@maskleo
Copy link
Author

maskleo commented Jun 21, 2018

@jaywcjlove 今天试了发布 为何生成的都是js 开始以为自己弄错了 然后看了下示例的github pages 文件 发现也是一堆的js然后把自己的部署上去成功显示了
还有就是希望有检索功能

@jaywcjlove
Copy link
Owner

@maskleo 单页面应用,所以全是 js,检索功能主要检索啥呢?

@jaywcjlove
Copy link
Owner

@maskleo 更新 +rdoc@1.10.6 ip是 0.0.0.0 的问题已解决

@maskleo
Copy link
Author

maskleo commented Jun 22, 2018

@jaywcjlove 这个是文档主题,拿来做文档是需要能根据内容查找最好咯

@jaywcjlove
Copy link
Owner

@maskleo 回头看加个什么形式的搜索

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