You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This involves making them great. Some problems are the documentation shows examples that don't translate to markdown at all! Sometimes text transfers from them which makes it even worse. So figuring out how to generate great markdown files for these would be great. Once the basics are done this can go as far as we want on trying things out (ie auto screenshotting generated content examples to embed into LLMs.txt!?!)
API Reference pages are created in this function
defrender_content(c):
"Renders content by type"ifisinstance(c, str): returnrender_md(c) # Strings are rendered as markdownelifisinstance(c, EnumType): returnenum_to_html_table(c) # Enums are rendered as tableselifisinstance(c, FT): returnc# FastHTML tags are rendered as themselveselifisinstance(c, tuple): # Tuples are rendered as cards with source and output that can be flippedextra_cls=c[2] iflen(tuple(c)) ==3elseNonereturncreate_flippable_card(c[0], c[1], extra_cls)
elifisinstance(c, Callable): # Callables are rendered as documentation via show_docreturnshow_doc(c)
else: returnc
I suspect the right approach is to make a function like this for generating the markdown by having different types of things write different text, rather than trying to auto-convert after the fact.
The text was updated successfully, but these errors were encountered:
This involves making them great. Some problems are the documentation shows examples that don't translate to markdown at all! Sometimes text transfers from them which makes it even worse. So figuring out how to generate great markdown files for these would be great. Once the basics are done this can go as far as we want on trying things out (ie auto screenshotting generated content examples to embed into LLMs.txt!?!)
API Reference pages are created in this function
I suspect the right approach is to make a function like this for generating the markdown by having different types of things write different text, rather than trying to auto-convert after the fact.
The text was updated successfully, but these errors were encountered: