I've successfully generated a documentation website with DocFX for C# of apps written with .NET Core MVC and Razor Pages. The DocFX guide says it also supports generating API documentation for JavaScript. I want to do that for files in wwwroot folder of my MVC projects.
Right now, I'm just trying to generate the YAML files mentioned in section 2.2 General Metadata of the linked documentation. I created the node2doxfx.json
file:
{
"source": {
"include": [ "C:/Users/username/Source/Repos/Tracker/Scan/wwwroot/js" ]
},
"destination": "C:/Users/username/source/repos/Tracker/Documentation"
}
Then I ran the following command in the terminal:
node 'C:\Users\username\source\repos\Tracker\Scan\wwwroot\js\site.js' node2docfx.json
I get no error in the terminal when executing this command, but I don't see any files generated in .../Tracker/Documentation
destination folder.
Where is my mistake and how can I get this to work?