Skip to content

Commit

Permalink
List -> UkList
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac-Flath committed Nov 29, 2024
1 parent a0c9ea5 commit 2990829
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/api_reference/api_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from fasthtml.common import *
from fh_frankenui.core import *
from nbdev.showdoc import *
import inspect
from utils import create_flippable_card, fn2code_string
from enum import EnumType
from collections.abc import Callable
Expand All @@ -12,8 +11,6 @@
Any variable starting with docs_ is a function that generates a section of the API reference.
These are automatically added to the docs sidebar so you don't have to do anything other than add the function using create_doc_section.
'''

# Utilities
Expand Down Expand Up @@ -314,11 +311,11 @@ def team_member(name, role, location="Remote"):

def ex_lists():
list_options = [(style,str(cls)) for style,cls in ListT.__members__.items()]
lists = [Div(H4(f"{style} List:"), List(Li("Item 1"), Li("Item 2"), cls=cls)) for style, cls in list_options]
lists = [Div(H4(f"{style} List:"), UkList(Li("Item 1"), Li("Item 2"), cls=cls)) for style, cls in list_options]
return Grid(*lists)

docs_lists = create_doc_section(
List,
UkList,
fn2code_string(ex_lists),
ListT,
title="Lists")
Expand Down

0 comments on commit 2990829

Please sign in to comment.