From 32105ea3ea2374c999f8ec0b96917d75bbba5eb0 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Sat, 18 Jan 2025 17:20:43 +0300 Subject: [PATCH] [dotnet] Fix generation of public static html documentation --- .github/workflows/update-documentation.yml | 4 ---- Rakefile | 5 ++--- dotnet/docs/docfx.json | 5 ++--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index 8fe2983566455..e2c11fd0272d6 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -140,10 +140,6 @@ jobs: run: | git config --local user.email "selenium-ci@users.noreply.github.com" git config --local user.name "Selenium CI Bot" - - name: Install specific version of DocFX tool - # Pinning to 2.75.3 to avoid breaking changes in newer versions - # See https://github.com/dotnet/docfx/issues/9855 - run: dotnet tool install --global --version 2.75.3 docfx - name: Update Documentation if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'dotnet' run: ./go dotnet:docs diff --git a/Rakefile b/Rakefile index 398d3358a2eb1..a03e7228e2856 100644 --- a/Rakefile +++ b/Rakefile @@ -777,10 +777,9 @@ namespace :dotnet do task :docs, [:skip_update] do |_task, arguments| FileUtils.rm_rf('build/docs/api/dotnet/') begin - # Pinning to 2.75.3 to avoid breaking changes in newer versions - # See https://github.com/dotnet/docfx/issues/9855 + # Pinning to 2.78.2 to avoid breaking changes in newer versions sh 'dotnet tool uninstall --global docfx || true' - sh 'dotnet tool install --global --version 2.75.3 docfx' + sh 'dotnet tool install --global --version 2.78.2 docfx' # sh 'dotnet tool update -g docfx' rescue StandardError puts 'Please ensure that .NET SDK is installed.' diff --git a/dotnet/docs/docfx.json b/dotnet/docs/docfx.json index f85667fd6800e..1ae440cb281a2 100644 --- a/dotnet/docs/docfx.json +++ b/dotnet/docs/docfx.json @@ -11,7 +11,7 @@ ], "dest": "webdriver", "namespaceLayout": "nested", - "outputFormat": "apiPage" + //"outputFormat": "apiPage" // "apiPage" generation with errors }, { "src": [ @@ -24,9 +24,8 @@ ], "dest": "support", "namespaceLayout": "nested", - "outputFormat": "apiPage" + //"outputFormat": "apiPage" // "apiPage" generation with errors } - ], "build": { "content": [