Repository navigation
feat(website): add project website - #376
Conversation
|
PR too large: 24025 lines added (limit: 500). Please split into smaller PRs. Add |
|
The large change is expected. |
b7c1d75 to
9ab0f8d
Compare
praxis-website-demo.mov |
|
I think this is a solid website: landing page, docs and blog foundation. We can iterate on some design aspects if we want later, but I went with the current logo color's scheme as a building identity block. |
the mono repo approach is helpful in various ways:
still want to go with a different repo? |
eb823d3 to
a412c1c
Compare
|
i am definitely preferential towards monorepo. |
3f84640 to
bd44e5d
Compare
shaneutt
left a comment
There was a problem hiding this comment.
Generally looks good. I'm not particularly fond of the monorepo approach, but it is relatively simple to change later. I can see some things we could tweak, but those are just as easily if not better as follow-up iterations so let's do that.
Approved once all comments are resolved.
1e36bd3 to
9e91b9d
Compare
praxis-bot
left a comment
There was a problem hiding this comment.
PR Review
Summary: Adds a Docusaurus 3 website with landing page, documentation restructuring, examples showcase, blog, and a GitHub Actions deployment workflow.
Overall: The website infrastructure is well-structured. Docs content is comprehensive, technically accurate, and well-organized for the Docusaurus sidebar. The paths-ignore additions to existing workflows are correctly applied. There are several smaller issues around consistency, a broken link, and some .gitignore scope concerns.
| Severity | Count |
|---|---|
| Medium | 4 |
| Small | 4 |
| Nit | 2 |
Findings without inline placement
- [Small]
.gitignore: The additions of.superpowers/and.gstack/appear to be personal tool directories unrelated to the website feature. These should either be in a separate commit/PR or moved to a personal global gitignore (~/.gitignore_global). - [Small]
.gitignore: The old patterndocs/**/with!docs/and!docs/proposals/gitignored all non-markdown content in doc subdirectories. The new pattern only ignoresdocs/superpowers/. This is intentional (to allow_category_.jsonfiles), but it also means any future non-markdown files accidentally placed underdocs/will now be tracked. Consider a more targeted approach if you want to keep the safety net. - [Nit]
website/README.mdis the default Docusaurus template referencingyarncommands throughout, but the project usesnpm(the workflow runsnpm ci,package-lock.jsonis committed). Either update the README to referencenpmor remove it since theMakefiletargets (make website,make website-dev) are the documented entry points.
| @@ -0,0 +1,60 @@ | |||
| name: Deploy Website | |||
There was a problem hiding this comment.
[Small] All other workflow files in this repository use the .yaml extension. This file uses .yml. For consistency, rename to website.yaml.
| - 'examples/**' | ||
| - '.github/workflows/website.yml' | ||
| workflow_dispatch: | ||
| inputs: {} |
There was a problem hiding this comment.
[Nit] inputs: {} is unnecessary for workflow_dispatch. The empty object serves no purpose; either remove the inputs key entirely or drop the whole line:
workflow_dispatch:| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: website/build |
There was a problem hiding this comment.
[Medium] The deploy job uses actions/deploy-pages@v4 which deploys to the praxis-proxy/praxis repo's GitHub Pages. But the PR description says deployment is to praxis.fast (the CNAME file confirms this). GitHub Pages deployment from this repo would conflict if the organization also has praxis-proxy.github.io or another repo configured for Pages. Verify that the GitHub Pages source for this repo is correctly configured to the github-pages environment, and that no other repo in the org claims the same custom domain.
| "@docusaurus/core": "3.10.1", | ||
| "@docusaurus/faster": "3.10.1", | ||
| "@docusaurus/preset-classic": "3.10.1", | ||
| "@easyops-cn/docusaurus-search-local": "^0.55.1", |
There was a problem hiding this comment.
[Medium] Several dependencies use wide caret ranges (^0.55.1, ^3.0.0, ^2.0.0, ^19.0.0). While the package-lock.json pins exact versions, the broad ranges mean npm install (without --ci) could pull in a different minor/patch version. Consider tightening these ranges, especially for react and react-dom where ^19.0.0 would accept any 19.x, and for @easyops-cn/docusaurus-search-local where ^0.55.1 in a 0.x range means any 0.55.x or higher minor (semver treats 0.x differently).
Note: caret on a 0.x dependency (^0.55.1) is equivalent to >=0.55.1 <0.56.0 in npm, so it is minor-locked. This is less risky than it appears, but still worth noting.
| - [Benchmarks](/docs/development/benchmarks) | ||
|
|
||
| For larger changes, open a [discussion](https://github.com/praxis-proxy/praxis/discussions) and follow the | ||
| [proposal process](https://github.com/praxis-proxy/praxis/blob/main/docs/proposals.md). |
There was a problem hiding this comment.
[Medium] Broken link: this points to docs/proposals.md on the main branch, but this PR renames that file to docs/development/proposals.md. The URL should be updated:
[proposal process](https://github.com/praxis-proxy/praxis/blob/main/docs/development/proposals.md)Alternatively, use a Docusaurus relative link: [proposal process](/docs/development/proposals).
|
|
||
| useEffect(() => { | ||
| const url = `https://raw.githubusercontent.com/praxis-proxy/praxis/main/${example.path}`; | ||
| fetch(url) |
There was a problem hiding this comment.
[Medium] Fetching example YAML from raw.githubusercontent.com at runtime means the examples page will show the main branch content, not necessarily the version matching the deployed website. If a deployment happens from a commit where examples have changed but the raw content hasn't updated yet (GitHub raw content caching is ~5 minutes), users could see stale or mismatched content. This is likely acceptable for a project website, but worth documenting in a comment.
| }; | ||
|
|
||
| return ( | ||
| <div className={styles.overlay} onClick={onClose}> |
There was a problem hiding this comment.
[Small] The overlay backdrop onClick={onClose} will close the overlay when clicking anywhere on the backdrop, which is good UX. However, there is no focus trap: a keyboard user who tabs past the close button will tab into the page content behind the overlay. Consider adding a focus trap for accessibility, or at minimum set aria-modal="true" on the overlay panel.
| @@ -0,0 +1,20 @@ | |||
| --- | |||
There was a problem hiding this comment.
[Small] The blog post filename uses 2024-01-01 but the current date is 2026. Unless the project actually started its blog in January 2024, this date is misleading. Consider using the actual merge date or a more accurate date.
|
|
||
| ```text | ||
| HTTP --> praxis-protocol/http --> Pingora | ||
| TCP --> praxis-protocol/tcp --> Pingora |
There was a problem hiding this comment.
[Nit] Minor grammar: "it's intended" reads as informal. Consider: "The adapter design enables adding new protocols by writing new adapters, and supports multiple implementations of a single protocol that can be swapped via build features or runtime configuration."
9e91b9d to
5abb055
Compare
|
Missing Signed-off-by: 5abb055. All commits require sign-off (via |
5abb055 to
9437b10
Compare
Docusaurus 3 site with landing page, documentation, examples showcase, and blog. The website builds and deploys directly from this repository via GitHub Actions. Docs live in docs/ as the single source of truth. The site is served at praxis.fast through GitHub Pages. - Landing page with animated filter pipeline visualization - Documentation restructured into categories with sidebar icons - Interactive examples page with 82 YAML configs and overlay viewer - Blog with editorial post styling - Local search, responsive design, dark theme - GitHub Actions workflow for automated deployment on push to main Fixes praxis-proxy/praxis-proxy.github.io#1 Signed-off-by: Sébastien Han <[email protected]>
…raxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]>
511696c to
2d6c79e
Compare
shaneutt
left a comment
There was a problem hiding this comment.
Let's move forward with what we have, so we don't have to continually patch it against main. I'm considering moving this to its own repository soon, but that doesn't need to hold us up from getting the content landed for the moment.
Docusaurus 3 site with documentation, examples showcase, and blog. Migrated from praxis-proxy/praxis#376. Signed-off-by: Shane Utt <[email protected]>
This reverts commit 70c246a. The website has been moved to its own repository. Signed-off-by: Shane Utt <[email protected]>
* feat(website): add project website Docusaurus 3 site with landing page, documentation, examples showcase, and blog. The website builds and deploys directly from this repository via GitHub Actions. Docs live in docs/ as the single source of truth. The site is served at praxis.fast through GitHub Pages. - Landing page with animated filter pipeline visualization - Documentation restructured into categories with sidebar icons - Interactive examples page with 82 YAML configs and overlay viewer - Blog with editorial post styling - Local search, responsive design, dark theme - GitHub Actions workflow for automated deployment on push to main Fixes praxis-proxy/praxis-proxy.github.io#1 Signed-off-by: Sébastien Han <[email protected]> * fix(ci): fix bash syntax error and regex bug in conventions workflow (praxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]> --------- Signed-off-by: Sébastien Han <[email protected]> Co-authored-by: Shane Utt <[email protected]>
This reverts commit 70c246a. The website has been moved to its own repository. Signed-off-by: Shane Utt <[email protected]>
Summary
Adds a Docusaurus 3 website for the Praxis project that builds and deploys directly from this repository via GitHub Actions.
docs/into categories (Getting Started, Architecture, Configuration, Filters, Protocols, Security, Development) with sidebar icons and local searchpraxis.faston push to main whenwebsite/,docs/, orexamples/changedocs/as the single source of truth — no duplication between repo docs and website contentFixes praxis-proxy/praxis-proxy.github.io#1