Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 31, 2025
1 parent 9397ae6 commit c685859
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
8 changes: 7 additions & 1 deletion docs/astro/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import rehypeExternalLinks from "rehype-external-links";
import starlightSidebarTopics from "starlight-sidebar-topics";
import { BASE_PATH, BASE_URL, CPP_BASE_URL, RUST_SLINT_CRATE_URL, NODEJS_BASE_URL } from "./src/utils/site-config";
import {
BASE_PATH,
BASE_URL,
CPP_BASE_URL,
RUST_SLINT_CRATE_URL,
NODEJS_BASE_URL,
} from "./src/utils/site-config";

// https://astro.build/config
export default defineConfig({
Expand Down
16 changes: 11 additions & 5 deletions docs/astro/src/components/LangRefLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@
// Copyright © SixtyFPS GmbH <[email protected]>
// SPDX-License-Identifier: MIT
import { CPP_BASE_URL, RUST_SLINT_CRATE_URL, RUST_SLINT_INTERPRETER_CRATE_URL, RUST_SLINT_BUILD_CRATE_URL, NODEJS_BASE_URL } from "../utils/site-config.ts";
import {
CPP_BASE_URL,
RUST_SLINT_CRATE_URL,
RUST_SLINT_INTERPRETER_CRATE_URL,
RUST_SLINT_BUILD_CRATE_URL,
NODEJS_BASE_URL,
} from "../utils/site-config.ts";
const BASE_URL_MAP = {
"cpp": `${CPP_BASE_URL}`,
cpp: `${CPP_BASE_URL}`,
"rust-slint": `${RUST_SLINT_CRATE_URL}`,
"rust-slint-build": `${RUST_SLINT_BUILD_CRATE_URL}`,
"rust-slint-interpreter": `${RUST_SLINT_INTERPRETER_CRATE_URL}`,
"nodejs": `${NODEJS_BASE_URL}`,
nodejs: `${NODEJS_BASE_URL}`,
} as const;
type LangID = keyof typeof BASE_URL_MAP;
interface Props {
lang: LangID;
title: string,
relpath: string,
title: string;
relpath: string;
}
const props = Astro.props;
Expand Down

0 comments on commit c685859

Please sign in to comment.