Open BrandonClapp opened 1 week ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
The changes in this pull request primarily focus on the processComponent
function and the main execution block of the index.mjs
script. Modifications include the adjustment of the path
variable to accurately derive the local output path by removing the rootUrl
from the url
. Additionally, the extraction of the component
variable from the URL has been corrected to access the fifth segment instead of the third, ensuring proper parsing of the component name. These adjustments enhance the accuracy of local path generation and component identification.
File | Change Summary |
---|---|
index.mjs | Modified processComponent to correctly derive local output path and updated the URL parsing logic to access the fifth segment for component extraction. |
sequenceDiagram
participant User
participant Script
participant URL
User->>Script: Execute script
Script->>URL: Retrieve URL
URL-->>Script: Provide URL
Script->>Script: Process URL
Script->>Script: Derive local path
Script->>Script: Extract component name
Script-->>User: Output results
🐇 "In the code where paths align,
A rabbit hops with joy divine.
From URLs, we now extract,
The components, clear and intact.
With every change, we leap and bound,
In code's embrace, new paths are found!" 🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixes #86
There are a couple of issues here
./output/components/htmlhttps://tailwindui.com/components/application-ui/navigation/navbars
when passing thispath
const.[4]
instead of[2]
here is what we need to parse the correct segment.Summary by CodeRabbit
New Features
Bug Fixes