Skip to content

Commit e004d7c

Browse files
feat: make central place for documentation (#917)
* feat: add contents from html2rss gem readme Signed-off-by: Gil Desmarais <[email protected]> * feat(docs): Restructure into Ruby Gem and Web App sections Reorganize the documentation to create a clear distinction between the `html2rss` Ruby Gem and the standalone Web Application. This improves navigation and helps users find content relevant to their specific use case. - Move all existing gem-related documentation (getting started, configuration, examples) into a new `/ruby-gem` directory. - Add a new, comprehensive documentation section for the Web Application under `/web-application`. - Update site-wide navigation, internal links, and page front matter to align with the new structure. - Update gem dependencies in `Gemfile.lock`. * add og meta tags * ci: setup lint job * style: lintfix files * feat: improve listing of configs [wip] * refactor: reorganize documentation structure and update permalinks * refactor: update documentation for clarity and consistency * feat: enhance feed directory with Alpine.js integration * feat: style feed directory component * feat(feed-directory): present form for dynamic params [wip] Signed-off-by: Gil Desmarais <[email protected]> * feat: reorder ruby-gem contents & dedupe * feat: update copy * docs: everything of gem readme * docs: everything of web readme Signed-off-by: Gil Desmarais <[email protected]> * Update feed-directory/index.html Co-authored-by: Copilot <[email protected]> Signed-off-by: Gil Desmarais <[email protected]> * chore(deps): update npm packages --------- Signed-off-by: Gil Desmarais <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 13c9143 commit e004d7c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2687
-603
lines changed

.github/workflows/gh-pages.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build:
1317
runs-on: ubuntu-latest
@@ -37,6 +41,10 @@ jobs:
3741
runs-on: ubuntu-latest
3842
needs: build
3943
if: github.ref == 'refs/heads/main'
44+
permissions:
45+
contents: read
46+
pages: write
47+
id-token: write
4048
steps:
4149
- name: Download artifact
4250
uses: actions/download-artifact@v4

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "24"
22+
cache: "yarn"
23+
24+
- name: Install dependencies
25+
run: yarn install --frozen-lockfile
26+
27+
- name: Run linters
28+
run: yarn lint

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
node_modules
3+
yarn.lock

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": false,
3+
"trailingComma": "all"
4+
}

.stylelintrc.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,8 @@
55
"stylelint-config-recess-order"
66
],
77
"rules": {
8-
"function-comma-space-after": "always",
98
"no-descending-specificity": null,
109
"declaration-block-single-line-max-declarations": 1,
11-
"unit-whitelist": [
12-
"%",
13-
"ch",
14-
"deg",
15-
"em",
16-
"fr",
17-
"ms",
18-
"px",
19-
"rem",
20-
"s",
21-
"turn",
22-
"vh",
23-
"vw"
24-
],
25-
"max-empty-lines": 1,
26-
"max-line-length": 110,
27-
"no-empty-first-line": true,
28-
"indentation": 2,
29-
"number-leading-zero": "always",
3010
"media-feature-name-no-unknown": [
3111
true,
3212
{

Makefile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
default: setup clean fix serve
1+
default: setup clean lintfix serve
22

33
setup:
44
yarn check || yarn
55
bundle check || bundle
66
make update
77

8-
fix:
9-
prettier --write --no-semi "**/*.yml" "**/*.md" "**/*.scss" "assets/**/*.js"
10-
yarn run stylelint --fix "assets/**/*.scss" || echo 'stylelint: found no scss files to lint'
8+
lint:
9+
yarn lint
10+
make lint-ruby
11+
12+
lintfix:
13+
yarn lintfix
14+
make lintfix-ruby
15+
16+
lint-ruby:
17+
bundle exec rubocop
18+
19+
lintfix-ruby:
1120
bundle exec rubocop -a
1221

1322
clean:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# html2rss.github.io
22

3-
🚧 WIP / Work in progress 🚧
3+
This repository hosts the documentation and website for `html2rss`, a tool for creating RSS feeds from any website.
4+
5+
## Contributing
6+
7+
Contributions are welcome! See our [Get Involved page](https://html2rss.github.io/get-involved) for details on discussions, reporting issues, and contributing.

_config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ aux_links:
2424
"GitHub":
2525
- "https://github.com/html2rss"
2626

27-
header_pages:
28-
- configs/index.html
29-
- contributing.md
30-
3127
# Footer "Edit this page on GitHub" link text
3228
gh_edit_link: true # show or hide edit this page link
3329
gh_edit_link_text: "Edit this page on GitHub."

_includes/head_custom.html

Lines changed: 103 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,109 @@
1-
<meta name="apple-mobile-web-app-capable" content="yes">
2-
<meta name="apple-mobile-web-app-status-bar-style" content="black">
1+
<meta name="mobile-web-app-capable" content="yes" />
2+
<meta name="apple-mobile-web-app-capable" content="yes" />
3+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
34
<meta name="referrer" content="no-referrer" />
5+
<meta
6+
name="description"
7+
content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"
8+
/>
49
<meta
510
name="robots"
611
content="{% if page.noindex %}noindex, noarchive, follow{% else %}index, follow{% endif %}"
712
/>
13+
14+
<meta
15+
property="og:url"
16+
content="{{ page.url | replace:'index.html','' | absolute_url }}"
17+
/>
18+
<meta
19+
property="og:title"
20+
content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"
21+
/>
22+
<meta
23+
property="og:description"
24+
content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"
25+
/>
26+
<meta property="og:site_name" content="{{ site.title }}" />
27+
<meta
28+
property="og:image"
29+
content="{{ '/assets/images/logo.png' | absolute_url }}"
30+
/>
31+
<meta property="og:type" content="website" />
32+
833
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}" />
9-
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.png">
10-
<link rel="icon" type="image/png" sizes="32x32" href="/assets/images/favicon-32x32.png">
11-
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicon-16x16.png">
12-
<link rel="manifest" href="/assets/images/site.webmanifest">
13-
<link rel="mask-icon" href="/assets/images/safari-pinned-tab.svg" color="#111111">
14-
<link rel="shortcut icon" href="/assets/images/favicon.ico">
15-
<meta name="msapplication-TileColor" content="#111111">
16-
<meta name="msapplication-config" content="/assets/images/browserconfig.xml">
17-
<meta name="theme-color" content="#111111">
18-
<script data-goatcounter="https://html2rss.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
34+
<link
35+
rel="apple-touch-icon"
36+
sizes="180x180"
37+
href="/assets/images/apple-touch-icon.png"
38+
/>
39+
<link
40+
rel="icon"
41+
type="image/png"
42+
sizes="32x32"
43+
href="/assets/images/favicon-32x32.png"
44+
/>
45+
<link
46+
rel="icon"
47+
type="image/png"
48+
sizes="16x16"
49+
href="/assets/images/favicon-16x16.png"
50+
/>
51+
<link rel="manifest" href="/assets/images/site.webmanifest" />
52+
<link
53+
rel="mask-icon"
54+
href="/assets/images/safari-pinned-tab.svg"
55+
color="#111111"
56+
/>
57+
<link rel="shortcut icon" href="/assets/images/favicon.ico" />
58+
<meta name="msapplication-TileColor" content="#111111" />
59+
<meta name="msapplication-config" content="/assets/images/browserconfig.xml" />
60+
<meta name="theme-color" content="#111111" />
61+
<script
62+
data-goatcounter="https://html2rss.goatcounter.com/count"
63+
async
64+
src="//gc.zgo.at/count.js"
65+
></script>
66+
<div class="svg-defs-hidden">
67+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="rss-icon">
68+
<rect
69+
width="512"
70+
height="512"
71+
x="-512"
72+
y="-512"
73+
rx="70"
74+
ry="70"
75+
style="fill: #ea7819; fill-opacity: 1; stroke: none"
76+
transform="scale(-1)"
77+
/>
78+
<path
79+
d="M81.056 267.05c43.705 0 84.79 17.072 115.665 48.124 30.931 31.051 47.961 72.411 47.961 116.44h67.35c0-127.885-103.62-231.921-230.976-231.921zm.106-119.4c155.76 0 282.488 127.42 282.488 284.049H431C431 237.925 274.054 80.301 81.162 80.301zm93.135 236.998c0 25.757-20.892 46.649-46.649 46.649-25.756 0-46.648-20.885-46.648-46.649C81 358.878 101.885 338 127.641 338c25.757 0 46.656 20.878 46.656 20.878"
80+
style="fill: #fff"
81+
/>
82+
</svg>
83+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="edit-icon">
84+
<path
85+
fill="currentColor"
86+
d="M3 17.25V21h3.75L18.75 9.75l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
87+
/>
88+
</svg>
89+
<svg
90+
xmlns="http://www.w3.org/2000/svg"
91+
viewBox="0 0 32 32"
92+
id="settings-icon"
93+
>
94+
<path
95+
fill="currentColor"
96+
d="M28 13V8a2 2 0 0 0-2-2h-3v2h3v5a3.98 3.98 0 0 0 1.382 3A3.98 3.98 0 0 0 26 19v5h-3v2h3a2 2 0 0 0 2-2v-5a2 2 0 0 1 2-2v-2a2 2 0 0 1-2-2"
97+
/>
98+
<path
99+
fill="currentColor"
100+
d="m17 9-.857 3h2L19 9h2l-.857 3H22v2h-2.428l-1.143 4H21v2h-3.143L17 23h-2l.857-3h-2L13 23h-2l.857-3H10v-2h2.429l1.143-4H11v-2h3.143L15 9Zm.572 5h-2l-1.143 4h2Z"
101+
style="fill-rule: evenodd"
102+
/>
103+
<path
104+
fill="currentColor"
105+
d="M6 13V8h3V6H6a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2v2a2 2 0 0 1 2 2v5a2 2 0 0 0 2 2h3v-2H6v-5a3.98 3.98 0 0 0-1.382-3A3.98 3.98 0 0 0 6 13"
106+
/>
107+
<path d="M0 0h32v32H0z" style="fill: none" />
108+
</svg>
109+
</div>

about.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: default
3+
title: About html2rss
4+
nav_order: 2
5+
---
6+
7+
# About html2rss
8+
9+
`html2rss` is an open-source project dedicated to empowering you to take control of your web content. In an age where traditional RSS feeds are often missing, `html2rss` provides a robust and flexible solution to convert almost any HTML content into a structured RSS format.
10+
11+
Started in 2018, the project has evolved into a comprehensive suite of tools designed to help you create and consume RSS feeds effortlessly.
12+
13+
---
14+
15+
## Our Vision and Principles
16+
17+
Our mission is to provide a simple, powerful, and accessible tool that enables individuals and developers to create custom RSS feeds from any web page. We believe in the power of open standards and the freedom to access information on your own terms.
18+
19+
Our project is guided by these core principles:
20+
21+
- **User Empowerment:** Giving you the tools to customize your web experience.
22+
- **Simplicity & Power:** Offering an easy-to-use interface with powerful underlying capabilities.
23+
- **Open Source:** Fostering a collaborative environment where the community can contribute and improve the project.
24+
- **Reliability:** Striving for a stable and dependable tool that consistently delivers.
25+
26+
For insights into our ongoing development, project roadmap, and how you can get involved, please visit our [Get Involved]({{ '/get-involved' | relative_url }}) page.
27+
28+
---
29+
30+
### The Team
31+
32+
`html2rss` is maintained by a dedicated group of volunteers and contributors from around the world. We are passionate about open source and committed to continuously improving the project.
33+
34+
Want to join us? Check out our [Contributing Guide]({{ '/contributing' | relative_url }})!

0 commit comments

Comments
 (0)