<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>维燕的数字花园</title><description>知识管理就像一个花园，需要精心培育和持续维护才能繁荣。这是一个 All in Discussions 的个人数字花园，没事写写文章，喜欢的话请点 Star，想订阅点 Watch。</description><link>https://shenweiyan.github.io/</link><language>zh</language><item><title>这是一个备用讨论</title><link>https://shenweiyan.github.io/posts/2/</link><guid isPermaLink="true">https://shenweiyan.github.io/posts/2/</guid><description>备用讨论</description><pubDate>Mon, 16 Oct 2023 05:03:14 GMT</pubDate><content:encoded>&lt;p&gt;备用讨论&lt;/p&gt;</content:encoded></item><item><title>用 Github Discussions 搭建自己的论坛、博客、个人笔记</title><link>https://shenweiyan.github.io/posts/1/</link><guid isPermaLink="true">https://shenweiyan.github.io/posts/1/</guid><description>分享一下我的经验。你也可以用 Github Discussions 搭建自己的论坛、博客、个人笔记等。 用户有自主选择权，只看他感兴趣的内容。 可以点击项目的 Watch 按钮来订阅消息。具体用法请看 Github - 查看订阅。 也可以只订阅某个讨论。进入某个讨论，点击右边 Notifications 的 Subscribe 按钮。 用户可以在 里看到订阅的新消息。 We’re using Di…</description><pubDate>Mon, 16 Oct 2023 03:18:39 GMT</pubDate><content:encoded>&lt;p&gt;分享一下我的经验。你也可以用 Github Discussions 搭建自己的论坛、博客、个人笔记等。&lt;/p&gt;
&lt;h2 id=&quot;user-content-欢迎订阅&quot;&gt;欢迎订阅&lt;/h2&gt;
&lt;p&gt;用户有自主选择权，只看他感兴趣的内容。&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;可以点击项目的 Watch 按钮来订阅消息。具体用法请看 &lt;a href=&quot;https://docs.github.com/zh/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/viewing-your-subscriptions&quot;&gt;Github - 查看订阅&lt;/a&gt;。&lt;br&gt;
&lt;img alt=&quot;watch-discussions&quot; width=&quot;&quot; src=&quot;https://gi.weiyan.tech/2023/12/watch-github-discussions.png&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;也可以只订阅某个讨论。进入某个讨论，点击右边 Notifications 的 Subscribe 按钮。&lt;/p&gt;
&lt;p&gt;用户可以在 &lt;a href=&quot;https://github.com/notifications&quot;&gt;https://github.com/notifications&lt;/a&gt; 里看到订阅的新消息。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;user-content--welcome&quot;&gt;👋 Welcome!&lt;/h2&gt;
&lt;p&gt;We’re using Discussions as a place to connect with other members of our community. We hope that you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ask questions you’re wondering about.&lt;/li&gt;
&lt;li&gt;Share ideas.&lt;/li&gt;
&lt;li&gt;Engage with other community members.&lt;/li&gt;
&lt;li&gt;Welcome others and are open-minded. Remember that this is a community we&lt;br&gt;
build together 💪.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To get started, comment below with an introduction of yourself and tell us about what you do with this community.&lt;/p&gt;

&lt;h2 id=&quot;user-content-本仓库谈论说明&quot;&gt;本仓库谈论说明&lt;/h2&gt;
&lt;p&gt;这里所有的 &lt;code&gt;Discussion Format&lt;/code&gt; 都是 &lt;code&gt;Announcement&lt;/code&gt;：Only maintainers and admins can post new discussions in these categories, but anyone can comment and reply.&lt;br&gt;
&lt;img src=&quot;https://gi.weiyan.tech/2023/12/discussion-format.png&quot; alt=&quot;Discussion Format&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;user-content-使用讨论-discussion&quot;&gt;使用讨论 (Discussion)&lt;/h2&gt;
&lt;h3 id=&quot;user-content-搜索讨论&quot;&gt;搜索讨论&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;版块搜索：在 Discussions 页面的搜索框输入搜索词即可。&lt;/li&gt;
&lt;li&gt;全局搜索：在最上面的 Github 搜索框输入 &lt;code&gt;org:shenweiyan 搜索词&lt;/code&gt; 就能搜索所有版块的讨论。比如搜&lt;a href=&quot;https://github.com/search?q=org%3Ashenweiyan+%E7%94%9F%E4%BF%A1&amp;#x26;type=discussions&quot;&gt;&quot;生信&quot;&lt;/a&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;user-content-排序讨论&quot;&gt;排序讨论&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;可以按时间来排序讨论。&lt;br&gt;
&lt;img alt=&quot;sort-discussions&quot; width=&quot;280&quot; src=&quot;https://gi.weiyan.tech/2023/12/sort-discussions.png&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;user-content-使用-label-筛选讨论&quot;&gt;使用 Label 筛选讨论&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Label 是可以无限加的。一个讨论可以有多个 Label。&lt;br&gt;
&lt;img alt=&quot;filter-labels&quot; width=&quot;250&quot; src=&quot;https://gi.weiyan.tech/2023/12/filter-labels.png&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;标记 Label 的好处在于，用户可以在讨论列表里筛选、多选、反选 Label 对应的讨论。&lt;br&gt;
&lt;img alt=&quot;filter-by-labels&quot; width=&quot;250&quot; src=&quot;https://gi.weiyan.tech/2023/12/filter-by-labels.png&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;user-content-评论&quot;&gt;评论&lt;/h2&gt;
&lt;p&gt;评论有两种。一种是在别人的评论下继续回复评论。一种是最底下的评论框，这会回复到主线里。&lt;/p&gt;
&lt;p&gt;如果你针对某个评论进行回复，建议在别人的评论下回复，不要回复到主线。这样其他订阅这个讨论的人不会收到消息提醒的干扰。&lt;/p&gt;
&lt;h2 id=&quot;user-content-讨论管理&quot;&gt;讨论管理&lt;/h2&gt;
&lt;h3 id=&quot;user-content-讨论分类&quot;&gt;讨论分类&lt;/h3&gt;
&lt;p&gt;讨论分类由项目管理员维护。按需创建。分类根据名称排序。所以加个数字前缀用来控制显示顺序。&lt;/p&gt;
&lt;h3 id=&quot;user-content-删除讨论&quot;&gt;删除讨论&lt;/h3&gt;
&lt;p&gt;点进讨论详情页，在右侧最底下有个 delete discussion。&lt;/p&gt;
&lt;h3 id=&quot;user-content-迁移讨论&quot;&gt;迁移讨论&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Transfer this discussion 功能可以把讨论移到同组织的另一个项目下。&lt;br&gt;
&lt;img alt=&quot;transfer-discussion&quot; width=&quot;&quot; src=&quot;https://gi.weiyan.tech/2023/12/transfer-discussion.png&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;也可以切换讨论分类。&lt;br&gt;
&lt;img alt=&quot;change-category&quot; width=&quot;250&quot; src=&quot;https://gi.weiyan.tech/2023/12/change-category.png&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;user-content-置顶讨论&quot;&gt;置顶讨论&lt;/h3&gt;
&lt;p&gt;在讨论详情页面可以选择置到项目 Discussion 的顶部，或者置到讨论分类的顶部。&lt;br&gt;
&lt;img alt=&quot;置顶讨论&quot; width=&quot;200&quot; src=&quot;https://gi.weiyan.tech/2023/12/pin-discussion.png&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;user-content-周报月报&quot;&gt;周报月报&lt;/h2&gt;
&lt;p&gt;可以考虑使用 Github Action 自动跑脚本，通过 Github API 来获取 Discussion 的消息。然后自动创建 release，把简报内容写到 release body 里。这样订阅了项目 release 的人就可以收到。 可以单独创建一个项目来管理，避免订阅的人受到干扰。&lt;/p&gt;
&lt;p&gt;Github Discussion API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.github.com/en/search-github/searching-on-github/searching-discussions&quot;&gt;https://docs.github.com/en/search-github/searching-on-github/searching-discussions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search&quot;&gt;https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions#search&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/orgs/community/discussions/43&quot;&gt;Discussions API community/community#43&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;user-content-数据备份&quot;&gt;数据备份&lt;/h2&gt;
&lt;p&gt;可以考虑使用 Github Action 自动跑脚本，通过 Github API 来获取 Discussion 的消息。&lt;/p&gt;
&lt;h2 id=&quot;user-content-移动端&quot;&gt;移动端&lt;/h2&gt;
&lt;p&gt;Github 有&lt;a href=&quot;https://github.com/mobile&quot;&gt;移动端 App&lt;/a&gt;。除了不支持 Polls 功能，其他功能都挺好用的。能查看提醒，也能发布新讨论，也能回复评论。&lt;/p&gt;
&lt;h2 id=&quot;user-content-邮件端&quot;&gt;邮件端&lt;/h2&gt;
&lt;p&gt;消息提醒同时会发到你绑定的邮箱里。你也可以用邮箱来查收。&lt;/p&gt;
&lt;h2 id=&quot;user-content-博文中加评论&quot;&gt;博文中加评论&lt;/h2&gt;
&lt;p&gt;借助 &lt;a href=&quot;https://giscus.app/zh-CN&quot;&gt;giscus&lt;/a&gt;，可以非常方便在文章页中插入指定的 discussions —— 在导出 discussions 的时候，在文章尾部增加类似以下 JavaScript 即可：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;&amp;#x3C;script src=&quot;https://giscus.app/client.js&quot;
        data-repo=&quot;shenweiyan/Knowledge-Garden&quot;
        data-repo-id=&quot;R_kgDOKgxWlg&quot;
        data-mapping=&quot;number&quot;
        data-term=&quot;4&quot;
        data-reactions-enabled=&quot;1&quot;
        data-emit-metadata=&quot;0&quot;
        data-input-position=&quot;bottom&quot;
        data-theme=&quot;light&quot;
        data-lang=&quot;zh-CN&quot;
        crossorigin=&quot;anonymous&quot;
        async&gt;
&amp;#x3C;/script&gt;
&lt;/code&gt;&lt;/pre&gt;</content:encoded></item></channel></rss>