|
|
@ -1,61 +1,62 @@ |
|
|
|
// @ts-check
|
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
|
|
|
|
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github'); |
|
|
|
const lightCodeTheme = require("prism-react-renderer/themes/github"); |
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); |
|
|
|
const darkCodeTheme = require("prism-react-renderer/themes/dracula"); |
|
|
|
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */ |
|
|
|
/** @type {import('@docusaurus/types').Config} */ |
|
|
|
const config = { |
|
|
|
const config = { |
|
|
|
title: 'NocoDB', |
|
|
|
title: "NocoDB", |
|
|
|
tagline: 'The Open Source Airtable Alternative', |
|
|
|
tagline: "The Open Source Airtable Alternative", |
|
|
|
favicon: 'img/favicon.ico', |
|
|
|
favicon: "img/favicon.ico", |
|
|
|
|
|
|
|
|
|
|
|
// Set the production url of your site here
|
|
|
|
// Set the production url of your site here
|
|
|
|
url: 'https://nocodb.com', |
|
|
|
url: "https://nocodb.com", |
|
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
|
|
baseUrl: '/', |
|
|
|
baseUrl: "/", |
|
|
|
|
|
|
|
|
|
|
|
// GitHub pages deployment config.
|
|
|
|
// GitHub pages deployment config.
|
|
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
|
|
organizationName: 'nocodb', // Usually your GitHub org/user name.
|
|
|
|
organizationName: "nocodb", // Usually your GitHub org/user name.
|
|
|
|
projectName: 'nocodb', // Usually your repo name.
|
|
|
|
projectName: "nocodb", // Usually your repo name.
|
|
|
|
|
|
|
|
|
|
|
|
onBrokenLinks: 'throw', |
|
|
|
onBrokenLinks: "warn", |
|
|
|
onBrokenMarkdownLinks: 'warn', |
|
|
|
onBrokenMarkdownLinks: "warn", |
|
|
|
|
|
|
|
|
|
|
|
// Even if you don't use internalization, you can use this field to set useful
|
|
|
|
// Even if you don't use internalization, you can use this field to set useful
|
|
|
|
// metadata like html lang. For example, if your site is Chinese, you may want
|
|
|
|
// metadata like html lang. For example, if your site is Chinese, you may want
|
|
|
|
// to replace "en" with "zh-Hans".
|
|
|
|
// to replace "en" with "zh-Hans".
|
|
|
|
i18n: { |
|
|
|
i18n: { |
|
|
|
defaultLocale: 'en', |
|
|
|
defaultLocale: "en", |
|
|
|
locales: ['en'], |
|
|
|
locales: ["en"], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
plugins: ['docusaurus-plugin-sass'], |
|
|
|
plugins: ["docusaurus-plugin-sass"], |
|
|
|
|
|
|
|
|
|
|
|
presets: [ |
|
|
|
presets: [ |
|
|
|
[ |
|
|
|
[ |
|
|
|
'classic', |
|
|
|
"classic", |
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */ |
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */ |
|
|
|
({ |
|
|
|
({ |
|
|
|
docs: { |
|
|
|
docs: { |
|
|
|
sidebarPath: require.resolve('./sidebars.js'), |
|
|
|
sidebarPath: require.resolve("./sidebars.js"), |
|
|
|
routeBasePath: '/', |
|
|
|
routeBasePath: "/", |
|
|
|
editUrl: 'https://github.com/nocodb/nocodb/tree/develop/packages/noco-docs/docs/', |
|
|
|
editUrl: |
|
|
|
lastVersion: 'current', |
|
|
|
"https://github.com/nocodb/nocodb/tree/develop/packages/noco-docs/docs/", |
|
|
|
|
|
|
|
lastVersion: "current", |
|
|
|
versions: { |
|
|
|
versions: { |
|
|
|
current: { |
|
|
|
current: { |
|
|
|
label: 'Latest', |
|
|
|
label: "Latest", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"0.109.7": { |
|
|
|
|
|
|
|
label: "0.109.7 - Old UI", |
|
|
|
}, |
|
|
|
}, |
|
|
|
'0.109.7': { |
|
|
|
|
|
|
|
label: '0.109.7 - Old UI', |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
blog: false, |
|
|
|
blog: false, |
|
|
|
theme: { |
|
|
|
theme: { |
|
|
|
customCss: require.resolve('./src/css/custom.scss'), |
|
|
|
customCss: require.resolve("./src/css/custom.scss"), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
], |
|
|
|
], |
|
|
@ -65,54 +66,54 @@ const config = { |
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ |
|
|
|
({ |
|
|
|
({ |
|
|
|
// Replace with your project's social card
|
|
|
|
// Replace with your project's social card
|
|
|
|
image: 'img/docusaurus-social-card.jpg', |
|
|
|
image: "img/docusaurus-social-card.jpg", |
|
|
|
navbar: { |
|
|
|
navbar: { |
|
|
|
title: '', |
|
|
|
title: "", |
|
|
|
logo: { |
|
|
|
logo: { |
|
|
|
alt: 'NocoDB', |
|
|
|
alt: "NocoDB", |
|
|
|
src: 'img/nocodb-full-color.png', |
|
|
|
src: "img/nocodb-full-color.png", |
|
|
|
}, |
|
|
|
}, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: 'docsVersionDropdown', |
|
|
|
type: "docsVersionDropdown", |
|
|
|
position: 'right', |
|
|
|
position: "right", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
href: 'https://github.com/nocodb/nocodb', |
|
|
|
href: "https://github.com/nocodb/nocodb", |
|
|
|
position: 'right', |
|
|
|
position: "right", |
|
|
|
className: 'header-github-link', |
|
|
|
className: "header-github-link", |
|
|
|
'aria-label': 'GitHub repository', |
|
|
|
"aria-label": "GitHub repository", |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
footer: { |
|
|
|
footer: { |
|
|
|
style: 'dark', |
|
|
|
style: "dark", |
|
|
|
logo: { |
|
|
|
logo: { |
|
|
|
alt: 'NocoDB', |
|
|
|
alt: "NocoDB", |
|
|
|
src: 'img/icon.png', |
|
|
|
src: "img/icon.png", |
|
|
|
width: 50, |
|
|
|
width: 50, |
|
|
|
}, |
|
|
|
}, |
|
|
|
links: [ |
|
|
|
links: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'GitHub', |
|
|
|
label: "GitHub", |
|
|
|
href: 'https://github.com/facebook/docusaurus', |
|
|
|
href: "https://github.com/facebook/docusaurus", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Website', |
|
|
|
label: "Website", |
|
|
|
href: 'https://nocodb.com/', |
|
|
|
href: "https://nocodb.com/", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Community', |
|
|
|
label: "Community", |
|
|
|
href: 'https://community.nocodb.com/', |
|
|
|
href: "https://community.nocodb.com/", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Discord', |
|
|
|
label: "Discord", |
|
|
|
href: 'https://discord.gg/5RgZmkW', |
|
|
|
href: "https://discord.gg/5RgZmkW", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: 'Twitter', |
|
|
|
label: "Twitter", |
|
|
|
href: 'https://twitter.com/nocodb', |
|
|
|
href: "https://twitter.com/nocodb", |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} NocoDB`, |
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} NocoDB`, |
|
|
|
}, |
|
|
|
}, |
|
|
|