Show / Hide Table of Contents

How to generate API documentation with DocFX

  1. Download and install docfx.
  2. Make a sample project with the command docfx init -q.
  3. Move all the source code from the project to the created directory dofx_project/src.
  4. Generate the API documentation with the command docfx {filepath to the docfx_project directory}\docfx.json --serve.
  5. Now you can find the site hosted locally in the computer at http://localhost:8080/.
  6. To host the site online move the _site folder to the hosting server.
In This Article
Back to top Generated by DocFX