- Visual Studio code https://code.visualstudio.com/
- A working installations of Docker and Docker compose
git clone https://github.com/deploily/deploily-documentation.git
cd deploily-documentationStart VSCode
code .In the Extensions menu, search for "Remote - Containers" and install it:

If VSCode dont detect the remote container:
- open the Command Palette (usually Ctrl or Command + Shift + P)
- and type ">Remote-Containers: Open Folder in Container",
- select it and choose the location of this project.
If you are prompted to Rebuild the container do it:
If the Rebuild prompt don't shows up :
- open the Command Palette (usually Ctrl or Command + Shift + P)
- and type ">Remote-Containers: Rebuild Container",
- select it.
cd documentation
npm install
npm run start # ! NOT WORKINGcd documentation
npm run build
npm run serve
cp -R build/* ../docs/API Doc using @stoplight/elements
-
install packages :
@stoplight/elements,buffer,docusaurus-plugin-sass, process , sass, url -
Add plugins section to
docusaurus.config.jsfile..... import { ProvidePlugin } from "webpack"; ....... ........... .................. plugins: [ "docusaurus-plugin-sass", // Add custom webpack config to make @stoplight/elements work () => ({ name: "custom-webpack-config", configureWebpack: () => { return { module: { rules: [ { test: /\.m?js/, resolve: { fullySpecified: false, }, }, ], }, plugins: [ new ProvidePlugin({ process: require.resolve("process/browser"), }), ], resolve: { fallback: { buffer: require.resolve("buffer"), stream: false, path: false, process: false, }, }, }; }, }), ], ..... -
Useful examples:
To add a new API documentation entry, follow these steps:
-
Add the OpenAPI Specification
- Place your
openapi.jsonoropenapi.yamlfile under:/static/openapi-files/ors-openapi.json
- Place your
-
Create an MDX Page
- Inside the
/docsfolder, create an MDX file (e.g.,ors.md).
- Inside the
-
Set Up the API Documentation Renderer
- In the
/pagesfolder, create an API documentation renderer that loads the corresponding OpenAPI file.
- In the
-
Add a Link to the MDX Page
- In the MDX page, include a link to the newly created renderer page. The link will open the documentation in a new window.
-
Update the Sidebar Navigation
- Under the
'API Documentation'category in the sidebar, add the MDX page ID (e.g.,ors-docs) to ensure it appears in the navigation.
- Under the
