-
Notifications
You must be signed in to change notification settings - Fork 1
docs(web): align deployment and operator guidance #1115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
56e9b18
docs(web): align deployment and operator guidance
gildesmarais 07af6fa
docs: align naming
gildesmarais 4c5d59d
docs: align heavy-usage auto quality guidance and web retry semantics
gildesmarais 50d63e0
docs: relax compose startup env requirements
gildesmarais 64d1129
docs: reconcile deployment env guidance
gildesmarais c4f227e
docs: env + strategy adjustment
gildesmarais 3c96302
chore(deps): update ruby deps
gildesmarais 6ccc428
docs: migrate code blocks to Starlight Code and fix YAML indentation
gildesmarais 0f70291
docs: resolve PR feedback on deployment and snippet correctness
gildesmarais 251cf9e
docs: standardize compose env_file object syntax
gildesmarais d2857fd
.
gildesmarais File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| # Repository Guidelines | ||
|
|
||
| ## Scope and Ownership | ||
|
|
||
| This repository (`html2rss.github.io/`) is the public docs and feed-directory site built with Astro/Starlight. | ||
| Classify most work here as `docs`. | ||
|
|
||
| What this repo owns: | ||
|
|
||
| - docs content and navigation under `src/content/docs/` | ||
| - docs-specific components and styling under `src/components/` | ||
| - feed-directory presentation and client behavior | ||
| - generated docs data consumed by the site (`src/data/configs.json`) | ||
|
|
||
| What this repo does not own: | ||
|
|
||
| - runtime extractor behavior and CLI semantics (`html2rss/`) | ||
| - web API behavior and OpenAPI generation (`html2rss-web/`) | ||
| - feed YAML catalog definitions (`html2rss-configs/`) | ||
|
|
||
| When docs describe behavior from other repos, treat those repos as source-of-truth and update docs to match them. | ||
|
|
||
| ## Cross-Repo Contracts | ||
|
|
||
| Before substantial edits, state cross-repo context in your notes: | ||
|
|
||
| - Source-of-truth repo | ||
| - Downstream consumer repo(s) | ||
| - Whether this change needs coordinated follow-up outside `html2rss.github.io/` | ||
|
|
||
| Common contracts: | ||
|
|
||
| - Feed directory data comes from `html2rss-configs` via `bin/data-update`. | ||
| - Ruby gem docs should match `html2rss` behavior and CLI output. | ||
| - Web application docs should match `html2rss-web` behavior and published OpenAPI. | ||
|
|
||
| If a cross-repo behavior changed but upstream is not updated yet, document the gap clearly instead of inventing new behavior. | ||
|
|
||
| ## Generated Artifacts | ||
|
|
||
| Treat `src/data/configs.json` as generated. | ||
|
|
||
| - Do not hand-edit it. | ||
| - Regenerate with repo-native commands: | ||
| - `make update` | ||
| - or `bin/data-update` (after dependencies are installed) | ||
| - `bin/data-update` reads packaged configs (from `html2rss-configs`) and writes `src/data/configs.json`. | ||
|
|
||
| If a change only affects generated data, include the source change rationale in the PR description. | ||
|
|
||
| ## Build, Test, and Dev Commands | ||
|
|
||
| Run commands from `html2rss.github.io/`: | ||
|
|
||
| - `make setup` installs dependencies and refreshes generated data | ||
| - `make dev` runs Astro locally | ||
| - `make build` builds production output | ||
| - `make lint` checks formatting | ||
| - `make lintfix` applies formatting fixes | ||
| - `make update` refreshes feed-directory data from packaged configs | ||
|
|
||
| Preferred verification flow for docs/content changes: | ||
|
|
||
| 1. Run targeted check(s) first (`make lint` or `make build`). | ||
| 2. Run the broader check set before PR (`make lint` and `make build`). | ||
| 3. If feed directory or config references changed, run `make update` and verify resulting diffs. | ||
|
|
||
| ## Docs Authoring Rules | ||
|
|
||
| ### Code Snippets | ||
|
|
||
| In docs content (`src/content/docs/**`) and docs-supporting components: | ||
|
|
||
| - Do not use triple-backtick fenced code blocks. | ||
| - Always render snippets with the `<Code>` component. | ||
| - Use this import: | ||
| `import { Code } from '@astrojs/starlight/components';` | ||
| - Do not use: | ||
| `import Code from "astro/components/Code.astro";` | ||
|
|
||
| ### Accuracy Rules | ||
|
|
||
| - Prefer concrete, verifiable statements over aspirational wording. | ||
| - Keep repo and path references explicit when guidance is cross-repo. | ||
| - When referencing commands that belong to another repo, include that repo directory in the command example. | ||
|
|
||
| ## Commit and PR Expectations | ||
|
|
||
| - Keep each commit scoped to one logical docs change. | ||
| - Do not mix unrelated changes or unrelated generated diffs. | ||
| - In PRs, call out: | ||
| - cross-repo assumptions | ||
| - generated files updated | ||
| - verification commands run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Domain & routing | ||
| CADDY_HOST=example.com | ||
|
|
||
| # Core runtime | ||
| RACK_ENV=production | ||
|
|
||
| # Security | ||
| # Generate with: openssl rand -hex 32 | ||
| HTML2RSS_SECRET_KEY=replace-with-64-hex-characters-generated-by-openssl-rand-hex-32 | ||
|
|
||
| # Authenticated health endpoint token | ||
| # Required by the documented Compose stack. | ||
| # If you build a custom stack and probe only /api/v1/health/live and /api/v1/health/ready, | ||
| # you can omit this value. | ||
| HEALTH_CHECK_TOKEN=replace-with-strong-health-token | ||
|
|
||
| # Auto source (optional; keep false unless you need automatic feed generation) | ||
| AUTO_SOURCE_ENABLED=false | ||
|
|
||
| # Observability (optional) | ||
| #SENTRY_DSN= | ||
|
|
||
| # Performance tuning (override defaults only when needed) | ||
| WEB_CONCURRENCY=2 | ||
| WEB_MAX_THREADS=5 | ||
| RACK_TIMEOUT_SERVICE_TIMEOUT=15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.