This repository contains the documentation website code and Markdown source files for https://superface.ai/docs.
- Clone the repo, then yarn installandyarn start
- 
Make your desired changes to the documents inside /docsdirectory
 It uses a standard Markdown syntax, but can be extended with custom React components via MDX.
- 
Put your static content (e.g. images) to /staticdirectory
 When linking to it from the docs, just drop/staticfrom path, e.g. rendering/img/diagram.pngwill render an image saved at/static/img/diagram.png.
- 
Reference other docs via Markdown file path 
 Linking to another document is preferably done via specifying the relative path to that document (./next-step.md). Exceptions are pages placed insrc/pages/directory that need to be linked using their respective routes.
- 
Page rename, new page, category; or change of structure 
 If you added a whole new category, page or simply want to change the table of contents, you'll need to updatesidebars.js. It uses document IDs that are simply a path to the file minus the extension (unless explicitly defined inside the document).
- 
Changing links in header navigation 
 Navigation links are defined indocusaurus.config.jsinthemeConfig.navbar.itemsobject.
- When you're happy with your changes, open a PR and get it reviewed by someone.
 Opening a PR will automatically deploy an online preview of your docs. It also verifies the build doesn't contain any broken links.
- Once your changes are verified and reviewed by another pair of eyes, it is ready to be merged to main.
 Merging will automatically deploymainbranch to production.
These docs are built using Docusaurus 3.
Details
The site is deployed on Vercel.
All deployments are automated via GitHub Actions and you can keep track of them in the repository's environments.
- Preview: gets deployed for each PR
- Production: gets deployed continuously from mainbranch
Each deploy first verifies the validity of the build.
If you'd like to build locally:
yarn buildThe Superface documentation is licensed under a Creative Commons Attribution 4.0 International license.