Skip to content

Commit 3d8a041

Browse files
authored
docs: fix docs linting (#1520)
1 parent 7450482 commit 3d8a041

File tree

89 files changed

+1397
-812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1397
-812
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ This project follows
2727

2828
> [!NOTE]
2929
> New contributions should always include both unit and integration tests.
30-
3130
3231
All submissions, including submissions by project members, require review. We
3332
use GitHub pull requests for this purpose. Consult
@@ -37,14 +36,14 @@ information on using pull requests.
3736
### Code reviews
3837

3938
* Within 2-5 days, a reviewer will review your PR. They may approve it, or request
40-
changes.
39+
changes.
4140
* When requesting changes, reviewers should self-assign the PR to ensure
4241
they are aware of any updates.
4342
* If additional changes are needed, push additional commits to your PR branch -
44-
this helps the reviewer know which parts of the PR have changed.
43+
this helps the reviewer know which parts of the PR have changed.
4544
* Commits will be
4645
squashed when merged.
47-
* Please follow up with changes promptly.
46+
* Please follow up with changes promptly.
4847
* If a PR is awaiting changes by the
4948
author for more than 10 days, maintainers may mark that PR as Draft. PRs that
5049
are inactive for more than 30 days may be closed.
@@ -53,12 +52,16 @@ are inactive for more than 30 days may be closed.
5352

5453
Please create an
5554
[issue](https://github.com/googleapis/genai-toolbox/issues) before
56-
implementation to ensure we can accept the contribution and no duplicated work. This issue
57-
should include an overview of the API design. If you have any questions, reach out on our
58-
[Discord](https://discord.gg/Dmm69peqjh) to chat directly with the team.
55+
implementation to ensure we can accept the contribution and no duplicated work.
56+
This issue should include an overview of the API design. If you have any
57+
questions, reach out on our [Discord](https://discord.gg/Dmm69peqjh) to chat
58+
directly with the team.
5959

6060
> [!NOTE]
61-
> New tools can be added for [pre-existing data sources](https://github.com/googleapis/genai-toolbox/tree/main/internal/sources). However, any new database source should also include at least one new tool type.
61+
> New tools can be added for [pre-existing data
62+
> sources](https://github.com/googleapis/genai-toolbox/tree/main/internal/sources).
63+
> However, any new database source should also include at least one new tool
64+
> type.
6265
6366
### Adding a New Database Source
6467

@@ -196,7 +199,7 @@ detailed description of your changes and any requests for long term testing
196199
resources.
197200

198201
* **Title:** All pull request title should follow the formatting of
199-
[Conventional
202+
[Conventional
200203
Commit](https://www.conventionalcommits.org/) guidelines: `<type>[optional
201204
scope]: description`. For example, if you are adding a new field in postgres
202205
source, the title should be `feat(source/postgres): add support for

DEVELOPER.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ cancel_hotel: <- tool name
5959
6060
Tool name is the identifier used by a Large Language Model (LLM) to invoke a
6161
specific tool.
62+
6263
* Custom tools: The user can define any name they want. The below guidelines
6364
do not apply.
6465
* Pre-built tools: The tool name is predefined and cannot be changed. It
6566
should follow the guidelines.
6667
6768
The following guidelines apply to tool names:
69+
6870
* Should use underscores over hyphens (e.g., `list_collections` instead of
6971
`list-collections`).
7072
* Should not have the product name in the name (e.g., `list_collections` instead
@@ -79,6 +81,7 @@ The following guidelines apply to tool names:
7981
Tool kind serves as a category or type that a user can assign to a tool.
8082

8183
The following guidelines apply to tool kinds:
84+
8285
* Should user hyphens over underscores (e.g. `firestore-list-collections` or
8386
`firestore_list_colelctions`).
8487
* Should use product name in name (e.g. `firestore-list-collections` over

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ To run Toolbox from binary:
175175
```
176176

177177
**NOTE:**
178-
Toolbox enables dynamic reloading by default. To disable, use the `--disable-reload` flag.
178+
Toolbox enables dynamic reloading by default. To disable, use the
179+
`--disable-reload` flag.
179180

180181
</details>
181182

@@ -194,30 +195,37 @@ us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION \
194195
```
195196

196197
**NOTE:**
197-
The `-v` flag mounts your local `tools.yaml` into the container, and `-p` maps the container's port `5000` to your host's port `5000`.
198+
The `-v` flag mounts your local `tools.yaml` into the container, and `-p` maps
199+
the container's port `5000` to your host's port `5000`.
198200

199201
</details>
200202

201203
<details>
202204

203205
<summary>Source</summary>
204206

205-
To run the server directly from source, navigate to the project root directory and run:
207+
To run the server directly from source, navigate to the project root directory
208+
and run:
206209

207210
```sh
208211
go run .
209212
```
210213

211214
**NOTE:**
212-
This command runs the project from source, and is more suitable for development and testing. It does **not** compile a binary into your `$GOPATH`. If you want to compile a binary instead, refer the [Developer Documentation](./DEVELOPER.md#building-the-binary).
215+
This command runs the project from source, and is more suitable for development
216+
and testing. It does **not** compile a binary into your `$GOPATH`. If you want
217+
to compile a binary instead, refer the [Developer
218+
Documentation](./DEVELOPER.md#building-the-binary).
213219

214220
</details>
215221

216222
<details>
217223

218224
<summary>Homebrew</summary>
219225

220-
If you installed Toolbox using [Homebrew](https://brew.sh/), the `toolbox` binary is available in your system path. You can start the server with the same command:
226+
If you installed Toolbox using [Homebrew](https://brew.sh/), the `toolbox`
227+
binary is available in your system path. You can start the server with the same
228+
command:
221229

222230
```sh
223231
toolbox --tools-file "tools.yaml"
@@ -232,7 +240,6 @@ For more detailed documentation on deploying to different environments, check
232240
out the resources in the [How-to
233241
section](https://googleapis.github.io/genai-toolbox/how-to/)
234242

235-
236243
### Integrating your application
237244

238245
Once your server is up and running, you can load the tools into your
@@ -777,6 +784,7 @@ Since the project is in a pre-release stage (version `0.x.y`), we follow the
777784
standard conventions for initial development:
778785
779786
### Pre-1.0.0 Versioning
787+
780788
While the major version is `0`, the public API should be considered unstable.
781789
The version will be incremented as follows:
782790
@@ -786,6 +794,7 @@ The version will be incremented as follows:
786794
backward-compatible bug fixes.
787795
788796
### Post-1.0.0 Versioning
797+
789798
Once the project reaches a stable `1.0.0` release, the versioning will follow
790799
the more common convention:
791800

docs/en/getting-started/configure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ etc., you could use environment variables instead with the format `${ENV_NAME}`.
2222
user: ${USER_NAME}
2323
password: ${PASSWORD}
2424
```
25+
2526
A default value can be specified like `${ENV_NAME:default}`.
2627

2728
```yaml

docs/en/getting-started/introduction/_index.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ To install Toolbox using Homebrew on macOS or Linux:
108108
```sh
109109
brew install mcp-toolbox
110110
```
111+
111112
{{% /tab %}}
112113
{{% tab header="Compile from source" lang="en" %}}
113114

@@ -138,16 +139,18 @@ Toolbox enables dynamic reloading by default. To disable, use the
138139

139140
#### Launching Toolbox UI
140141

141-
To launch Toolbox's interactive UI, use the `--ui` flag. This allows you to test tools and toolsets
142-
with features such as authorized parameters. To learn more, visit [Toolbox UI](../../how-to/toolbox-ui/index.md).
142+
To launch Toolbox's interactive UI, use the `--ui` flag. This allows you to test
143+
tools and toolsets with features such as authorized parameters. To learn more,
144+
visit [Toolbox UI](../../how-to/toolbox-ui/index.md).
143145

144146
```sh
145147
./toolbox --ui
146148
```
147149

148150
#### Homebrew Users
149151

150-
If you installed Toolbox using Homebrew, the `toolbox` binary is available in your system path. You can start the server with the same command:
152+
If you installed Toolbox using Homebrew, the `toolbox` binary is available in
153+
your system path. You can start the server with the same command:
151154

152155
```sh
153156
toolbox --tools-file "tools.yaml"
@@ -185,7 +188,8 @@ async with ToolboxClient("http://127.0.0.1:5000") as client:
185188
{{< /highlight >}}
186189

187190
For more detailed instructions on using the Toolbox Core SDK, see the
188-
[project's README](https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-core/README.md).
191+
[project's
192+
README](https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-core/README.md).
189193

190194
{{% /tab %}}
191195
{{% tab header="LangChain" lang="en" %}}
@@ -206,7 +210,8 @@ async with ToolboxClient("http://127.0.0.1:5000") as client:
206210
{{< /highlight >}}
207211

208212
For more detailed instructions on using the Toolbox LangChain SDK, see the
209-
[project's README](https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-langchain/README.md).
213+
[project's
214+
README](https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-langchain/README.md).
210215

211216
{{% /tab %}}
212217
{{% tab header="Llamaindex" lang="en" %}}
@@ -228,7 +233,8 @@ async with ToolboxClient("http://127.0.0.1:5000") as client:
228233
{{< /highlight >}}
229234

230235
For more detailed instructions on using the Toolbox Llamaindex SDK, see the
231-
[project's README](https://github.com/googleapis/genai-toolbox-llamaindex-python/blob/main/README.md).
236+
[project's
237+
README](https://github.com/googleapis/genai-toolbox-llamaindex-python/blob/main/README.md).
232238

233239
{{% /tab %}}
234240
{{< /tabpane >}}
@@ -343,7 +349,8 @@ const tools = toolboxTools.map(getTool);
343349
{{< /tabpane >}}
344350

345351
For more detailed instructions on using the Toolbox Core SDK, see the
346-
[project's README](https://github.com/googleapis/mcp-toolbox-sdk-js/blob/main/packages/toolbox-core/README.md).
352+
[project's
353+
README](https://github.com/googleapis/mcp-toolbox-sdk-js/blob/main/packages/toolbox-core/README.md).
347354

348355
#### Go
349356

@@ -590,7 +597,8 @@ func main() {
590597
{{< /tabpane >}}
591598

592599
For more detailed instructions on using the Toolbox Go SDK, see the
593-
[project's README](https://github.com/googleapis/mcp-toolbox-sdk-go/blob/main/core/README.md).
600+
[project's
601+
README](https://github.com/googleapis/mcp-toolbox-sdk-go/blob/main/core/README.md).
594602

595603
For end-to-end samples on using the Toolbox Go SDK with orchestration
596604
frameworks, see the [project's

docs/en/getting-started/local_quickstart.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ description: >
1414
This guide assumes you have already done the following:
1515

1616
1. Installed [Python 3.9+][install-python] (including [pip][install-pip] and
17-
your preferred virtual environment tool for managing dependencies e.g. [venv][install-venv]).
17+
your preferred virtual environment tool for managing dependencies e.g.
18+
[venv][install-venv]).
1819
1. Installed [PostgreSQL 16+ and the `psql` client][install-postgres].
1920

2021
[install-python]: https://wiki.python.org/moin/BeginnersGuide/Download
2122
[install-pip]: https://pip.pypa.io/en/stable/installation/
22-
[install-venv]: https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments
23+
[install-venv]:
24+
https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments
2325
[install-postgres]: https://www.postgresql.org/download/
2426

2527
### Cloud Setup (Optional)
@@ -36,9 +38,10 @@ This guide assumes you have already done the following:
3638
In this section, we will write and run an agent that will load the Tools
3739
from Toolbox.
3840

39-
{{< notice tip>}} If you prefer to experiment within a Google Colab environment,
40-
you can connect to a
41-
[local runtime](https://research.google.com/colaboratory/local-runtimes.html).
41+
{{< notice tip>}}
42+
If you prefer to experiment within a Google Colab environment, you can connect
43+
to a [local
44+
runtime](https://research.google.com/colaboratory/local-runtimes.html).
4245
{{< /notice >}}
4346

4447
1. In a new terminal, install the SDK package.
@@ -148,5 +151,6 @@ Documentation](https://github.com/googleapis/python-genai?tab=readme-ov-file#man
148151
```
149152

150153
{{< notice info >}}
151-
For more information, visit the [Python SDK repo](https://github.com/googleapis/mcp-toolbox-sdk-python).
154+
For more information, visit the [Python SDK
155+
repo](https://github.com/googleapis/mcp-toolbox-sdk-python).
152156
{{</ notice >}}

docs/en/getting-started/local_quickstart_go.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ This guide assumes you have already done the following:
1717
[install-postgres]: https://www.postgresql.org/download/
1818

1919
### Cloud Setup (Optional)
20+
2021
{{< regionInclude "quickstart/shared/cloud_setup.md" "cloud_setup" >}}
2122

2223
## Step 1: Set up your database
24+
2325
{{< regionInclude "quickstart/shared/database_setup.md" "database_setup" >}}
2426

2527
## Step 2: Install and configure Toolbox
28+
2629
{{< regionInclude "quickstart/shared/configure_toolbox.md" "configure_toolbox" >}}
2730

2831
## Step 3: Connect your agent to Toolbox
@@ -51,14 +54,12 @@ from Toolbox.
5154

5255
{{< include "quickstart/go/langchain/quickstart.go" >}}
5356

54-
5557
{{< /tab >}}
5658

5759
{{< tab header="Genkit Go" lang="go" >}}
5860

5961
{{< include "quickstart/go/genkit/quickstart.go" >}}
6062

61-
6263
{{< /tab >}}
6364

6465
{{< tab header="Go GenAI" lang="go" >}}
@@ -71,7 +72,6 @@ from Toolbox.
7172

7273
{{< include "quickstart/go/openAI/quickstart.go" >}}
7374

74-
7575
{{< /tab >}}
7676
{{< /tabpane >}}
7777

docs/en/getting-started/local_quickstart_js.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ This guide assumes you have already done the following:
1717
[install-postgres]: https://www.postgresql.org/download/
1818

1919
### Cloud Setup (Optional)
20+
2021
{{< regionInclude "quickstart/shared/cloud_setup.md" "cloud_setup" >}}
2122

2223
## Step 1: Set up your database
24+
2325
{{< regionInclude "quickstart/shared/database_setup.md" "database_setup" >}}
2426

2527
## Step 2: Install and configure Toolbox
28+
2629
{{< regionInclude "quickstart/shared/configure_toolbox.md" "configure_toolbox" >}}
2730

2831
## Step 3: Connect your agent to Toolbox
@@ -36,7 +39,8 @@ from Toolbox.
3639
npm init -y
3740
```
3841

39-
1. In a new terminal, install the [SDK](https://www.npmjs.com/package/@toolbox-sdk/core).
42+
1. In a new terminal, install the
43+
[SDK](https://www.npmjs.com/package/@toolbox-sdk/core).
4044

4145
```bash
4246
npm install @toolbox-sdk/core
@@ -59,7 +63,8 @@ npm install @google/genai
5963
{{< /tab >}}
6064
{{< /tabpane >}}
6165

62-
1. Create a new file named `hotelAgent.js` and copy the following code to create an agent:
66+
1. Create a new file named `hotelAgent.js` and copy the following code to create
67+
an agent:
6368

6469
{{< tabpane persist=header >}}
6570
{{< tab header="LangChain" lang="js" >}}
@@ -95,5 +100,6 @@ npm install @google/genai
95100
```
96101

97102
{{< notice info >}}
98-
For more information, visit the [JS SDK repo](https://github.com/googleapis/mcp-toolbox-sdk-js).
103+
For more information, visit the [JS SDK
104+
repo](https://github.com/googleapis/mcp-toolbox-sdk-js).
99105
{{</ notice >}}

docs/en/getting-started/quickstart/shared/cloud_setup.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ If you plan to use **Google Cloud’s Vertex AI** with your agent (e.g., using
55
local development:
66

77
1. [Install the Google Cloud CLI](https://cloud.google.com/sdk/docs/install)
8-
1. [Set up Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment)
8+
1. [Set up Application Default Credentials
9+
(ADC)](https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment)
910
1. Set your project and enable Vertex AI
1011

1112
```bash
1213
gcloud config set project YOUR_PROJECT_ID
1314
gcloud services enable aiplatform.googleapis.com
1415
```
1516

16-
[install-python]: https://wiki.python.org/moin/BeginnersGuide/Download
17-
[install-pip]: https://pip.pypa.io/en/stable/installation/
18-
[install-venv]: https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments
19-
[install-postgres]: https://www.postgresql.org/download/
2017
<!-- [END cloud_setup] -->

docs/en/how-to/connect-ide/alloydb_pg_admin_mcp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ description: >
1111
<link rel="canonical" href="https://cloud.google.com/alloydb/docs/create-database-with-mcp-toolbox"/>
1212
<meta http-equiv="refresh" content="0;url=https://cloud.google.com/alloydb/docs/create-database-with-mcp-toolbox"/>
1313
</head>
14-
</html>
14+
</html>

0 commit comments

Comments
 (0)