5个版本

0.2.1 2021年8月25日
0.2.0 2021年8月12日
0.1.9 2021年8月12日
0.1.7 2021年8月11日
0.1.6 2021年8月11日

HTTP服务器 中排名第 691

GPL-2.0 许可证

40KB
846

Crates.io license GitHub Workflow Status

NotCraft::NotFeed

一个完全运行在您的GitHub仓库中的RSS阅读器。

  • GitHub Pages 上提供免费托管。无广告。无第三方跟踪。
  • 无需后端。内容更新通过 GitHub Actions
  • 通过模板和主题API自定义布局和样式。只需带来您的HTML和CSS。
  • 免费开源。无第三方跟踪。

如何使用它?

Github Pages

  1. 使用 NotFeed-Template 生成自己的仓库。

  2. 在仓库根目录下,打开 Config.toml 文件,点击“铅笔(编辑此文件)”按钮进行编辑。

  3. 移除 # 以取消注释 cacheUrl 属性,将 <github_username> 替换为您自己的GitHub用户名,并将 <repo> 替换为您自己的GitHub仓库名称。

  4. 在源中,更新项目到您想要跟踪的源。文件的最终内容应类似于以下内容

    site_title = "ArxivDaily"
    cache_max_days = 7
    sources = [
        "https://export.arxiv.org/rss/cs.CL"
    ]
    # proxy = "http://127.0.0.1:7890" ## Optional: default is None
    # statics_dir   = "statics"       ## Optional: default is "statics"
    # templates_dir = "includes"      ## Optional: default is "includes"
    # cache_url = "https://GITHUB_USERNAME.github.io/REPO_NAME/cache.json"
    # minify = true
    
    # [scripts]
    # highlight = "scripts/highlight.rhai"
    
  5. 滚动到页面底部,点击“提交更改”按钮。

  6. 一旦重建完成,您的订阅源将在 https://<github_username>.github.io/<repo> 可用

本地主机

  1. 克隆 NotFeed-Template 仓库。
  2. 编辑 Config.toml 文件。
  3. 运行 notfeed
    • 构建: notfeed build
    • 服务: notfeed serve --addr 127.0.0.1 --port 8080 或直接 notfeed serve

待办事项

  • 在构建出错时应该重试还是跳过。
  • 修复如果minify为真,静态目录将被扁平化。
  • 生成原子格式文件。
  • 重构渲染结构。

感谢

依赖项

~28–47MB
~811K SLoC