Use apiDefine to set a global apiVerion
Author: Stimm4Created Mar 6, 2023Updated Jun 9, 2024
Describe the bug
With NodeJS project using several pages, I need to set the latest version of all functions documentated. To do this I use apiDefine that is use as below, but on my documentation, the version is still 0.0.0. Whereas, the api_doc version is at 0.1.0.
Steps to reproduce
apidoc.json:
{ "name": "Documentation du Sokoro", "version": "0.1.0", "description": "", "header": { "title": "Scripts extra logiciel", "filename": "header.md" } }
Header.js: `/**
- @apiDefine API_VERSION @apiVersion 0.1.0 */
/**
- @api {variable} ethConfObj ethConfObj
- @apiGroup Header
- @apiUse API_VERSION
- @apiDescription The description */`
Information
- Version of apidoc: 0.54.0
- Operating system: Windows
- Node version: 18.14.2
- Browser: Microsoft Edge
Source: apidoc/apidoc