fix baseUrl (#8347)
This commit is contained in:
@@ -245,7 +245,7 @@ export default function ContentCard({
|
||||
) : (
|
||||
<img
|
||||
style={styles.placeholderLogo}
|
||||
src="/goose/img/goose.svg"
|
||||
src="/img/goose.svg"
|
||||
alt="Goose logo placeholder"
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -4,7 +4,7 @@ import Admonition from '@theme/Admonition';
|
||||
export const PlatformExtensionNote = ({ defaultEnabled = true }) => {
|
||||
return (
|
||||
<Admonition type="info" title="Platform Extension">
|
||||
<p>This is a <a href="/goose/docs/getting-started/using-extensions#built-in-platform-extensions">built-in platform extension</a>{defaultEnabled && " that's enabled by default for new users"}. Platform extensions provide core functionality and are used within goose just like external MCP server extensions.</p>
|
||||
<p>This is a <a href="/docs/getting-started/using-extensions#built-in-platform-extensions">built-in platform extension</a>{defaultEnabled && " that's enabled by default for new users"}. Platform extensions provide core functionality and are used within goose just like external MCP server extensions.</p>
|
||||
</Admonition>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ export const RateLimits = () => {
|
||||
<br />
|
||||
Some providers also have rate limits on API usage, which can affect your
|
||||
experience. Check out our{" "}
|
||||
<a href="/goose/docs/guides/handling-llm-rate-limits-with-goose" target="_blank">
|
||||
<a href="/docs/guides/handling-llm-rate-limits-with-goose" target="_blank">
|
||||
Handling Rate Limits
|
||||
</a>{" "}
|
||||
guide to learn how to efficiently manage these limits while using goose.
|
||||
|
||||
@@ -12,7 +12,7 @@ const RecipeFields = () => {
|
||||
<li><strong>Parameters</strong> to accept dynamic values</li>
|
||||
<li><strong>Model and provider</strong> to specify which provider and model the recipe should use</li>
|
||||
<li><strong>Extensions</strong> to select which tools are available</li>
|
||||
<li><strong>Response JSON schema</strong> for <a href="/goose/docs/guides/recipes/session-recipes#structured-output-for-automation">structured output in automations</a></li>
|
||||
<li><strong>Response JSON schema</strong> for <a href="/docs/guides/recipes/session-recipes#structured-output-for-automation">structured output in automations</a></li>
|
||||
<li><strong>Subrecipes</strong> to attach existing subrecipes or create a new one inline</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@@ -71,7 +71,7 @@ export default function SkillDetailPage(): JSX.Element {
|
||||
|
||||
const handleDownload = () => {
|
||||
if (skill) {
|
||||
const zipUrl = `/goose/skills-data-zips/${skill.id}.zip`;
|
||||
const zipUrl = `/skills-data-zips/${skill.id}.zip`;
|
||||
const link = document.createElement('a');
|
||||
link.href = zipUrl;
|
||||
link.download = `${skill.id}.zip`;
|
||||
|
||||
@@ -435,7 +435,7 @@ function PageActionsMenu(): ReactNode {
|
||||
<ExternalLink size={16} className="flex-shrink-0" />
|
||||
</button>
|
||||
<a
|
||||
href="/goose/docs/mcp/goose-docs-mcp"
|
||||
href="/docs/mcp/goose-docs-mcp"
|
||||
className="w-full flex items-center justify-between gap-1.5 px-3 py-1.5 text-sm text-white dark:text-black hover:opacity-90 hover:-translate-y-px active:translate-y-px transition-all duration-200 ease-in-out bg-transparent rounded-b-md no-underline"
|
||||
onClick={() => setDropdownOpen(false)}
|
||||
>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { MCPServer } from "../types/server";
|
||||
|
||||
const SERVERS_URL = "/goose/servers.json";
|
||||
const SERVERS_URL = "/servers.json";
|
||||
|
||||
export async function fetchMCPServers(): Promise<MCPServer[]> {
|
||||
try {
|
||||
@@ -19,14 +19,14 @@ export async function fetchMCPServers(): Promise<MCPServer[]> {
|
||||
export async function searchMCPServers(query: string): Promise<MCPServer[]> {
|
||||
const servers = await fetchMCPServers();
|
||||
const normalizedQuery = query.toLowerCase();
|
||||
|
||||
|
||||
return servers.filter((server) => {
|
||||
const normalizedName = server.name.toLowerCase();
|
||||
const normalizedDescription = server.description.toLowerCase();
|
||||
|
||||
|
||||
return (
|
||||
normalizedName.includes(normalizedQuery) ||
|
||||
normalizedDescription.includes(normalizedQuery)
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,8 +75,8 @@ async function fetchSkillsManifest(): Promise<Skill[]> {
|
||||
try {
|
||||
// In Docusaurus, baseUrl changes automatically for PR previews.
|
||||
// Example:
|
||||
// prod: /goose/
|
||||
// PR preview: /goose/pr-preview/pr-6752/
|
||||
// prod: /
|
||||
// PR preview: /pr-preview/pr-6752/
|
||||
const baseUrl = siteConfig.baseUrl.endsWith("/")
|
||||
? siteConfig.baseUrl
|
||||
: `${siteConfig.baseUrl}/`;
|
||||
|
||||
Reference in New Issue
Block a user