-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(docs): normalize docs scaffold #59
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
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
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1,61 +1,22 @@ | ||
| # rinha2-back-end-rust — GitHub Pages | ||
| # Docs | ||
|
|
||
| Astro 5 static site for the [rinha2-back-end-rust](https://github.com/jonathanperis/rinha2-back-end-rust) project. Deployed to GitHub Pages at [jonathanperis.github.io/rinha2-back-end-rust](https://jonathanperis.github.io/rinha2-back-end-rust/). | ||
|
|
||
| ## Stack | ||
|
|
||
| | Technology | Purpose | | ||
| |---|---| | ||
| | Astro 5 | Static site generator | | ||
| | React 19 | Interactive islands (docs sidebar, search, scrollspy) | | ||
| | Tailwind CSS v4 | Utility-first styling for docs components | | ||
| | `@astrojs/sitemap` | Auto-generated sitemap | | ||
|
|
||
| ## Structure | ||
|
|
||
| ``` | ||
| docs/ | ||
| ├── public/ | ||
| │ ├── images/ # Grafana/Gatling metric screenshots | ||
| │ └── reports/ # k6 stress test HTML reports (appended by CI) | ||
| └── src/ | ||
| ├── components/ | ||
| │ ├── home/ # Landing page components (Navbar, Hero, Dashboard, Footer) | ||
| │ └── docs/ # Docs page components (DocPageIsland, Sidebar, sections/) | ||
| ├── hooks/ | ||
| │ └── useScrollspy.ts | ||
| ├── layouts/ | ||
| │ └── BaseLayout.astro | ||
| ├── pages/ | ||
| │ ├── index.astro # Landing page | ||
| │ └── docs.astro # Documentation page | ||
| └── styles/ | ||
| └── globals.css | ||
| ``` | ||
| Astro static site deployed to GitHub Pages. | ||
|
|
||
| ## Commands | ||
|
|
||
| Run from this directory (`docs/`): | ||
|
|
||
| | Command | Action | | ||
| |---|---| | ||
| | `npm install` | Install dependencies | | ||
| | `npm run dev` | Start dev server at `localhost:4321` | | ||
| | `npm run build` | Build to `./out/` | | ||
| | `npm run preview` | Preview the production build locally | | ||
| | `bun install` | Install dependencies | | ||
| | `bun run dev` | Start dev server | | ||
| | `bun run build` | Build to `./out/` | | ||
| | `bun run preview` | Preview production build locally | | ||
|
|
||
| ## Environment | ||
|
|
||
| Copy `.env.example` to `.env` and fill in your values: | ||
|
|
||
| ```sh | ||
| cp .env.example .env | ||
| ``` | ||
| Copy `.env.example` to `.env` and fill in local values when needed. | ||
|
|
||
| | Variable | Description | | ||
| |---|---| | ||
| | `PUBLIC_GA_ID` | Google Analytics 4 Measurement ID | | ||
|
|
||
| ## Deployment | ||
|
|
||
| Deployed automatically on every push to `main` via `.github/workflows/deploy.yml`. The `PUBLIC_GA_ID` secret must be set in the repository's GitHub Actions secrets. | ||
| | `PUBLIC_GA_ID` | Optional Google Analytics 4 Measurement ID | | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: jonathanperis/rinha2-back-end-rust
Length of output: 336
Address missing Bun configuration in docs directory.
The scripts (
dev,build,preview) exist indocs/package.jsonand Bun can execute them, but Bun is not explicitly configured as the package manager:packageManagerfield is set inpackage.json(best practice:"packageManager": "bun@x.x.x")bun.lockblockfile existsWhile
bun run <script>will work, consider adding explicit Bun configuration to match the tool's intent and ensure consistency across the project.🤖 Prompt for AI Agents