Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
69115cd
✨ add cuemon.kernel package to the README.md
gimlichael Nov 21, 2026
c6a7b09
📝 remove availability note from PortablePhysicalFileProvider.md
gimlichael Nov 21, 2026
c1b996e
🙈 ignore generated docfx run-actions output
aicia-bot Nov 21, 2026
26c713e
📝 update docfx documentation maintenance rules in agents guide
aicia-bot Nov 21, 2026
8c2c506
✨ add docfx run-actions build and template support
aicia-bot Nov 21, 2026
024d9b1
📝 update docfx api namespace and type overwrite files
aicia-bot Nov 21, 2026
dea3f41
🔧 update docfx run-actions manifest and settings
aicia-bot Nov 21, 2026
e6b7adf
📝 update docfx api type overwrite examples
aicia-bot Nov 21, 2026
5cb65a2
🔧 update docfx run-actions script, manifest, and settings
aicia-bot Nov 21, 2026
a89394a
📝 update docfx api type overwrite examples
aicia-bot Nov 21, 2026
9c23729
🔧 update docfx run-actions script, manifest, and settings
aicia-bot Nov 21, 2026
626664f
📝 update docfx api type overwrite examples
aicia-bot Nov 21, 2026
4dbe97e
🔨 enforce host build and probe timeouts in docfx run actions
aicia-bot Nov 22, 2026
8d87de8
📝 enable host run actions for app tag helper options
aicia-bot Nov 22, 2026
906538e
📝 update changelog with docfx run-actions and api examples changes
gimlichael Nov 22, 2026
385f155
📝 update docfx availability documentation scope and guidelines
gimlichael Nov 22, 2026
0eb09d5
🔨 add net48 support to docfx run-actions
aicia-bot Nov 22, 2026
7f3f5e7
🔨 harden docfx run-action generation and image verification
aicia-bot Nov 23, 2026
52dc7e4
👷 validate docfx run-actions in pr and release workflows
aicia-bot Nov 23, 2026
d535215
📝 document docfx build entry points in agents guide
aicia-bot Nov 23, 2026
0848083
⚗️ add multi-tfm docfx metadata consolidation poc
aicia-bot Nov 23, 2026
8f912b9
🔧 remove hardcoded target framework from docfx metadata groups
aicia-bot Nov 23, 2026
ee8b022
⚗️ add native docfx framework views poc
aicia-bot Nov 23, 2026
4a2a7b0
🔨 support unsigned metadata and framework views in docfx scripts
aicia-bot Nov 24, 2026
848bd65
♻️ delegate docfx framework-view fixture to shared builder
aicia-bot Nov 24, 2026
407be41
👷 add docfx framework-view workflow job
aicia-bot Nov 24, 2026
53875b1
📝 document docfx local build prerequisites
aicia-bot Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .docfx/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ wwwroot/
obj/
bin/
*.ps1
!run-actions/**/*.ps1
28 changes: 25 additions & 3 deletions .docfx/BuildDocfxImage.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#requires -Version 7.0
<#
.SYNOPSIS
Generates run-action scripts and DocFX metadata, validates generated assets,
builds the multi-platform DocFX container image, and verifies the published site
inside the built image.
#>
[CmdletBinding()]
param(
# Regenerate metadata even when the inputs and generated files are unchanged.
Expand Down Expand Up @@ -52,8 +59,11 @@ function Get-MetadataFiles {
$totalTimer = [Diagnostics.Stopwatch]::StartNew()
Push-Location $PSScriptRoot
try {
& (Join-Path $PSScriptRoot 'BuildRunActions.ps1')
& (Join-Path $PSScriptRoot 'TestRunActions.ps1')
$docfxRoot = $PSScriptRoot
$repoRoot = Split-Path -Parent $docfxRoot
$skipSignAssembly = !(Test-Path -LiteralPath (Join-Path $repoRoot 'cuemon.snk') -PathType Leaf)
$sourceRoot = Join-Path $repoRoot 'src'
$docfxConfig = Get-Content -LiteralPath (Join-Path $docfxRoot 'docfx.json') -Raw | ConvertFrom-Json
$version = minver -i -t v -v w
Expand Down Expand Up @@ -103,7 +113,7 @@ try {
}
)
$inputValues = @(
$version; $docfxVersion; $sdkVersion; $revision; $branch
$version; $docfxVersion; $sdkVersion; $revision; $branch; "SkipSignAssembly=$skipSignAssembly"
$docfxConfig.metadata | ConvertTo-Json -Depth 100 -Compress
foreach ($name in @('CI', 'EMAIL', 'Configuration', 'MSBuildSDKsPath', 'DOTNET_ROOT', 'NUGET_PACKAGES', 'GITHUB_RUN_NUMBER')) {
"$name=$([Environment]::GetEnvironmentVariable($name))"
Expand All @@ -130,12 +140,18 @@ try {
$metadataTimer = [Diagnostics.Stopwatch]::StartNew()
# One restore graph replaces DocFX's separate restore for each project.
$restoreSolution = Join-Path ([IO.Path]::GetTempPath()) ("cuemon-docfx-{0}.slnx" -f [Guid]::NewGuid())
$restoreProperties = @()
$metadataProperties = @()
if ($skipSignAssembly) {
$restoreProperties = @('-p:SkipSignAssembly=true')
$metadataProperties = @('--property', 'SkipSignAssembly=true')
}
try {
$projectsXml = foreach ($project in $sourceProjects) {
' <Project Path="{0}" />' -f [Security.SecurityElement]::Escape($project)
}
@('<Solution>') + $projectsXml + @('</Solution>') | Set-Content -LiteralPath $restoreSolution -Encoding utf8
dotnet restore $restoreSolution --verbosity quiet
dotnet restore $restoreSolution --verbosity quiet @restoreProperties
Assert-CommandSucceeded 'dotnet restore'
} finally {
if (Test-Path -LiteralPath $restoreSolution) { Remove-Item -LiteralPath $restoreSolution }
Expand All @@ -146,7 +162,7 @@ try {
foreach ($file in $metadataFiles) { Remove-Item -LiteralPath $file }
$generationFingerprint = Get-Fingerprint $inputPaths $inputValues
# Keep all groups in one process; DocFX carries resolver state across groups.
docfx metadata docfx.json --noRestore
docfx metadata docfx.json --noRestore @metadataProperties
Assert-CommandSucceeded 'docfx metadata'
$metadataFiles = @(Get-MetadataFiles)
if ($metadataFiles.Count -eq 0) { throw 'DocFX did not generate metadata.' }
Expand All @@ -165,7 +181,13 @@ try {
$imageTimer = [Diagnostics.Stopwatch]::StartNew()
docker buildx build -t cuemon-docfx:$version --platform linux/arm64,linux/amd64 --load -f Dockerfile.docfx .
Assert-CommandSucceeded 'docker buildx build'

docker run --rm --entrypoint sh --mount "type=bind,source=$docfxRoot,target=/verify,readonly" cuemon-docfx:$version /verify/verify-docfx-site.sh --site /usr/share/nginx/html --source /verify --manifest /verify/run-actions.manifest.json
Assert-CommandSucceeded 'docker run verify-docfx-site'
Write-Host ('Docker image: {0:N2}s; total: {1:N2}s' -f $imageTimer.Elapsed.TotalSeconds, $totalTimer.Elapsed.TotalSeconds)
} finally {
Pop-Location
if (Test-Path -LiteralPath (Join-Path $PSScriptRoot 'run-actions')) {
Remove-Item -LiteralPath (Join-Path $PSScriptRoot 'run-actions') -Recurse -Force
}
}
563 changes: 563 additions & 0 deletions .docfx/BuildRunActions.ps1

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions .docfx/Dockerfile.docfx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Supported entry points (run from .docfx/ or pass .docfx as build context):
# 1. pwsh .docfx/BuildDocfxImage.ps1 (recommended: generates run-actions, metadata, and Docker image)
# 2. Direct docker build:
# pwsh .docfx/BuildRunActions.ps1
# pwsh .docfx/TestRunActions.ps1
# docfx metadata .docfx/docfx.json
# docker build -f .docfx/Dockerfile.docfx .docfx
# Direct builds fail immediately if generated run-actions/ scripts are missing or incomplete.

ARG NGINX_VERSION=1.31-alpine

FROM --platform=$BUILDPLATFORM dhi.io/nginx:${NGINX_VERSION} AS base
Expand All @@ -7,8 +16,11 @@ FROM --platform=$BUILDPLATFORM codebeltnet/docfx:2 AS build

ADD [".", "docfx"]

RUN cd docfx; \
docfx build
RUN set -eu; \
cd docfx; \
sh ./verify-docfx-site.sh --context .; \
docfx build; \
sh ./verify-docfx-site.sh --site wwwroot --source . --manifest run-actions.manifest.json

FROM dhi.io/nginx:${NGINX_VERSION} AS final
WORKDIR /usr/share/nginx/html
Expand Down
Loading
Loading