Skip to content

Commit

Permalink
Merge pull request #53 from AnswerDotAI/llmstxt
Browse files Browse the repository at this point in the history
Update llms.txt to include api refs and guides as optionals
  • Loading branch information
ncoop57 authored Feb 6, 2025
2 parents f98ac8a + 80084cb commit 72ce339
Show file tree
Hide file tree
Showing 3 changed files with 533 additions and 505 deletions.
10 changes: 8 additions & 2 deletions docs/createllms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ def create_llms_txt():
base = "https://monsterui.answer.ai"
examples = [f for f in Path('examples').glob('*.py') if not f.name.startswith('__') and f.name.endswith('.py')]
example_links = [f"[{f.stem.title()}]({base}/{f.name[:-3]}/md)" for f in examples]
reference_fns = L([o for o in dir(api_reference) if o.startswith('docs_')])
api_links = [f"[{fname2title(f)}]({base}/api_ref/{f}/md)" for f in reference_fns]


# Create content
content = [
"# MonsterUI Documentation",
Expand All @@ -22,7 +23,12 @@ def create_llms_txt():
'- [API List](https://raw.githubusercontent.com/AnswerDotAI/MonsterUI/refs/heads/main/docs/apilist.txt)',
"",
"## Examples",
*[f'- {a}' for a in example_links]
*[f'- {a}' for a in example_links],
"",
"## Optional",
*[f'- {a}' for a in api_links],
"- [Layout](https://monsterui.answer.ai/tutorial_layout/md)",
"- [Spacing](https://monsterui.answer.ai/tutorial_spacing/md)",
]

# Write to file
Expand Down
Loading

0 comments on commit 72ce339

Please sign in to comment.