Skip to content

Commit

Permalink
docs: remove toc from first tool guide and add unique ids to markdown
Browse files Browse the repository at this point in the history
headers

- The default table of contents is incompatible with tabs, so remove it
  from the first-tool guide
- Auto-generated IDs for markdown headers in the first-tool page aren't
  unique, so generate unique IDs and inject them at snippet fetch time
- Re-fetch latest README.md files from `*-hash-tool` repos to fix
  guide doc formatting issues

Signed-off-by: Nick Hale <[email protected]>
  • Loading branch information
njhale committed Nov 14, 2024
1 parent 3b6f500 commit fd65a71
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 215 deletions.
18 changes: 11 additions & 7 deletions docs/docs/03-guides/01-first-tool.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
hide_table_of_contents: true
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Expand All @@ -14,16 +18,16 @@ The following guides will show you how to write and package custom Tools in Pyth
unleashing the full potential of your Agents by enabling them to integrate with any data source, service,
or platform with just a few lines of code.

<Tabs>
<TabItem value="python" label="Python" default>
<PythonHashToolReadme />
<Tabs queryString="language">
<TabItem value="python" label="Python" id="python-tab">
<PythonHashToolReadme />
</TabItem>

<TabItem value="node" label="Node.js" default>
<NodeHashToolReadme />
<TabItem value="node" label="Node.js" id="node-tab">
<NodeHashToolReadme />
</TabItem>

<TabItem value="go" label="Go" default>
<GoHashToolReadme />
<TabItem value="go" label="Go" id="go-tab">
<GoHashToolReadme />
</TabItem>
</Tabs>
Loading

0 comments on commit fd65a71

Please sign in to comment.