This is the github repository for Paint.NET's Plugin API documentation: https://paintdotnet.github.io/apidocs/
This file is not part of the plugin API documentation. It is documentation for working on the documentation itself.
The API reference pages for namespaces, classes, structs, enums, etc. are automatically generated by docfx
.
NOTE: The docs
directory is generated by the build.cmd
batch file. Do not make edits in there, they will not persist.
Editing articles shouldn't require you to build the docs, but you will need to build the docs when it comes time to submit a pull request.
You can edit Markdown files (*.md) in Visual Studio Code, which has live preview. Here's my workflow:
- Open Visual Studio Code
- File -> Open Folder, point it to the ApiDocs folder
- Open up a .md file (like README.md or index.md or whatever) by double-clicking on it
- To open the preview tab, press Ctrl+Shift+V (or right click on the tab and then on Open Preview)
You will need to temporarily edit docfx.json
to point it at where you have the Paint.NET DLLs. Right now it's configured for where I (Rick) build locally.
How to build the docs and get into a nice edit/build loop:
- Run
restore.cmd
. It will installdocfx
. You only need to do this once. - Make sure you have already built Paint.NET in Visual Studio.
- Run
build_and_serve.cmd
. It will build the docs (might take a few minutes!) and will then host the website locally so you can view it. - Make your edits
- Go back to the console window where you ran
build_and_serve.cmd
and press Ctrl+C to kill it, then press Y for the "terminate batch file?" question. - If you made changes in the Paint.NET code, like adding or editing doc comments, make sure you do another Build -> Build Solution over in Visual Studio. docfx looks at the DLLs that are already built, it does not compile the code.
- Go back to step 3.
.