Skip to content

Commit

Permalink
Merge pull request #67 from SandhyaKaliappan/main
Browse files Browse the repository at this point in the history
[Docs] Fix tag filtering in examples section
  • Loading branch information
harishmohanraj authored Jan 2, 2025
2 parents 30506cb + 5304b5d commit 9178ed2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 1 addition & 4 deletions website/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,13 @@
{
"group": "agentchat.realtime_agent",
"pages": [
"docs/reference/agentchat/realtime_agent/client",
"docs/reference/agentchat/realtime_agent/function_observer",
"docs/reference/agentchat/realtime_agent/oai_realtime_client",
"docs/reference/agentchat/realtime_agent/realtime_agent",
"docs/reference/agentchat/realtime_agent/realtime_client",
"docs/reference/agentchat/realtime_agent/realtime_observer",
"docs/reference/agentchat/realtime_agent/twilio_audio_adapter",
"docs/reference/agentchat/realtime_agent/twilio_observer",
"docs/reference/agentchat/realtime_agent/websocket_audio_adapter",
"docs/reference/agentchat/realtime_agent/websocket_observer"
"docs/reference/agentchat/realtime_agent/websocket_audio_adapter"
]
},
"docs/reference/agentchat/agent",
Expand Down
4 changes: 3 additions & 1 deletion website/process_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,9 @@ def post_process_mdx(rendered_mdx: Path, source_notebooks: Path, front_matter: d
# If there is front matter in the mdx file, we need to remove it
if content.startswith("---"):
front_matter_end = content.find("---", 3)
front_matter = yaml.safe_load(content[4:front_matter_end])
mdx_front_matter = yaml.safe_load(content[4:front_matter_end])
# Merge while preserving original values
front_matter = {**front_matter, **mdx_front_matter}
content = content[front_matter_end + 3 :]

# Clean heading IDs using regex - matches from # to the end of ID block
Expand Down
11 changes: 11 additions & 0 deletions website/snippets/components/GalleryPage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ export const GalleryPage = ({

return (
<div className="examples-gallery-container">
<select
multiple
className="tag-filter"
data-placeholder="Filter by tags"
>
{allTags.map(tag => (
<option key={tag} value={tag}>
{tag}
</option>
))}
</select>
<CardGroup cols={3}>
{galleryItems.map((item, index) => (
<Card key={index} href={item.link}>
Expand Down

0 comments on commit 9178ed2

Please sign in to comment.