After installing apidoc, use apidoc -h to check whether the installation is successful, and the result always prompts that'apidoc' is not an internal or external command, nor is it an executable program or batch file.
Enter the folder in the red box and you can see that apidoc has been installed successfully
If the problem is determined, it is good to configure the environment variables. Configure the environment variables
under the path.
It can also be executed in other
places. Enter the project root directory, create an apidoc.json file and execute the operation of generating the document