Skip to content

Commit

Permalink
Merge pull request #880 from DIYgod/master
Browse files Browse the repository at this point in the history
[pull] master from diygod:master
  • Loading branch information
pull[bot] authored Mar 21, 2023
2 parents e59e924 + ee590b4 commit 9875b41
Show file tree
Hide file tree
Showing 110 changed files with 5,390 additions and 5,600 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/devcontainers/images/blob/v0.2.24/src/javascript-node/.devcontainer/devcontainer.json
{
"name": "Node.js",
"image": "mcr.microsoft.com/devcontainers/javascript-node:16-bullseye",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",

// Configure tool-specific properties.
"customizations": {
Expand Down
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ updates:
versions: ['>=12.0.0']
- dependency-name: ip-regex
versions: ['>=5.0.0']
- dependency-name: parse-torrent
versions: ['>=10.0.0']
- dependency-name: query-string
versions: ['>=8.0.0']
- dependency-name: rand-user-agent
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
needs: check-env
if: needs.check-env.outputs.check-docker == 'true'
timeout-minutes: 120
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -44,17 +47,26 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata (ordinary version)
id: meta-ordinary
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKER_USERNAME }}/rsshub
images: |
${{ secrets.DOCKER_USERNAME }}/rsshub
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable=true
type=raw,value={{date 'YYYY-MM-DD'}},enable=true
Expand All @@ -77,7 +89,9 @@ jobs:
id: meta-chromium-bundled
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKER_USERNAME }}/rsshub
images: |
${{ secrets.DOCKER_USERNAME }}/rsshub
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=chromium-bundled,enable=true
type=raw,value=chromium-bundled-{{date 'YYYY-MM-DD'}},enable=true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
wait-for-processing: true

titleLint:
if: ${{ github.event_name == 'pull_request_target' }}
if: ${{ github.event_name == 'pull_request_target' && github.repository == 'DIYgod/RSSHub' }}
name: Validate PR title
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 14, 16, 18 ]
node-version: [ 16, 18 ]
name: Jest on Node ${{ matrix.node-version }}
steps:
- name: Collect Workflow Telemetry
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 14, 16, 18 ]
node-version: [ 16, 18 ]
chromium:
- name: bundled Chromium
dependency: ''
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 14, 16, 18 ]
node-version: [ 16, 18 ]
name: Build docs on Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
Expand All @@ -141,7 +141,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 14, 16, 18 ]
node-version: [ 16, 18 ]
name: Build radar and maintainer on Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-bullseye as dep-builder
FROM node:18-bullseye as dep-builder
# Here we use the non-slim image to provide build-time deps (compilers and python), thus no need to install later.
# This effectively speeds up qemu-based cross-build.

Expand Down Expand Up @@ -30,7 +30,7 @@ FROM debian:bullseye-slim as dep-version-parser
# This stage is necessary to limit the cache miss scope.
# With this stage, any modification to package.json won't break the build cache of the next two stages as long as the
# version unchanged.
# node:16-bullseye-slim is based on debian:bullseye-slim so this stage would not cause any additional download.
# node:18-bullseye-slim is based on debian:bullseye-slim so this stage would not cause any additional download.

WORKDIR /ver
COPY ./package.json /app/
Expand All @@ -42,7 +42,7 @@ RUN \

# ---------------------------------------------------------------------------------------------------------------------

FROM node:16-bullseye-slim as docker-minifier
FROM node:18-bullseye-slim as docker-minifier
# The stage is used to further reduce the image size by removing unused files.

WORKDIR /minifier
Expand Down Expand Up @@ -74,7 +74,7 @@ RUN \

# ---------------------------------------------------------------------------------------------------------------------

FROM node:16-bullseye-slim as chromium-downloader
FROM node:18-bullseye-slim as chromium-downloader
# This stage is necessary to improve build concurrency and minimize the image size.
# Yeah, downloading Chromium never needs those dependencies below.

Expand Down Expand Up @@ -104,7 +104,7 @@ RUN \

# ---------------------------------------------------------------------------------------------------------------------

FROM node:16-bullseye-slim as app
FROM node:18-bullseye-slim as app

LABEL org.opencontainers.image.authors="https://github.com/DIYgod/RSSHub"

Expand Down
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
[![docker publish](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/docker-release.yml?branch=master&label=docker%20publish&logo=docker&style=flat-square)](https://hub.docker.com/r/diygod/rsshub)
[![test](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/test.yml?branch=master&label=test&logo=github&style=flat-square)](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
[![Test coverage](https://img.shields.io/codecov/c/github/DIYgod/RSSHub.svg?style=flat-square&logo=codecov)](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
[![Foresight Docs](https://api-public.service.runforesight.com/api/v1/badge/success?repoId=5da20e56-cecf-4b05-9bcd-cab097fb2dca)](https://docs.runforesight.com/)
[![CodeFactor](https://www.codefactor.io/repository/github/diygod/rsshub/badge)](https://www.codefactor.io/repository/github/diygod/rsshub)
[![DeepScan grade](https://deepscan.io/api/teams/6244/projects/8135/branches/92448/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=6244&pid=8135&bid=92448)

## Introduction

Expand All @@ -35,21 +36,9 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
### Special Sponsors

<p>
<a href="https://rss3.io/" target="_blank"><img height="60px" src="https://i.imgur.com/vHtI4bz.png"></a>
<a href="https://rss3.io/" target="_blank"><img height="50px" src="https://i.imgur.com/vHtI4bz.png"></a>
</p>

<table width="100%">
<tr>
<td><img width="1000" height="0"><a href="https://www.runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship"><img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/github-actions-observability.png"
alt="Foresight" width="260" align="right"></a><h3>Foresight: Increase CI/CD Health & Test Performance</h3><p>
Foresight provides full visibility and deep insights into the health and performance of your tests and CI pipelines. Assess the risk of code changes, deal with flaky tests, see workflow and test trends over time, and improve the contributing experience with Foresight.</p>

[Sign up now!](https://runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship)

</td>
</tr>
</table>

[![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/en/support/)

### Contributors
Expand Down
24 changes: 2 additions & 22 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,8 @@
"value": "80",
"required": false
},
"PIXIV_REFRESHTOKEN": {
"required": false
},
"DISQUS_API_KEY": {
"required": false
},
"SPOTIFY_CLIENT_ID": {
"required": false
},
"SPOTIFY_CLIENT_SECRET": {
"required": false
},
"SPOTIFY_REFRESHTOKEN": {
"required": false
},
"TWITTER_CONSUMER_KEY": {
"required": false
},
"TWITTER_CONSUMER_SECRET": {
"required": false
},
"YOUTUBE_KEY": {
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD": {
"value": "1",
"required": false
}
}
Expand Down
4 changes: 1 addition & 3 deletions docs/.format/chineseFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ module.exports = {
})
.use(prettier)
.use(gfm, {
options: {
stringLength: width,
},
stringLength: width,
})
.process(doc);
return typeof result === 'string' ? result : typeof result.contents === 'string' ? result.contents : result.result;
Expand Down
25 changes: 3 additions & 22 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ sidebarDepth: 0
[![docker publish](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/docker-release.yml?branch=master\&label=docker%20publish\&logo=docker\&style=flat-square)](https://hub.docker.com/r/diygod/rsshub)
[![test](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/test.yml?branch=master\&label=test\&logo=github\&style=flat-square)](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
[![Test coverage](https://img.shields.io/codecov/c/github/DIYgod/RSSHub.svg?style=flat-square\&logo=codecov)](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
[![Foresight Docs](https://api-public.service.runforesight.com/api/v1/badge/success?repoId=5da20e56-cecf-4b05-9bcd-cab097fb2dca)](https://docs.runforesight.com/)
[![CodeFactor](https://www.codefactor.io/repository/github/diygod/rsshub/badge)](https://www.codefactor.io/repository/github/diygod/rsshub)
[![DeepScan grade](https://deepscan.io/api/teams/6244/projects/8135/branches/92448/badge/grade.svg)](https://deepscan.io/dashboard#view=project\&tid=6244\&pid=8135\&bid=92448)

RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源。RSSHub 借助于开源社区的力量快速发展中,目前已适配数百家网站的上千项内容

Expand All @@ -29,29 +30,9 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
### Special Sponsors

<div style="margin: 30px 50px 20px 0;">
<a href="https://rss3.io/" target="_blank"><img alt="RSS3" height="60px" src="https://i.imgur.com/vHtI4bz.png"></a>
<a href="https://rss3.io/" target="_blank"><img alt="RSS3" height="50px" src="https://i.imgur.com/vHtI4bz.png"></a>
</div>

<table width="100%">
<tr>
<td>
  <img width="1000" height="0">
  <a href="https://www.runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship">
  <img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/github-actions-observability.png"
alt="Foresight" width="260" align="right">
  </a>

<h3>Foresight: Increase CI/CD Health & Test Performance</h3>

  <p>
Foresight provides full visibility and deep insights into the health and performance of your tests and CI pipelines. Assess the risk of code changes, deal with flaky tests, see workflow and test trends over time, and improve the contributing experience with Foresight.

[Sign up now!](https://runforesight.com/?utm_source=RSSHub\&utm_medium=sponsorship)

</td>
</tr>
</table>

[![](https://opencollective.com/static/images/become_sponsor.svg)](/support/)

### Contributors
Expand Down
Loading

1 comment on commit 9875b41

@vercel
Copy link

@vercel vercel bot commented on 9875b41 Mar 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.