This repo contains the source code of kubeblocks docs. It's built by Next.js project bootstrapped with create-next-app, and you can use MUI components directly in mdx files.
Requirements:
- Install Node.js version >= 20.0.0, which can be checked by running
node -v. - yarn
First, run the development server:
yarn devOpen http://localhost:3000 with your browser to see the result.
You can start editing the docs by modifying /docs. The page auto-updates as you edit the file.
kubeblocks-docs
ββblogs
β ββen
β β β blog_1.mdx
β β β blog_2.mdx
β β β ...
β
ββdocs
β ββ en
β β ββ preview
β β β ββ<topbar_category>
β β β ββ<sidebar_menu_1>
β β β β β doc_1.mdx
β β β β β doc_2.mdx
β β β ββ<sidebar_menu_2>
β β β β doc_1.mdx
β β β β doc_2.mdx
β β β
β β ββ release-0.9
ββreports # kubeblocks reports
β
ββpublics
β βββimg # markdown assets
β
ββsrc # source code for enginer
β ββapp
β ββcomponents
β ββlocales
| ββtheme
β ββ...
β
β README.md
β packages.json
β next.config.ts
make docker-build TAG=maindocker run --name kubeblocks-docs -p 3000:3000 apecloud/kubeblocks-docs:mainhelm upgrade --install kubeblocks-docs ./helm/kubeblocks-docs --set image.tag=main --set service.type=LoadBalancer --create-namespace -n kubeblocks-docskubectl port-forward svc/kubeblocks-docs 3000:3000 -n kubeblocks-docs