Skip to content

Commit 88b7c83

Browse files
committed
Add doc page template
1 parent 154a16e commit 88b7c83

File tree

1 file changed

+118
-0
lines changed

1 file changed

+118
-0
lines changed

pds/docusaurus.config.ts

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
import { themes as prismThemes } from 'prism-react-renderer';
2+
import type { Config } from '@docusaurus/types';
3+
import type * as Preset from '@docusaurus/preset-classic';
4+
5+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6+
7+
const config: Config = {
8+
title: 'Python Data Sources',
9+
tagline: 'Python Data Sources bring mature python packages and spark together to solve complex ingestion (or write) situations where scale is required.',
10+
favicon: 'img/logo.svg',
11+
12+
url: 'https://databrickslabs.github.io',
13+
// Set the /<baseUrl>/ pathname under which your site is served
14+
// For GitHub pages deployment, it is often '/<projectName>/'
15+
baseUrl: '/python-data-sources/',
16+
trailingSlash: true,
17+
18+
// GitHub pages deployment config.
19+
// If you aren't using GitHub pages, you don't need these.
20+
organizationName: 'databricks-industry-solutions', // Usually your GitHub org/user name.
21+
projectName: 'python-data_sources', // Usually your repo name.
22+
deploymentBranch: 'gh-pages',
23+
24+
onBrokenLinks: 'throw',
25+
onBrokenMarkdownLinks: 'throw',
26+
onDuplicateRoutes: 'throw',
27+
onBrokenAnchors: 'throw',
28+
29+
// Even if you don't use internationalization, you can use this field to set
30+
// useful metadata like html lang. For example, if your site is Chinese, you
31+
// may want to replace "en" with "zh-Hans".
32+
i18n: {
33+
defaultLocale: 'en',
34+
locales: ['en'],
35+
},
36+
37+
plugins: [
38+
async (context, options) => {
39+
return {
40+
name: "docusaurus-plugin-tailwindcss",
41+
configurePostCss(postcssOptions) {
42+
postcssOptions.plugins = [
43+
require('tailwindcss'),
44+
require('autoprefixer'),
45+
];
46+
return postcssOptions;
47+
},
48+
}
49+
},
50+
'docusaurus-plugin-image-zoom',
51+
'docusaurus-lunr-search'
52+
],
53+
54+
presets: [
55+
[
56+
'classic',
57+
{
58+
docs: {
59+
// routeBasePath: '/',
60+
sidebarPath: './sidebars.ts',
61+
// Please change this to your repo.
62+
// Remove this to remove the "edit this page" links.
63+
},
64+
blog: false,
65+
theme: {
66+
customCss: './src/css/custom.css',
67+
},
68+
} satisfies Preset.Options,
69+
],
70+
],
71+
72+
73+
themeConfig: {
74+
colorMode: {
75+
defaultMode: 'light',
76+
respectPrefersColorScheme: false,
77+
},
78+
navbar: {
79+
title: 'SAT',
80+
logo: {
81+
alt: 'SAT Logo',
82+
src: 'img/logo.svg',
83+
},
84+
items: [
85+
{
86+
type: 'search',
87+
position: 'right',
88+
},
89+
{
90+
href: 'https://github.com/databricks-industry-solutions/python-data-sources',
91+
position: 'right',
92+
93+
className: 'header-github-link',
94+
'aria-label': 'GitHub repository',
95+
},
96+
97+
],
98+
},
99+
footer: {
100+
links: [
101+
],
102+
copyright: `Copyright © ${new Date().getFullYear()} Databricks Industry Solutions. Docs built with Docusaurus.`,
103+
},
104+
prism: {
105+
theme: prismThemes.oneLight,
106+
darkTheme: prismThemes.oneDark,
107+
},
108+
zoom: {
109+
selector: 'article img',
110+
background: {
111+
light: '#F8FAFC',
112+
dark: '#F8FAFC',
113+
},
114+
}
115+
} satisfies Preset.ThemeConfig,
116+
};
117+
118+
export default config;

0 commit comments

Comments
 (0)