diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 1539131..6d468ee 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -1,8 +1,10 @@ +// @ts-check +/** @type {import('@docusaurus/types').Config} */ module.exports = { title: '@typeofweb/schema', tagline: '@typeofweb/schema is a lightweight and extensible library for data validation with full TypeScript support!', - url: 'https://www.npmjs.com/package/@typeofweb/schema', + url: 'https://schema.typeofweb.com/', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'throw', @@ -98,6 +100,7 @@ module.exports = { presets: [ [ '@docusaurus/preset-classic', + /** @type {import('@docusaurus/preset-classic').Options} */ { docs: { showLastUpdateAuthor: true, diff --git a/docs/package.json b/docs/package.json index 268385f..c07eda0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,14 +12,14 @@ "clear": "docusaurus clear" }, "dependencies": { - "@docusaurus/core": "latest", - "@docusaurus/plugin-google-gtag": "latest", - "@docusaurus/plugin-sitemap": "latest", - "@docusaurus/preset-classic": "latest", + "@docusaurus/core": "2.0.0-beta.13", + "@docusaurus/plugin-google-gtag": "2.0.0-beta.13", + "@docusaurus/plugin-sitemap": "2.0.0-beta.13", + "@docusaurus/preset-classic": "2.0.0-beta.13", "@mdx-js/react": "1.6.22", "clsx": "1.1.1", - "react": "17.0.1", - "react-dom": "17.0.1" + "react": "17.0.2", + "react-dom": "17.0.2" }, "browserslist": { "production": [ @@ -34,11 +34,11 @@ ] }, "devDependencies": { - "@docusaurus/module-type-aliases": "latest", - "@tsconfig/docusaurus": "1.0.2", - "@types/react": "17.0.1", - "@types/react-helmet": "6.1.0", - "@types/react-router-dom": "5.1.7", - "typescript": "4.1.3" + "@docusaurus/module-type-aliases": "2.0.0-beta.13", + "@tsconfig/docusaurus": "1.0.4", + "@types/react": "17.0.37", + "@types/react-helmet": "6.1.4", + "@types/react-router-dom": "5.3.2", + "typescript": "4.5.4" } } diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index ad89ecf..0013c33 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -60,6 +60,8 @@ function Home() { const { siteConfig = {} } = context; return ( +