How to generate API documentation with DocFX
- Download and install docfx.
- Make a sample project with the command
docfx init -q
. - Move all the source code from the project to the created directory dofx_project/src.
- Generate the API documentation with the command
docfx {filepath to the docfx_project directory}\docfx.json --serve
. - Now you can find the site hosted locally in the computer at
http://localhost:8080/
. - To host the site online move the _site folder to the hosting server.