Skip to content

Commit

Permalink
chore: upgrade docusaurus to 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rmanj committed Nov 4, 2024
1 parent 376808c commit db9d9af
Show file tree
Hide file tree
Showing 9 changed files with 7,896 additions and 4,498 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: 20
- name: Build
run: |
cd docusaurus
Expand Down
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[mdx]": {
"editor.formatOnSave": false
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = {
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

const config: Config = {
future: {
experimental_faster: true,
},
title: 'Create Intility App',
tagline: 'Easy to use templates for Intility developers',
url: 'https://create.intility.app/',
Expand Down Expand Up @@ -102,13 +108,13 @@ module.exports = {
],
copyright: `Copyright © ${new Date().getFullYear()} Intility AS. Built with Docusaurus.`,
},
},
} satisfies Preset.ThemeConfig,
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebarsReact.js'),
sidebarPath: undefined,
id: 'react',
path: 'react',
routeBasePath: 'react',
Expand All @@ -119,7 +125,7 @@ module.exports = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
} satisfies Preset.Options,
],
],
plugins: [
Expand All @@ -130,7 +136,7 @@ module.exports = {
id: 'dotnet',
path: 'dotnet',
routeBasePath: 'dotnet',
sidebarPath: require.resolve('./sidebarsDotnet.js'),
sidebarPath: undefined,
editUrl: 'https://github.com/Intility/templates/tree/main/docusaurus',
sidebarCollapsible: false,

Expand Down Expand Up @@ -166,11 +172,13 @@ module.exports = {
id: 'fastapi',
path: 'fastapi',
routeBasePath: 'fastapi',
sidebarPath: require.resolve('./sidebarsFastapi.js'),
sidebarPath: undefined,
editUrl: 'https://github.com/Intility/templates/tree/main/docusaurus',
sidebarCollapsible: false,
// ... other options
},
],
],
};

export default config;
Loading

0 comments on commit db9d9af

Please sign in to comment.