Skip to content

Commit

Permalink
please
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwardius committed May 30, 2024
1 parent 38003e6 commit 5d1f3ae
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 93 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/dependabot.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/deploy.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/tests.yml

This file was deleted.

43 changes: 36 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,40 @@
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
})

// Original Next.js config
module.exports = {
...withNextra(),
reactStrictMode: true,
output: 'export',
images: {
// output: export doesn't support Next.js image optimization
unoptimized: true,
},
};
// Next.js doesn't support trailing slashes in basePath
// This config needs to be in sync with export-images.config.js
basePath: (process.env.WEBSITE_BASE_PATH || '').replace(/\/$/, ""),
webpack: (config) => {
// Add Typescript support
// Reference: https://www.altogic.com/blog/nextjs-typescript
config.resolve.extensions.push(".ts", ".tsx");
return config;
},
eslint: {
dirs: [
'pages',
'src',
'app',
'components',
'lib',
'theme.config.jsx',
"tailwind.config.js",
"next.config.js",
"postcss.config.js",
]
}
}

// Add Nextra config
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
latex: true, // LaTeX support: https://nextra.site/docs/guide/advanced/latex
});

module.exports = withNextra(module.exports)

0 comments on commit 5d1f3ae

Please sign in to comment.