The website of DevToys
- Build the documentation website from the submodule/
git submodule update --init --recursive;
git submodule update --remote --merge;
dotnet tool update -g docfx;
docfx ".\submodule\Documentation\docfx.json";
- Copy the documentation website to the
wwwroot
folder
# Remove the 'doc' directory if it exists
Remove-Item -Path ".\src\Website\wwwroot\doc" -Recurse -Force;
# Clear the 'submodule' directory in the _site folder.
Remove-Item -Path ".\submodule\Documentation\_site\submodule" -Recurse -Force;
# Copy the documentation website to the 'doc' directory
Copy-Item -Path ".\submodule\Documentation\_site" -Destination ".\src\Website\wwwroot\doc" -Recurse -Force;
- Build and publish
Website.sln
.