feat: Implement static component examples documentation generator#3
feat: Implement static component examples documentation generator#3raitucarp wants to merge 6 commits into
Conversation
- Added Param method to Page struct for retrieving URL path parameters. - Implemented static generation route definition logic in `examples/docs` using `static_paths()`. - Dynamically generated alias imports and mapping for `examples/docs/generated_examples.go` using a builder pattern. - Updated docs base path to `/gomix/docs` according to user specification. - Setup pre-rendered layouts with components and mocked out base components for visually demonstrating Gomix capabilities. - Added all component route combinations explicitly to `static_paths` for static site generation to correctly execute against them. Co-authored-by: raitucarp <163585+raitucarp@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Added Param method to Page struct for retrieving URL path parameters. - Implemented static generation route definition logic in `examples/docs` using `static_paths()`. - Dynamically generated alias imports and mapping for `examples/docs/generated_examples.go` using a builder pattern. - Updated docs base path to `/gomix/docs` according to user specification. - Setup pre-rendered layouts with components and mocked out base components for visually demonstrating Gomix capabilities. - Added all component route combinations explicitly to `static_paths` for static site generation to correctly execute against them. - Changed layout primitives to use Gomix `VStack` and `Heading` inside examples for better Chakra UI emulation. - Removed required `-ssg` parameter flag; generation is now default output logic for docs rendering path. - Created GitHub Actions workflow `docs.yml` to automatically regenerate and deploy GitHub Pages to user repository. Co-authored-by: raitucarp <163585+raitucarp@users.noreply.github.com>
- Added Param method to Page struct for retrieving URL path parameters. - Implemented static generation route definition logic in `examples/docs` using `static_paths()`. - Dynamically generated alias imports and mapping for `examples/docs/generated_examples.go` using a builder pattern. - Updated docs base path to `/gomix/docs` according to user specification. - Setup pre-rendered layouts with components and mocked out base components for visually demonstrating Gomix capabilities. - Added all component route combinations explicitly to `static_paths` for static site generation to correctly execute against them. - Changed layout primitives to use Gomix `VStack` and `Heading` inside examples for better Chakra UI emulation. - Created `componentPlayground` wrapper to visually display variants, sizes, and default usages for components inside `examples/docs/generated_examples.go`. - Removed required `-ssg` parameter flag; generation is now default output logic for docs rendering path. - Created GitHub Actions workflow `docs.yml` to automatically regenerate and deploy GitHub Pages to user repository. Co-authored-by: raitucarp <163585+raitucarp@users.noreply.github.com>
…ppers - Replaced simplified switch statement with deeply modularized package logic (`examples/docs/pages/*`) - Generated isolated documentation structure spanning 40+ pages representing each component fully. - Recreated Chakra UI v3 layout primitives inside `shared.go` with Playground structures allowing rich variations. - Dynamically inferred props table and structured method implementations. - Refined routing execution, omitting dependencies on bare tags (`div`, `h1`), using purely Gomix constructs. - Removed `-ssg` flag execution requirements from `main.go`, enforcing default behavior. - Injected fully functional `.github/workflows/docs.yml` auto-deployment integration. Co-authored-by: raitucarp <163585+raitucarp@users.noreply.github.com>
…ppers - Replaced simplified switch statement with deeply modularized package logic (`examples/docs/pages/*`) - Generated isolated documentation structure spanning 40+ pages representing each component fully. - Recreated Chakra UI v3 layout primitives inside `shared.go` with Playground structures allowing rich variations. - Dynamically inferred props table and structured method implementations. - Refined routing execution, omitting dependencies on bare tags (`div`, `h1`), using purely Gomix constructs. - Fixed backtick string literals interpreting newlines physically inside rendering blocks by parsing correctly into pure strings. - Refactored aliasing for comprehensive documentation implementation directly echoing the `gomix/components/*` usage standards. Co-authored-by: raitucarp <163585+raitucarp@users.noreply.github.com>
…ppers - Replaced simplified switch statement with deeply modularized package logic (`examples/docs/pages/*` moved directly to `examples/docs/*`) - Generated isolated documentation structure spanning 40+ files representing each component fully. - Recreated Chakra UI v3 layout primitives inside `shared.go` with Playground structures allowing rich variations. - Dynamically inferred props table and structured method implementations directly parsing component structs. - Refined routing execution, omitting dependencies on bare tags (`div`, `h1`), using purely Gomix constructs. - Fixed backtick string literals interpreting newlines physically inside rendering blocks by parsing correctly into pure strings. - Refactored aliasing for comprehensive documentation implementation directly echoing the `gomix/components/*` usage standards relying purely on the centralized `alias.go`. Co-authored-by: raitucarp <163585+raitucarp@users.noreply.github.com>
The task successfully fulfills all requests of constructing documentation templates for gomix examples using the existing codebase components as a baseline. The default gomix SSG functionality is used to render content down to HTML, utilizing the newly introduced
Page.Paramfunctionality to identify wildcard parameters forComponentGallery. All required documentation endpoints are statically configured using.Static(...)mapping.PR created automatically by Jules for task 8251008541424096183 started by @raitucarp