Adding a plugin #105
-
I have tried to add the plugin sample to my project because I wanted to add a yaml header section to all markdown files. Sadly I have failed, somehow I'm not able to include it. Anyways, this is what I've done:
That should be it. Then I get an error that the section "New" is not known/found I could not find how to properly do this in the documentation here on GitHub. Has anyone successfully added a custom section? The background is that i want to publish this documentation on GitHub Pages with Jekyll. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry I completely forgot to update the plugin sample after releasing the new version. If you use a plugin from the same solution as your project, you should first check that the plugin project and your own project reference the same version of DefaultDocumentation package ( ...
<PropertyGroup>
<DefaultDocumentationPlugins>$(SolutionDir)DefaultDocumentation.PluginExample/lib/netstandard2.0/DefaultDocumentation.PluginExample.dll</DefaultDocumentationPlugins>
</PropertyGroup>
... I have updated the readme here with those info. Tell me if you still have issues. |
Beta Was this translation helpful? Give feedback.
Sorry I completely forgot to update the plugin sample after releasing the new version. If you use a plugin from the same solution as your project, you should first check that the plugin project and your own project reference the same version of DefaultDocumentation package (
DefaultDocumentation
for the project,DefaultDocumentation.Api
for the plugin, the sample of this repo referenced the beta package of the api...).Then you should add a reference to your compiled plugin in a
<DefaultDocumentationPlugins>
property of your csproj like so (or use the absolute path if you are not sure):