Skip to content

Release 0.0.9

Choose a tag to compare

@github-actions github-actions released this 28 Nov 07:05
· 2 commits to master since this release

Version 0.0.9

Added

  • Auto-configure dependencies: Plugin now automatically detects custom Docs tasks and makes docfxZip depend on them
  • Plugin automatically hooks docfxZip into preparePublish task if it exists
  • Removes need for build scripts to manually configure dependencies
  • Delegated properties on tasks: Tasks now support setting extension properties directly (e.g., docFx.source = '...', docFx.title = '...')
    • Properties available: source, docsHome, locale, filter, title, companyName, companyUrl, environment, additionalResources
    • This provides seamless access to extension properties from build scripts

Fixed

  • Fixed DocFX detection to check ~/.dotnet/tools/docfx as fallback when docfx is not in PATH
  • Plugin now correctly finds DocFX installed via dotnet tool install -g docfx even when ~/.dotnet/tools is not in PATH
  • Updated isDocfxNativelySupported() and isDocfxInPath() to check ~/.dotnet/tools/docfx location
  • Fixed docFxZip task configuration timing: Moved zip task 'from' configuration to docFx.doLast instead of zipTask.doFirst
    • This ensures _site directory exists before configuring the zip task
    • Matches the original approach in docfx.gradle
    • Proper timing: docFx runs -> docFx.doLast configures zip -> zipTask runs
  • Fixed docFxZip source detection: Task now properly gets source from docFx task's extension after docFx runs
    • Source is correctly detected even when set in msbuild.doLast
    • Task configuration happens at the right time in the execution lifecycle
  • Fixed docFxInfo task: Task now handles missing docfx command gracefully instead of failing the build
    • Logs a warning and continues execution when docfx is not available
    • Allows build scripts to download/install DocFX without blocking the build

Changed

  • BREAKING: Extension renamed from docfx to docFxConfig to match naming convention (capital F)
    • Use docFxConfig { } to configure extension properties
  • BREAKING: Plugin class renamed from DocfxPlugin to DocFxPlugin for consistency
    • Update apply plugin: de.inetsoftware.docfx.DocfxPlugin to de.inetsoftware.docfx.DocFxPlugin
  • BREAKING: All tasks renamed to follow consistent docFx prefix naming schema (capital F):
    • info → docFxInfo - Displays DocFX version information
    • docfx → docFx - Generates documentation (main task)
    • docfxClean → docFxClean - Cleans generated documentation files
    • docfxZip → docFxZip - Packages documentation into zip file
    • This provides consistent naming with capital F and prevents conflicts
  • isDocfxInPath() now returns the actual path to docfx when found (supports both PATH and ~/.dotnet/tools)
  • Plugin uses full path to ~/.dotnet/tools/docfx when found there, ensuring correct execution
  • Plugin follows convention-over-configuration principle for dependency management

Full Changelog: 0000000...refs/tags/v0.0.9