1
0

6 Commits

Author SHA1 Message Date
George Mandis
78250bd9a2 Update feeds.json 2021-11-26 01:10:36 -05:00
George Mandis
5c0a4a2523 Update README.md
Typo fixes
2021-11-17 21:07:19 -08:00
George Mandis
0456e0ef0e Fixed feed branch 2021-11-14 20:03:25 -08:00
George Mandis
4a3bb0b1b7 adding nvmrc 2021-11-14 20:01:27 -08:00
George Mandis
b451adf35b Updated default feeds 2021-11-14 19:57:10 -08:00
George Mandis
5c84d7402e Added missing const. How did I not ever catch this? 2021-11-14 19:51:42 -08:00
4 changed files with 8 additions and 6 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
16.4.1

View File

@@ -11,7 +11,7 @@ You can read more about how this project came about in my blog post '[Introducin
- `src/index.html` - a [Nunjucks](https://mozilla.github.io/nunjucks/) template that lets you change how the feeds are displayed
- `output/style.css` - a CSS file to stylize your feed output
- `src/feeds.json` - a JSON file containing the URLs for various site's feeds separated into categories
- `src/index.js` - the script that loads the feeds and does the actual parsinga and rendering
- `src/index.js` - the script that loads the feeds and does the actual parsing and rendering
## Demos
@@ -65,7 +65,7 @@ If you already have a server running Linux and some command-line experience it m
#### Using GitHub Actions
This approach is a little different and requires some modifications to the repository. Netlify started billing for [build minutes](https://www.netlify.com/pricing/faq/) very shortly after I published this project. Running `npm build` and downloading all of the RSS feeds took up a substantial number of these, particulary if you had a process pinging the webhook and triggering a build every 15 minutes or so.
This approach is a little different and requires some modifications to the repository. Netlify started billing for [build minutes](https://www.netlify.com/pricing/faq/) very shortly after I published this project. Running `npm build` and downloading all of the RSS feeds took up a substantial number of these, particularly if you had a process pinging the webhook and triggering a build every 15 minutes or so.
How is the The GitHub Action-based approach different? The same build process runs, but this time it's on GitHub's servers via the Action. It then **commits** the newly created file generated at `./output/index.html` back into the repository. Netlify still gets pinged when the repository is updated, but skips the `npm run build` step on their end. This significantly reduces the number of build minutes required.

View File

@@ -14,8 +14,9 @@
],
"My GitHub Projects": [
"https://github.com/georgemandis.atom",
"https://github.com/snaptortoise/konami-js/releases.atom",
"https://github.com/snaptortoise/konami-js/commits/master.atom",
"https://github.com/georgemandis/bubo-rss/releases.atom",
"https://github.com/georgemandis/konami-js/releases.atom",
"https://github.com/georgemandis/konami-js/commits/main.atom",
"https://github.com/javascriptforartists/cheer-me-up-and-sing-me-a-song/commits/master.atom",
"https://github.com/georgemandis/circuit-playground-midi-multi-tool/commits/master.atom",
"https://github.com/georgemandis/remote-working-list/commits/master.atom",

View File

@@ -93,7 +93,7 @@ const getTimestamp = (obj) => {
const contentFromAllFeeds = {};
const errors = [];
for (group in feeds) {
for (const group in feeds) {
contentFromAllFeeds[group] = [];
for (let index = 0; index < feeds[group].length; index++) {