-
Notifications
You must be signed in to change notification settings - Fork 141
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
Include first 6 lines of the source code #9
Comments
Separate page per hook? Then it would be possible to include whole text. For example, https://usehooks.com/useDarkMode/ |
@stereobooster yeah, either a separate page or a section that's collapsed and can be expanded. The issue though is that some hooks might have multiple hundred lines of code. Also is it done on build time or do we fetch it on demand? An iFrame of that Github file could also do it. |
Let's limit scope. We will care only about hooks :
How can we get source, and how we will keep it in sync?...to be continued |
sounds good to me! Regarding how we can get the source. In every Hook object we could link to the raw file. During build time fetch it and include the raw text. We could trigger a build every hour or two to keep it up to date. What do you think? |
yes good idea. I don't think we need to trigger every two hours more like once a day - once a week (but this can be configured). Metadata and information that can be extractedGithub link - stars, forks, open issues, last updated etc Script to extract data
|
We have link to raw files (for some hooks) and we already fetch source to detect subhooks on each CI build, just in case anybody wants to pick up this task |
For files that have the raw source ( |
@stereobooster I guess I’ll pick it up |
@dmitryrn cool experiment. maybe rather showing the first 6 lines of code it would be good to have some insights on how many lines there are and possibly expand it to see the source? What do you think? (keep in mind this are rough thoughts and need experimentation) |
No description provided.
The text was updated successfully, but these errors were encountered: