This website is built using Docusaurus 2, a modern static website generator.
$ pnpm install
$ pnpm start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ pnpm build
This command generates static content into the build directory and can be served using any static contents hosting service.
CI includes Rust documentation in llms.txt and llms-full.txt. Local builds include only website content by default.
To include Rust content locally, download the rust-llms-documentation artifact from a successful Docs workflow and set OPENDAL_RUSTDOC_LLMS to its llms.json file:
OPENDAL_RUSTDOC_LLMS=/tmp/opendal-rust-llms/llms.json pnpm build
Website images are resolved locally by plugins/local-images.js. The resolver runs before Markdown compilation and on the generated API documentation, so client navigation and standalone API pages use the same resources. It does not download images during a build.
https://opendal.apache.org/img/ URLs for project images. The website resolves them to files in static/img/, with the current website base URL.Run pnpm test to check image paths in API HTML, independent package versions, and errors for unknown external images. To test a nested deployment path, run OPENDAL_WEBSITE_BASE_URL=/opendal/opendal-docs-stable/ pnpm build.
Generate dependencies by npx license-checker --production --excludePrivatePackages --csv > DEPENDENCIES.node.csv
Since search plugin can not work with pnpm start, for testing please run pnpm build && pnpm serve.