diff --git a/docs/src/config.ts b/docs/src/config.ts index 52cd9f92..2a5bc017 100644 --- a/docs/src/config.ts +++ b/docs/src/config.ts @@ -23,6 +23,7 @@ export type Frontmatter = { dir?: 'ltr' | 'rtl'; ogLocale?: string; lang?: string; + redirect?: string; }; export const KNOWN_LANGUAGES = { diff --git a/docs/src/layouts/Redirect.astro b/docs/src/layouts/Redirect.astro new file mode 100644 index 00000000..addeb79c --- /dev/null +++ b/docs/src/layouts/Redirect.astro @@ -0,0 +1,23 @@ +--- +import * as CONFIG from '../config'; + +type Props = { + frontmatter: CONFIG.Frontmatter; +}; + +const { frontmatter } = Astro.props as Props; +--- + + + + {frontmatter.redirect ? ( + + ) : null} + + + + + diff --git a/docs/src/pages/en/contributing/documentation.mdx b/docs/src/pages/en/contributing/documentation.mdx index 7c92df3a..b8c3d20f 100644 --- a/docs/src/pages/en/contributing/documentation.mdx +++ b/docs/src/pages/en/contributing/documentation.mdx @@ -10,7 +10,7 @@ Here is the process for improving this documentation. 1. Fork the repository. 2. Clone your fork. -3. Open the project workspace (`vscode-sqltools.code-workspace`) withj VS Code. +3. Open the project workspace (`vscode-sqltools.code-workspace`) with VS Code. 4. Create a branch from the `dev` branch. 5. Expand the `docs` root folder. 6. Edit pages. For example this page is at `src/pages/en/contributing/documentation.mdx` within `docs` diff --git a/docs/src/pages/en/drivers/sqlite.mdx b/docs/src/pages/en/drivers/sqlite.mdx new file mode 100644 index 00000000..fdd0c643 --- /dev/null +++ b/docs/src/pages/en/drivers/sqlite.mdx @@ -0,0 +1,5 @@ +--- +title: SQLite redirect page for Read More button of Dependency Manager dialog +layout: ../../../layouts/Redirect.astro +redirect: sq-lite +---