|
|
před 7 roky | |
|---|---|---|
| .. | ||
| archetypes | před 7 roky | |
| assets | před 7 roky | |
| content | před 7 roky | |
| diagrams | před 7 roky | |
| layouts | před 7 roky | |
| static | před 7 roky | |
| README.md | před 7 roky | |
| config.toml | před 7 roky | |
| tsconfig.json | před 7 roky | |
This is the source for the Vendure documentation website. Docs are written in markdown and the website is generated with Hugo.
Currently requires the extended Hugo binary (for Sass support).
The API docs are generated from the TypeScript source files by running the "generate-docs" script:
yarn generate-docs [-w]
This script uses the TypeScript compiler API to traverse the server source code and extract data about the types as well as other information such as descriptions and default values.
Currently, any interface which includes the JSDoc @docCategory tag will be extracted into a markdown file in the content/docs/api directory. Hugo can then build the API documentation from these markdown files. This will probably be expanded to be able to parse class and type declarations too.