Heleonix.Docfx.Plugins.XmlDoc 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Heleonix.Docfx.Plugins.XmlDoc --version 2.1.1
NuGet\Install-Package Heleonix.Docfx.Plugins.XmlDoc -Version 2.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Heleonix.Docfx.Plugins.XmlDoc" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Heleonix.Docfx.Plugins.XmlDoc --version 2.1.1
#r "nuget: Heleonix.Docfx.Plugins.XmlDoc, 2.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Heleonix.Docfx.Plugins.XmlDoc as a Cake Addin
#addin nuget:?package=Heleonix.Docfx.Plugins.XmlDoc&version=2.1.1

// Install Heleonix.Docfx.Plugins.XmlDoc as a Cake Tool
#tool nuget:?package=Heleonix.Docfx.Plugins.XmlDoc&version=2.1.1

Heleonix.Docfx.Plugins.XmlDoc

Release: .NET / NuGet

The Docfx plugin to generate documentation from xml-based files via intermediate XSLT transformation into Markdown.

Install

https://www.nuget.org/packages/Heleonix.Docfx.Plugins.XmlDoc

Usage

  1. Install the plugin and make it accessible for Docfx as a custom template. See How to enable plugins
  2. If needed, configure the plugin in the Heleonix.Docfx.Plugins.XmlDoc.settings.json located in the same folder as the Heleonix.Docfx.Plugins.XmlDoc.dll:
    {
      "SupportedFormats": [ ".xml", ".xsd", ".yourformat" ]
    }
    
    By default, .xml and .xsd file formats are recognized.
  3. Configure the docfx.json with the plugin features. See the Example.

Example

Example of a configuration in a simple docfx.json file:

{
  "build": {
    "content": [
      {
        "files": [ "**/*.{md,yml}" ],
        "exclude": [ "_site/**" ]
      },
      {
        "files": [ "*.xsd" ],
        "src": "../../some-external-location"
      },
      {
        "files": [ "internal-store-folder/*.xsd" ]
      }
    ],
    "resource": [
      {
        "files": [ "images/**" ]
      }
    ],
    "output": "_site",
    "template": [
      "default",
      "templates/template-with-xmldoc-plugin"
    ],
    "fileMetadata": {
      "hx.xmldoc.xslt": { "**.xsd": "./xml-to-md.xslt" },
      "hx.xmldoc.store": { "../../some-external-location/*.xsd": "internal-store-folder" }
      "hx.xmldoc.toc": {
        "**/*-some.xsd": { "action": "InsertAfter", "key": "~/articles/introduction.md" },
        "**/*-other.xsd": { "action": "AppendChild", "key": "Namespace.Class.whatever.uid" }
      }
    }
  }
}

File Metadata

hx.xmldoc.xslt - path to XSLT file to convert xml-based file to Markdown, which is then converted into output HTML by Docfx.

hx.xmldoc.store - a folder inside your documentation proejct, where the corresponding xml-based files are copied to and then used as source files to generate output HTML from. This is useful, when original files are not always available. It works like metadata files generated from .NET projects/dlls/xml documentation. Hrefs to such files can be specified as internal-store-folder/your-file.xsd.

hx.xmldoc.toc - specifies where and how the your xml-based files should be added into Table Of Contents.

hx.xmldoc.toc / action - one of the TreeItemActionType

hx.xmldoc.toc / key - a TOC item key to apply the action. If the key starts with ~, then it is used as Href, otherwise as Uid.

Contribution Guideline

  1. Create a fork from the main repository

  2. Implement whatever is needed

  3. Create a Pull Request. Make sure the assigned Checks pass successfully. You can watch the progress in the PR: .NET GitHub workflows

  4. Request review from the code owner

  5. Once approved, merge your Pull Request via Squash and merge

    IMPORTANT
    While merging, enter a Conventional Commits commit message. This commit message will be used in automatically generated Github Release Notes and NuGet Release Notes

  6. Monitor the Release: .NET / NuGet GitHub workflow to make sure your changes are delivered successfully

  7. In case of any issues, please contact heleonix.sln@gmail.com

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 106 4/8/2024
2.1.1 149 3/30/2024
2.1.0 168 3/24/2024
2.0.0 153 3/24/2024
1.0.0 111 3/8/2024

"2.1.1 (3/30/2024)



Bug Fixes
   
- Improved project build properties.        

Other Changes
   
- Added Contribution Guideline."