-
-
Notifications
You must be signed in to change notification settings - Fork 203
feat: auto-generate configuration from source code#518
feat: auto-generate configuration from source code #518
Conversation
✅ Deploy Preview for biomejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
ematipico
commented
Jun 6, 2024
Sec-ant
commented
Jun 7, 2024
The drawback: we lose many examples
The con: we keep one source of truth
Aren't "drawback" and "con" the same thing? 😄
I would prefer keeping the options and examples together so I don't have to jump back and forth across pages. And the preview link further determined my thought.
So it seems richer markdown doc comments the way to go. But I get the impression that pulldown-cmark doesn't handle rich markups very well. 🤔
Aren't "drawback" and "con" the same thing? 😄
That's how damanged my brain is 😆
I would prefer keeping the options and examples together so I don't have to jump back and forth across pages. And the preview link further determined my thought.
Yeah, that's what the original PR attempts to do, and I don't mind moving better docs and examples in the source code.
So it seems richer markdown doc comments the way to go. But I get the impression that pulldown-cmark doesn't handle rich markups very well. 🤔
I don't think we need pulldown-cmark for now. I think we just need to take the doc comments as they are, and write them.
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 noticed a typo in my original function name... 🙏 It should be generate_markdown_header() and sorry for the mistake.
Sec-ant
commented
Jun 7, 2024
I don't think we need pulldown-cmark for now. I think we just need to take the doc comments as they are, and write them.
Oh yes, I was wrong.
Uh oh!
There was an error while loading. Please reload this page.
Summary
This is my attempt to create the configuration reference page from source code.
The drawback: we lose many examples
The con: we keep one source of truth
I see two options here:
What do you think?
Note
The source code is still junk and needs some polish. For now I would like feedback on what we would like to do and how