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

还没完美支持ssr,修改对应的中文文档 #51

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions ssr.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# 服务端渲染(SSR)

先看例子 https://docsify.now.sh
项目地址: https://github.com/docsifyjs/docsify-ssr-demo

项目地址在 https://github.com/docsifyjs/docsify-ssr-demo
!> SSR的支持是实验性质的, 还没完成,主要是因为一些插件和特性在SSR模式中仍不能正常工作,我们正在努力实现中。
Comment on lines +3 to +5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢你的反馈。

修改中文文档内容,建议和英文文档内容保持一致。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

找不到英文文档

sorry, 我对docsify项目不熟悉, 尝试找但没有找到原始的英文文档在哪.
ssr网页端还能看到ssr侧边栏
image

英文文档的目录已经没有了ssr.md
image

我在仓库中进行了全局搜索也没找到
image

能否告诉我一下这是为什么?

建议及方案

这是我通过ssr网页端看的句子, 随之翻译的. '表情符号不会打', 调整了一下中文语序, 我认为更合理.
不合理的地方请在我基础上直接修改, 合并即可

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全局搜索
image


![](https://dn-mhke0kuv.qbox.me/2bfef08c592706108055.png)

文档依旧是部署在 GitHub Pages 上,Node 服务部署在 now.sh 里,渲染的内容是从 GitHub Pages 上同步过来的。所以静态部署文档的服务器和服务端渲染的 Node 服务器是分开的,也就是说你还是可以用之前的方式更新文档,并不需要每次都部署。

## 什么是 SSR?
- 更好的 SEO
Expand Down