Skip to content

Commit

Permalink
chore(docs): update to docusaurus v3
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Dec 22, 2023
1 parent 1aaa771 commit 51a104e
Show file tree
Hide file tree
Showing 6 changed files with 8,148 additions and 15,473 deletions.
2 changes: 1 addition & 1 deletion scripts/libs/CustomMarkdownDocumenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class CustomMarkdownDocumenter {

if (filename.includes('ignored.md')) return;

FileSystem.writeFile(filename, pageContent, {
FileSystem.writeFile(filename, pageContent.replaceAll('{', '\\{'), {
ensureFolderExists: true,
convertLineEndings: this._documenterConfig
? this._documenterConfig.newlineKind
Expand Down
2 changes: 1 addition & 1 deletion www/.tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs lts-gallium
nodejs 18.18.1
2 changes: 2 additions & 0 deletions www/docs/main/frameworks/nestjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: See more about how to integrate with NestJS.
---




import BrowserWindow from '@site/src/components/BrowserWindow';
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';
Expand Down
32 changes: 24 additions & 8 deletions www/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @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 {
themes: { dracula: darkCodeTheme, github: lightCodeTheme },
} = require('prism-react-renderer');

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand All @@ -23,11 +24,26 @@ const config = {
'@docusaurus/plugin-client-redirects',
{
redirects: [
{ from: '/docs/main/adapters/introduction', to: '/docs/main/advanced/adapters/introduction' },
{ from: '/docs/main/adapters/creating-an-adapter', to: '/docs/main/advanced/adapters/creating-an-adapter' },
{ from: '/docs/main/frameworks/cors', to: '/docs/main/frameworks/helpers/cors' },
{ from: '/docs/main/frameworks/lazy', to: '/docs/main/frameworks/helpers/lazy' },
{ from: '/docs/main/handlers/default', to: '/docs/main/handlers/aws' },
{
from: '/docs/main/adapters/introduction',
to: '/docs/main/advanced/adapters/introduction',
},
{
from: '/docs/main/adapters/creating-an-adapter',
to: '/docs/main/advanced/adapters/creating-an-adapter',
},
{
from: '/docs/main/frameworks/cors',
to: '/docs/main/frameworks/helpers/cors',
},
{
from: '/docs/main/frameworks/lazy',
to: '/docs/main/frameworks/helpers/lazy',
},
{
from: '/docs/main/handlers/default',
to: '/docs/main/handlers/aws',
},
],
},
],
Expand Down Expand Up @@ -55,7 +71,7 @@ const config = {
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Serverless Adapter',
Expand Down
Loading

0 comments on commit 51a104e

Please sign in to comment.