From 0c36015762de76ab6a5f657d2435e13616c37101 Mon Sep 17 00:00:00 2001 From: 5ouma <101255979+5ouma@users.noreply.github.com> Date: Sat, 9 Mar 2024 15:59:58 +0900 Subject: [PATCH] docs(readme): Add how to use this tool New users can understand easily. --- .github/README.md | 83 +++++++++++++++++++++++++++++++ .github/assets/example/feeds.toml | 20 ++++++++ .gitignore | 2 - 3 files changed, 103 insertions(+), 2 deletions(-) create mode 100644 .github/assets/example/feeds.toml delete mode 100644 .gitignore diff --git a/.github/README.md b/.github/README.md index e69de29..7da93c4 100644 --- a/.github/README.md +++ b/.github/README.md @@ -0,0 +1,83 @@ +

OPML Generator

+ +
+ +**📰 Generate OPML file via TOML file easily** + +[![GitHub Release](https://img.shields.io/github/v/release/5ouma/opml-generator?style=flat-square)](https://github.com/5ouma/opml-generator/releases) +![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/5ouma/opml-generator?style=flat-square) +![GitHub repo size](https://img.shields.io/github/repo-size/5ouma/opml-generator?style=flat-square) +[![GitHub last commit](https://img.shields.io/github/last-commit/5ouma/opml-generator?style=flat-square)](https://github.com/5ouma/opml-generator/commit/HEAD) +[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/5ouma/opml-generator?style=flat-square)](https://github.com/5ouma/opml-generator/commits/main) +
+[![Test](https://img.shields.io/github/actions/workflow/status/5ouma/opml-generator/test.yml?label=test&style=flat-square)](https://github.com/5ouma/opml-generator/actions/workflows/test.yml) +[![Gist Update](https://img.shields.io/github/actions/workflow/status/5ouma/opml-generator/gist-update.yml?label=Gist%20Update&style=flat-square)](https://github.com/5ouma/opml-generator/actions/workflows/gist-update.yml) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/5ouma/opml-generator/main.svg?style=flat-square)](https://results.pre-commit.ci/latest/github/5ouma/opml-generator/main) + +
+ +

+ +## 📊 Usage + +OPML Generator has 2 ways to convert TOML to OPML. + +1. ### 💻 On Local + + 1. 📰 Prepare your TOML file (Reference: [feeds.toml](./assets/example/feeds.toml)). + + 2. 🦕 Run Deno Task + + ```shell + deno task gen + ``` + + 3. 🗞️ Outputs are stored in the `outputs` directory separated by `lists`. + +2. ### 🐙 On GitHub Actions + + 1. 🗒️ Create [a Gist](https://gist.github.com): + - includes [`feeds.toml`](./assets/example/feeds.toml). + - for outputs. + 2. 🔑 Create [a Personal Access Token] with the `Gist` permission. + 3. 🍴 [Fork this repository](https://github.com/5ouma/opml-generator/fork) + 4. 🔏 Add Actions secrets + from `Settings > Secrets and variables | Actions` in the sidebar: + - `TOML_GIST_ID`: Gist ID for [`feeds.toml`](./assets/example/feeds.toml) + - `OPML_GIST_ID`: Gist ID for outputs + - `TOKEN`: Personal Access Token + 5. ✅ Enable GitHub Actions by checking `Allow all actions and reusable workflows` + from `Settings > Actions | General` in the sidebar. + + 🎉 Automatically update every 0 a.m. UTC + +[a Personal Access Token]: https://github.com/settings/tokens + +

+ +## 🗞️ Subscribe OPML + +For Inoreader, please see the official blog, [**OPML subscriptions**](https://www.inoreader.com/blog/2014/05/opml-subscriptions.html). +
+For other RSS readers, please see each help page. + +

+ +## 🆘 Help + +- [**⚠️ Issues**]: Feature Requests or Bug Reports +- [**💬 Discussions**]: General Chats or Questions +- [**🛡️ Security Advisories**]: Security Issues that should not be public + +[**⚠️ Issues**]: https://github.com/5ouma/opml-generator/issues/new/choose +[**💬 Discussions**]: https://github.com/5ouma/opml-generator/discussions/new/choose +[**🛡️ Security Advisories**]: https://github.com/5ouma/opml-generator/security/advisories/new + +

+ +## 🎽 Contributing + +I happily welcome your contributions! +Before you contribute, +I would recommend reading [CONTRIBUTING.md](./CONTRIBUTING.md) +for a better development experience. diff --git a/.github/assets/example/feeds.toml b/.github/assets/example/feeds.toml new file mode 100644 index 0000000..f241297 --- /dev/null +++ b/.github/assets/example/feeds.toml @@ -0,0 +1,20 @@ +[[lists]] +name = "list 1" + +[[lists.feeds]] +title = "feed 1" +xmlUrl = "https://feed1.com/rss" +[[lists.feeds]] +title = "feed 2" +xmlUrl = "https://feed2.com/rss" + + +[[lists]] +name = "list 2" + +[[lists.feeds]] +title = "feed 1" +xmlUrl = "https://feed1.com/rss" +[[lists.feeds]] +title = "feed 2" +xmlUrl = "https://feed2.com/rss" diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e462706..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -outputs/ -feeds.toml