Compare commits

..

No commits in common. "5700e740f82b9d84a969873266e81fbe6e775957" and "de9175c06cea9caed68e902d38cf374d6df994f6" have entirely different histories.

3 changed files with 3 additions and 22 deletions

View File

@ -1,17 +0,0 @@
name: Update RSS
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *' # daily at 3am
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: https://gitea.com/actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: lts/*
cache: 'npm'
- run: npm ci
- run: npx nodejsscript cli.js pull

View File

@ -1,5 +1,3 @@
# pagenotfound-cli
Utility primary for generating RSS feed for Pagenotfound
[RSS](https://gitea.jaandrle.cz/jaandrle/pagenotfound-cli/raw/branch/main/rss.xml)

View File

@ -1,7 +1,8 @@
#!/usr/bin/env -S npx nodejsscript
/* jshint esversion: 11,-W097, -W040, module: true, node: true, expr: true, undef: true *//* global echo, $, pipe, s, fetch, cyclicLoop */
import { JSDOM } from "jsdom";
const url_drops= "https://pagenotfound.cz/drop/";
const { version, description }= s.cat("package.json").xargs(JSON.parse);
const { name, version, description }= s.cat("package.json").xargs(JSON.parse);
/**
* @typedef {Object} Article
* @property {string} title
@ -62,7 +63,6 @@ async function toRSS(json){
"</rss>"
].join("\n")).to(path);
}
import { JSDOM } from "jsdom";
async function sitemap(){
const path= "sitemap.json";