You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
我想要一个可以实时编辑文章的在线 IDE,支持分类,标签,多编程语言,评论互动及问答模式。发文也不需要受到平台的审核及约束,综合考虑下来决定基于 GitHub 来打造一个社区。同样的事情,我希望可以只用做一次,然后可以无限复用这种能力。所以我选择将它开源,并且完全基于 GitHub 所提供的能力来实现。
技术栈
工作原理
lencx/rgd从Discussions API中获取数据生成的JSON文件,会通过Gatsby.js的gatsby-transformer-json插件解析生成GraphQL数据作为网站数据源,用来渲染页面。GitHub Actions每天会定时跑任务,从GitHub Discussions获取最新数据变更,重新对网站进行构建,并将其推送到GitHub Pages。部署
这个项目推荐的方式是配合
GitHub Actions每天定时同步 Discussions 中的数据,将其构建后推送到GitHub Pages。但是您也可以选择部署到其他平台。需要进行如下步骤:将生成的
public目录部署到其平台。Beta Was this translation helpful? Give feedback.
All reactions