Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/current/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
<script src="{{ 'js/searchInputRendering.js' | relative_url }}"></script>
<!-- Algolia client for autocomplete -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/algoliasearch-lite.umd.min.js"></script>
<!-- Algolia Autocomplete with Kapa Integration -->
<script src="{{ 'js/algoliaAutocomplete.js' | relative_url }}"></script>

{%- comment -%} Add the Brand Website segment source and fire a page impression. {%- endcomment -%}
<script>
Expand Down Expand Up @@ -153,6 +158,10 @@
data-modal-disclaimer="This AI bot is experimental. Don't rely on it for production workloads. Always consult the official CockroachDB documentation. Interactions with this AI bot may be monitored or recorded, and your use of the AI bot is subject to the Cockroach Labs' [Terms of Use](https://www.cockroachlabs.com/website-terms-of-use/) and [Privacy policy](https://www.cockroachlabs.com/privacy/)."
data-modal-y-offset="12vh"
data-modal-z-index="1000"
data-mcp-enabled="true"
data-mcp-server-url="https://cockroachdb.mcp.kapa.ai"
data-search-mode-enabled="true"
data-modal-open-on-command-k="true"
></script>

<style>
Expand Down
55 changes: 54 additions & 1 deletion src/current/_includes/topnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,60 @@
<img width="16" src="{{ 'images/icon-search.svg' | relative_url }}" alt="search">
</span>
</div>
<input type="text" class="form-control border-0" placeholder="Search" aria-label="Search" aria-describedby="basic-addon1">
<input
id="search-input"
type="text"
class="form-control border-0"
placeholder="Search"
aria-label="Search"
aria-describedby="basic-addon1"
>
<div class="input-group-append">
<button
id="mcp-dropdown-toggle"
class="btn btn-outline-primary dropdown-toggle"
type="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
title="AI & MCP Tools"
>
<i class="fas fa-robot"></i> AI
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="mcp-dropdown-toggle" style="min-width: 250px;">
<h6 class="dropdown-header">AI Assistant</h6>
<button
class="dropdown-item"
type="button"
onclick="if(window.Kapa) { window.Kapa.open(); } else { alert('AI Assistant not available'); }"
>
<i class="fas fa-comments"></i> Ask AI Assistant
</button>
<div class="dropdown-divider"></div>
<h6 class="dropdown-header">MCP Integration</h6>
<button
class="dropdown-item"
type="button"
onclick="if(window.Kapa) { window.Kapa.open(); alert('Connect to MCP server at: https://cockroachdb.mcp.kapa.ai'); } else { alert('MCP not available'); }"
>
<i class="fas fa-plug"></i> Connect with MCP
</button>
<button
class="dropdown-item"
type="button"
onclick="window.open('https://docs.kapa.ai/dev/kapa-mcp', '_blank')"
>
<i class="fas fa-book"></i> MCP Documentation
</button>
<button
class="dropdown-item"
type="button"
onclick="window.open('https://www.cockroachlabs.com/docs/stable/mcp-setup', '_blank')"
>
<i class="fas fa-cog"></i> Setup Guide
</button>
</div>
</div>
</div>
<ul class="navbar-nav">
<li class="nav-item text-nowrap mb-0">
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v21.2/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,12 @@
"https://www.cockroachlabs.com/docs/api/cloud/v1"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Logging",
"items": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v22.1/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -1795,6 +1795,12 @@
"https://www.cockroachlabs.com/docs/api/cloud/v1"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Logging",
"items": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v22.2/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,12 @@
"https://www.cockroachlabs.com/docs/api/cloud/v1"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Logging",
"items": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v23.1/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v23.2/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v24.1/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v24.2/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v24.3/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v25.1/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v25.2/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v25.3/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v25.4/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
6 changes: 6 additions & 0 deletions src/current/_includes/v26.1/sidebar-data/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
"https://www.cockroachlabs.com/docs/api/cluster/v2"
]
},
{
"title": "Docs MCP Server",
"urls": [
"/${VERSION}/docs-mcp-integration.html"
]
},
{
"title": "Cluster Settings",
"urls": [
Expand Down
Loading
Loading