mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
docs: Add Python to the links for language integrations
This commit is contained in:
parent
23c98a6e3d
commit
4e6c0a9df7
3 changed files with 15 additions and 1 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
CPP_BASE_URL,
|
||||
RUST_SLINT_CRATE_URL,
|
||||
NODEJS_BASE_URL,
|
||||
PYTHON_BASE_URL,
|
||||
} from "./src/utils/site-config";
|
||||
|
||||
// https://astro.build/config
|
||||
|
@ -403,6 +404,15 @@ export default defineConfig({
|
|||
link: `${NODEJS_BASE_URL}`,
|
||||
attrs: { target: "_blank" },
|
||||
},
|
||||
{
|
||||
label: "Python ↗",
|
||||
badge: {
|
||||
text: "beta",
|
||||
variant: "caution",
|
||||
},
|
||||
link: `${PYTHON_BASE_URL}`,
|
||||
attrs: { target: "_blank" },
|
||||
},
|
||||
],
|
||||
},
|
||||
]),
|
||||
|
|
|
@ -6,7 +6,7 @@ description: Connect the UI with business logic in your preferred language.
|
|||
|
||||
import { Card, CardGrid, LinkButton } from "@astrojs/starlight/components";
|
||||
import IconLinkCard from "/src/components/IconLinkCard.astro";
|
||||
import { CPP_BASE_URL, RUST_SLINT_CRATE_URL, NODEJS_BASE_URL } from "../../../utils/site-config";
|
||||
import { CPP_BASE_URL, RUST_SLINT_CRATE_URL, NODEJS_BASE_URL, PYTHON_BASE_URL } from "../../../utils/site-config";
|
||||
|
||||
Slint provides first class integrations to various programming languages allowing you to implement the business logic of your Slint application in your preferred language.
|
||||
|
||||
|
@ -20,4 +20,7 @@ Slint provides first class integrations to various programming languages allowin
|
|||
<IconLinkCard title="TypeScript (beta)" href={NODEJS_BASE_URL} icon="seti:typescript">
|
||||
Browse TypeScript / JavaScript API docs.
|
||||
</IconLinkCard>
|
||||
<IconLinkCard title="Python (beta)" href={PYTHON_BASE_URL} icon="seti:python">
|
||||
Browse Python API docs.
|
||||
</IconLinkCard>
|
||||
</CardGrid>
|
||||
|
|
|
@ -10,3 +10,4 @@ export const RUST_SLINT_CRATE_URL = `${RUST_BASE_URL}slint/`;
|
|||
export const RUST_SLINT_INTERPRETER_CRATE_URL = `${RUST_BASE_URL}slint_interpreter/`;
|
||||
export const RUST_SLINT_BUILD_CRATE_URL = `${RUST_BASE_URL}slint_build/`;
|
||||
export const NODEJS_BASE_URL = `${BASE_URL}${BASE_PATH}../node/`;
|
||||
export const PYTHON_BASE_URL = `${BASE_URL}${BASE_PATH}../python/`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue