Commit Graph

39 Commits

Author SHA1 Message Date
Hagb (Junyu Guo 郭俊余) eb79456f40
docs: support parameter suffix `*` (#7946)
* docs: support parameter suffix `*`

`*` denotes a zero or more parameter matches, so the parameter including `*` is optional. (https://github.com/pillarjs/path-to-regexp#zero-or-more)

* docs: mention the parameter suffix `*`

* docs: support parameter suffix `+`

* docs: add document of parameter suffixs

* docs: fix having / at the end of parameter

* docs: add missing changes in en docs

* docs: typo

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-05-07 17:18:35 +08:00
Bin Wang 6b7381e1e3
feat(core): add custom fields to atom feed (#9355)
* Add custom fields to atom feed

Atom allows to extend the xml with custom namespaces. This commit is
a first commit that tries to add some custom RSSHub fields to atom feed.

In this commit, I added three very common fields: upvotes, downvotes
and comments. Lots of websites has these common fields, like Youtube,
Twitter, Reddit, HackerNews and so on. Within these fields, RSS readers
can have more information to sort the contents, and can display these
information to user in a better format.

The document has been updated to reflect these new fields. I also changed
Bilibili video route as an example to show how to add number of comments
to the generated feed.

* docs: interactions
2022-04-18 02:54:32 +08:00
Ethan Shen d5648b37ee
fix(utils): parse relative dates with multiple time units (#9365)
* fix(utils): parse relative dates with multiple time units

* docs: remove warning

* fix: add more characters to match

* fix: rename to parse-date
2022-03-26 16:45:42 +08:00
Rongrong c48ca6bd5b
fix(core): invalid feed fields (#9286)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-22 02:13:15 +08:00
Rongrong 41910802f2
feat(core): caching enhancements (#9227)
* fix(core): redis cache ignore `maxAge` when refreshing

memory cache do not have such a problem

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* feat(core): make `cache.tryGet()` refreshing selectable

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* docs: `ctx.cache.tryGet()` update

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-19 02:13:15 +08:00
Rongrong 3364b7eb1d
fix(route): migrate invalid `enclosure_length` usages to `itunes_duration` (#9291)
Close #9287

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-10 20:54:29 +08:00
Tony e9a2c3af55
style: remark v13 (#9140) 2022-02-18 23:15:49 +08:00
Tony 6de540a311
docs(core): sync en docs and minor cn docs fixes (#8356)
Co-authored-by: DIYgod <diy.d.god@gmail.com>
2021-11-27 08:53:44 +00:00
Daniel Li (李丹阳) d77a039f05
style(eslint): add no-implicit-coercion rule (#8175)
* refactor: add no-implicit-coercion rule for ESLint

* fix: errors from deepscan

* fix: errors from deepscan

* fix: errors from deepscan

* fix: errors from deepscan

* fix: errors from deepscan

* Update docs/en/joinus/quick-start.md

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update docs/joinus/quick-start.md

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update lib/routes/av01/tag.js

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update lib/routes/gov/taiwan/mnd.js

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update lib/routes/ps/product.js

Co-authored-by: Sukka <isukkaw@gmail.com>

* refactor: minify html string

Co-authored-by: Sukka <isukkaw@gmail.com>
2021-09-15 21:22:11 +08:00
NeverBehave 9a3ae8a4bc
docs(core): pubdate, npm ci with templates (#7501) 2021-05-08 17:47:22 -04:00
DIYgod 0e7b14e718
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 2020-04-02 21:21:46 +08:00
DIYgod a5e4655271
docs: format 2019-12-30 19:25:11 +08:00
DIYgod 9de1356dfa
docs: English docs sync, #3051 2019-12-30 19:17:54 +08:00
DIYgod a4f8693d88
docs: Media RSS 2019-08-29 19:13:28 +08:00
DIYgod 9a3bea3525
feat: remove referrerpolicy in routes 2019-08-28 14:38:19 +08:00
Henry Wang f73690682e fix: better debugging experience with cluster (#2447) 2019-06-20 11:50:28 +08:00
DIYgod defbaeab59
docs: got 2019-06-03 18:33:15 +08:00
DIYgod e2badbfa98
chore: module alias for all routes 2019-05-15 15:27:15 +08:00
DIYgod 7d1b387205
docs: sidebarDepth 3 2019-05-13 03:29:07 +08:00
DIYgod 075a8d1864
feat: support setting expire time for content cache 2019-05-09 01:11:19 +08:00
DIYgod aef8204b9e
docs: PascalCase component 2019-03-25 00:51:16 +08:00
Henry af00264e92 Update caching solution 2019-01-30 10:12:22 +00:00
Henry 4227c30d77 Update docs and example 2019-01-28 21:18:31 +00:00
Henry Wang 1a31db94c3 更新英文文档 Join Us (#1411) 2019-01-17 11:25:38 +08:00
DIYgod 38a90e29b0
optimize directory structure 2018-12-26 18:35:10 +08:00
DIYgod 2269b3b7e7
rss: add zimuzu rss 2018-11-29 11:05:45 +08:00
Artin 3e7ea5b986 优化播客格式需要的字段 (#1192)
减少了制作成本。
优化了一下文档。
2018-11-26 14:36:58 +08:00
epirus 0a8f937460 增加经济观察网 (#1099)
增加经济观察网
2018-11-10 15:57:14 +08:00
sgqy 0de84a1fe2 fix category support; enable language support (#1054)
修复 #1015 引入的 bug,~~并引入新的 bug~~。
~~顺便给 #1018 做个铺垫(?~~
2018-11-03 10:58:41 +08:00
Artin 9f25a187ee ximalaya: 修复获取条目封面出错 (#803) 2018-09-28 10:57:08 +08:00
Artin fe9bd853c2 喜马拉雅: 更换音频链接 (#763) 2018-09-23 14:21:36 +08:00
Henry Wang 464903988a 新增文档:如何写文档 (#729) 2018-09-17 23:14:49 +08:00
Henry Wang a91cbf394d Update contribution guide and add CONTRIBUTING.md (#667) 2018-09-09 21:06:59 +08:00
Artin 2da33eac93 修复 喜马拉雅 (#629)
fix: #617
2018-09-02 20:11:40 +08:00
Henry Wang 3591447e02 Revamp the doc. Add LICENSE file. (#580)
1. 参数现在和英文版一样使用 list
2. 全角`,`, `:`改半角`,`, `:`
3. 补全部分遗漏
4. 修改部分格式
2018-08-30 21:41:39 +08:00
Artin 6651c85b7c docs: update joinus (#559)
* update: docs/joinus

* fix english docs

* fix english docs

* update english docs
2018-08-28 18:21:35 +08:00
Henry Wang e830016f13 Add route docs in EN (#461) 2018-08-14 14:28:18 +08:00
Henry Wang e107d0f7eb Add docs in EN (#454)
* Add install doc in EN

* Add support doc in EN

* Add joinus doc in EN

* Add doc in EN

* Update README.md
2018-08-13 17:40:25 +08:00
DIYgod 1e9e71bcde
docs: init i18n 2018-08-13 01:47:16 +08:00