Steps to index site
- generate sitemap
- add sitemap to typesense config.json
add MDX unifiedjs.vscode-mdx to fix linting for MDX
Seems docusaurus@next still relies on Webpack/Babel which scales horrendously with large sites.
Docusaurus SSG transforms MD to React FC
Fortunately, there seems to be a way to mod the JS loader with esbuild instead of webpack:
This page crashed. "useColorMode()" is used outside of "Layout" component. Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.
<span>
{children?.length //! this is some epic ternary spaghetti!
? minIcon
? collapse
? "🔽"
: "🔼"
: null
: minIcon && "⏩"}
</span>
This code snippet does not work:
import { map_all_parents } from "../src/data/index.ts"
console.dir(map_all_parents)