-
Notifications
You must be signed in to change notification settings - Fork 570
docs: start restructuring and add local build automation #1528
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
Conversation
Greptile OverviewGreptile SummaryThis PR adds local documentation build automation and begins restructuring the documentation organization. The changes include new build scripts ( Key improvements:
Issues found:
|
| Filename | Score | Overview |
|---|---|---|
| Makefile | 5/5 | Added docs-serve target to enable live documentation server with auto-rebuild functionality, along with corresponding help text |
| docs/serve.py | 5/5 | New Python script to run sphinx-autobuild with configurable port, host, and browser options, includes proper error handling |
| pyproject.toml | 5/5 | Added sphinx-design and sphinx-autobuild dependencies to the docs group for enhanced documentation features and live server |
| docs/index.md | 3/5 | Restructured main documentation page with new organization, removed old content inclusion, added placeholder "TBD" text, moved getting-started.md to tutorials section |
| docs/overview.md | 2/5 | New comprehensive overview with use cases and benefits, but contains broken references to deleted getting-started.md file |
| docs/how-it-works.md | 4/5 | New landing page with card-based navigation to guardrails process and architecture guides, includes repetitive introductory text |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Make as Makefile
participant Script as serve.py/serve.sh
participant Sphinx as sphinx-autobuild
participant Browser as Web Browser
Dev->>Make: make docs-serve
Make->>Script: cd docs && run sphinx-autobuild
Script->>Sphinx: Start with config (port 8000, watch patterns)
Sphinx->>Sphinx: Initial build from source
Sphinx->>Browser: Open http://127.0.0.1:8000
Browser->>Dev: Display documentation
loop Live Development
Dev->>Sphinx: Save .md, .rst, or .py file
Sphinx->>Sphinx: Detect change (1s debounce)
Sphinx->>Sphinx: Rebuild affected pages
Sphinx->>Browser: Push update via WebSocket
Browser->>Browser: Auto-refresh with new content
end
Dev->>Sphinx: Ctrl+C
Sphinx->>Make: Server stopped
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.
13 files reviewed, 4 comments
Documentation preview |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
fff2055 to
bd11671
Compare
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.
Thank you @miyoungc , nice job 🚀 I agree - better to merge it and iterate further from there.
p.s. I still see AlignScore under "Integration" section but that could be fixed later.
cparisien
left a comment
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.
I really like the new structure. There are a lot of changes here so let's merge with what we have and then iterate with PRs from the eng team. Thanks a lot Miyoung for this nice work!
Please feel free to move the AlignScore to a better place, or let me know where it should be. |
* start restructuring and add local build automation * refresh poetry lock * WIP new IA implementation * more restructure and script to auto-update cards * more work * improve * nit to stage * details * nit got to be staged * pull out use case page and add table * more improvements and extend update cards script * big improvements * polish intro a bit * small edit * incorporate devs feedback * remaining pages * more fixes * small edits * more updated and incorporate feedback * some edits * accidentally dropped file

Description
Related Issue(s)
Checklist