From ad76069f4dea3abd15ca3d3b148f49311450ee2e Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:26:24 +0530 Subject: [PATCH] docs: fix broken links; change onBrokenLinks to warning temporarily Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../docs/050.tables/020.create-table.md | 9 +- .../docs/060.fields/010.fields-overview.md | 2 +- .../docs/070.records/020.create-record.md | 2 +- packages/noco-docs/docusaurus.config.js | 97 ++++++++++--------- 4 files changed, 55 insertions(+), 55 deletions(-) diff --git a/packages/noco-docs/docs/050.tables/020.create-table.md b/packages/noco-docs/docs/050.tables/020.create-table.md index 97da53dc88..5446044fe1 100644 --- a/packages/noco-docs/docs/050.tables/020.create-table.md +++ b/packages/noco-docs/docs/050.tables/020.create-table.md @@ -15,11 +15,10 @@ import TabItem from '@theme/TabItem'; ### Related articles -- [Create table via import](/docs/tables/create-table-via-import) -- [Delete table](/docs/tables/delete-table) -- [Rename table](/docs/tables/rename-table) -- [Duplicate table](/docs/tables/duplicate-table) -- [Change table icon](/docs/tables/change-table-icon) +- [Create table via import](/tables/create-table-via-import) +- [Delete table](/tables/delete-table) +- [Rename table](/tables/actions-on-table#rename-table) +- [Duplicate table](/tables/actions-on-table#duplicate-table) diff --git a/packages/noco-docs/docs/060.fields/010.fields-overview.md b/packages/noco-docs/docs/060.fields/010.fields-overview.md index 06ed1f03ac..2e3e57f5bd 100644 --- a/packages/noco-docs/docs/060.fields/010.fields-overview.md +++ b/packages/noco-docs/docs/060.fields/010.fields-overview.md @@ -48,7 +48,7 @@ import TabItem from '@theme/TabItem'; ### Formula - [Formula](field-types/formula/formula) - [Operators](field-types/formula/operators) - - [Numeric Functions](field-types/formula/numberic-functions) + - [Numeric Functions](field-types/formula/numeric-functions) - [String Functions](field-types/formula/string-functions) - [Date Functions](field-types/formula/date-functions) - [Conditional Expressions](field-types/formula/conditional-expressions) diff --git a/packages/noco-docs/docs/070.records/020.create-record.md b/packages/noco-docs/docs/070.records/020.create-record.md index ab3f9b12c5..b87f7c4e82 100644 --- a/packages/noco-docs/docs/070.records/020.create-record.md +++ b/packages/noco-docs/docs/070.records/020.create-record.md @@ -25,6 +25,6 @@ To revert back to default behaviour of `+ New Record` button, click on the up-ar ::: ### Related topics -- [Expanded record view](/records/expanded-record-view) +- [Expanded record view](/records/expanded-record) diff --git a/packages/noco-docs/docusaurus.config.js b/packages/noco-docs/docusaurus.config.js index 83849d1517..bd0a9c0ec4 100644 --- a/packages/noco-docs/docusaurus.config.js +++ b/packages/noco-docs/docusaurus.config.js @@ -1,61 +1,62 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require('prism-react-renderer/themes/github'); -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +const lightCodeTheme = require("prism-react-renderer/themes/github"); +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'NocoDB', - tagline: 'The Open Source Airtable Alternative', - favicon: 'img/favicon.ico', + title: "NocoDB", + tagline: "The Open Source Airtable Alternative", + favicon: "img/favicon.ico", // Set the production url of your site here - url: 'https://nocodb.com', + url: "https://nocodb.com", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/', + baseUrl: "/", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'nocodb', // Usually your GitHub org/user name. - projectName: 'nocodb', // Usually your repo name. + organizationName: "nocodb", // Usually your GitHub org/user name. + projectName: "nocodb", // Usually your repo name. - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', + onBrokenLinks: "warn", + onBrokenMarkdownLinks: "warn", // 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 // to replace "en" with "zh-Hans". i18n: { - defaultLocale: 'en', - locales: ['en'], + defaultLocale: "en", + locales: ["en"], }, - plugins: ['docusaurus-plugin-sass'], + plugins: ["docusaurus-plugin-sass"], presets: [ [ - 'classic', + "classic", /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { - sidebarPath: require.resolve('./sidebars.js'), - routeBasePath: '/', - editUrl: 'https://github.com/nocodb/nocodb/tree/develop/packages/noco-docs/docs/', - lastVersion: 'current', + sidebarPath: require.resolve("./sidebars.js"), + routeBasePath: "/", + editUrl: + "https://github.com/nocodb/nocodb/tree/develop/packages/noco-docs/docs/", + lastVersion: "current", versions: { 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, 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} */ ({ // Replace with your project's social card - image: 'img/docusaurus-social-card.jpg', + image: "img/docusaurus-social-card.jpg", navbar: { - title: '', + title: "", logo: { - alt: 'NocoDB', - src: 'img/nocodb-full-color.png', + alt: "NocoDB", + src: "img/nocodb-full-color.png", }, items: [ { - type: 'docsVersionDropdown', - position: 'right', + type: "docsVersionDropdown", + position: "right", }, { - href: 'https://github.com/nocodb/nocodb', - position: 'right', - className: 'header-github-link', - 'aria-label': 'GitHub repository', + href: "https://github.com/nocodb/nocodb", + position: "right", + className: "header-github-link", + "aria-label": "GitHub repository", }, ], }, footer: { - style: 'dark', + style: "dark", logo: { - alt: 'NocoDB', - src: 'img/icon.png', + alt: "NocoDB", + src: "img/icon.png", width: 50, }, links: [ { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + label: "GitHub", + href: "https://github.com/facebook/docusaurus", }, { - label: 'Website', - href: 'https://nocodb.com/', + label: "Website", + href: "https://nocodb.com/", }, { - label: 'Community', - href: 'https://community.nocodb.com/', + label: "Community", + href: "https://community.nocodb.com/", }, { - label: 'Discord', - href: 'https://discord.gg/5RgZmkW', + label: "Discord", + href: "https://discord.gg/5RgZmkW", }, { - label: 'Twitter', - href: 'https://twitter.com/nocodb', - } + label: "Twitter", + href: "https://twitter.com/nocodb", + }, ], copyright: `Copyright © ${new Date().getFullYear()} NocoDB`, },