- Issue the following git command
git worktree add --checkout ../gh-pages gh-pagesin the git root dotnet buildto build the dll for the metadata extraction.docfx metadatato generate the latest metadata.docfx buildto build the site into the gh-pages worktree location.docfx --serveto serve the site from the gh-pages worktree location.- If it all looks good, navigate the console to
../gh-pagesand commit/push the site updates.
I had to modify the metadata section of the docfx.json file from:
{
"metadata": [
{
"src": [
{
"files": [
"src/**.csproj"
],
"src": "../"
}
],
"dest": "api",
"disableGitFeatures": false
}
],
// ..
}to
{
"metadata": [
{
"src": [
{
"files": [
"OpenGraphNet.dll"
],
"src": "../src/OpenGraphNet/bin/Debug/net6.0"
}
],
"dest": "api",
"disableGitFeatures": false
}
],
// ...
}