Skip to content
Merged
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
78 changes: 42 additions & 36 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
import {themes as prismThemes} from 'prism-react-renderer';
import { createConfig } from './.shared-config/index.js';
import { providerName, providerTitle } from './provider.js';

const config = createConfig({
providerName,
providerTitle,
prismThemes,
overrides: {
future: {
v4: true,
faster: true,
},
},
});

// This provider's website lives at website/ within the canonical
// stackql-registry/stackql-provider-snowflake repo, so the "Edit this page" links
// point at that subdirectory (the shared config default omits the website/ path).
config.projectName = 'stackql-provider-snowflake';
config.presets[0][1].docs.editUrl =
'https://github.com/stackql-registry/stackql-provider-snowflake/edit/stackql-provider/website/';

// Use the locally vendored registry-branded logos (STACKQL>> | REGISTRY) instead
// of the shared config's hotlinked main-site wordmark - self-contained assets, no
// cross-origin fetch. global.css swaps in the -mobile variants below 996px.
const registryLogo = {
alt: 'StackQL',
href: '/',
src: 'img/stackql-registry-logo.svg',
srcDark: 'img/stackql-registry-logo-white.svg',
};
config.themeConfig.navbar.logo = { ...registryLogo };
config.themeConfig.footer.logo = { ...registryLogo };

export default config;
import {themes as prismThemes} from 'prism-react-renderer';
import { createConfig } from './.shared-config/index.js';
import { providerName, providerTitle } from './provider.js';

const config = createConfig({
providerName,
providerTitle,
prismThemes,
overrides: {
future: {
v4: true,
faster: true,
},
},
});

// This provider's website lives at website/ within the canonical
// stackql-registry/stackql-provider-snowflake repo, so the "Edit this page" links
// point at that subdirectory (the shared config default omits the website/ path).
config.projectName = 'stackql-provider-snowflake';
config.presets[0][1].docs.editUrl =
'https://github.com/stackql-registry/stackql-provider-snowflake/edit/stackql-provider/website/';

// Use the locally vendored registry-branded logos (STACKQL>> | REGISTRY) instead
// of the shared config's hotlinked main-site wordmark - self-contained assets, no
// cross-origin fetch. global.css swaps in the -mobile variants below 996px.
const registryLogo = {
alt: 'StackQL',
href: '/',
src: 'img/stackql-registry-logo.svg',
srcDark: 'img/stackql-registry-logo-white.svg',
};
config.themeConfig.navbar.logo = { ...registryLogo };
config.themeConfig.footer.logo = { ...registryLogo };

// URL form. Keep the Docusaurus default (pages emitted as <route>/index.html)
// regardless of the shared config's trailingSlash setting, so GitHub Pages
// serves both /services/x/y and /services/x/y/. A trailingSlash: false site
// emits <route>.html instead, which returns 404 for the trailing-slash URL.
delete config.trailingSlash;

export default config;