Repository navigation
Releases
Releases · i-net-software/gradle-docfx-plugin
Release 0.1.0
Version 0.1.0
Fixed
- Fixed docFxZip archive naming: Zip archive now uses the original source file name (e.g.,
inetsoftware.Reporting.dll) instead of the generateddocfx.jsonfilename- Archive name format:
{originalSourceFileName}-docfx.zip(e.g.,inetsoftware.Reporting.dll-docfx.zip) - Users can override by setting
archiveBaseNameon thedocFxZiptask inbuild.gradle - This ensures consistent artifact naming that matches the source assembly
- Archive name format:
Full Changelog: 0000000...refs/tags/v0.1.0
Release 0.0.9
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
- Properties available:
Fixed
- Fixed DocFX detection to check
~/.dotnet/tools/docfxas fallback whendocfxis not in PATH - Plugin now correctly finds DocFX installed via
dotnet tool install -g docfxeven when~/.dotnet/toolsis not in PATH - Updated
isDocfxNativelySupported()andisDocfxInPath()to check~/.dotnet/tools/docfxlocation - 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
docfxcommand gracefully instead of failing the build- Logs a warning and continues execution when
docfxis not available - Allows build scripts to download/install DocFX without blocking the build
- Logs a warning and continues execution when
Changed
- BREAKING: Extension renamed from
docfxtodocFxConfigto match naming convention (capital F)- Use
docFxConfig { }to configure extension properties
- Use
- BREAKING: Plugin class renamed from
DocfxPlugintoDocFxPluginfor consistency- Update
apply plugin: de.inetsoftware.docfx.DocfxPlugintode.inetsoftware.docfx.DocFxPlugin
- Update
- BREAKING: All tasks renamed to follow consistent
docFxprefix naming schema (capital F):info→docFxInfo- Displays DocFX version informationdocfx→docFx- Generates documentation (main task)docfxClean→docFxClean- Cleans generated documentation filesdocfxZip→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/docfxwhen found there, ensuring correct execution - Plugin follows convention-over-configuration principle for dependency management
Full Changelog: 0000000...refs/tags/v0.0.9
Release 0.0.8
Version 0.0.8
Added
- Native DocFX support: Plugin now automatically detects and uses DocFX installed via
dotnet tool install -g docfxwhen available in PATH - Added
DocfxExtension.isDocfxNativelySupported()static method to check if DocFX is available in PATH from Gradle scripts - Plugin prefers native DocFX installation over extracted zip files to avoid architecture compatibility issues
Fixed
- Fixed DocFX execution on Linux/macOS by detecting and using correct executable format (docfx.exe, docfx.dll, or native docfx)
- Fixed
docfx.runtimeconfig.jsonhandling to removeincludedFrameworksand addframeworkdependency for framework-dependent execution - Added automatic .NET runtime version detection - plugin now detects installed .NET versions and uses appropriate framework version
- Fixed filter property handling - empty or null filter strings are now properly omitted from
docfx.json(prevents FileNotFoundException) - Improved executable detection logic to check
docfx.deps.jsonto determine which file format to use
Changed
- Default
filterproperty changed from empty string""tonull- empty strings are now converted tonullto prevent DocFX from trying to load non-existent filter files - Plugin now checks PATH for
docfxcommand before falling back todocsHomedirectory - Updated README with documentation for native DocFX installation method
Full Changelog: 0000000...refs/tags/v0.0.8