Skip to content

Commit 49f8188

Browse files
authored
Docfx fixes for latest version (confluentinc#2283)
1 parent 385429a commit 49f8188

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.semaphore/semaphore.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ blocks:
7070
- wget https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1
7171
- powershell -ExecutionPolicy ByPass -File dotnet-install.ps1 -Version 6.0.403 -InstallDir C:\dotnet
7272
- $Env:Path += ";C:\dotnet"
73-
- dotnet tool update -g docfx
7473
- dotnet restore
7574
- dotnet build Confluent.Kafka.sln -c ${Env:CONFIGURATION}
7675
- dotnet pack src/Confluent.Kafka/Confluent.Kafka.csproj -c ${Env:CONFIGURATION} --version-suffix ci-${Env:SEMAPHORE_JOB_ID} --output artifacts
@@ -84,9 +83,6 @@ blocks:
8483
- dotnet pack src/Confluent.SchemaRegistry.Serdes.Avro/Confluent.SchemaRegistry.Serdes.Avro.csproj -c ${Env:CONFIGURATION} --version-suffix ci-${Env:SEMAPHORE_JOB_ID} --output artifacts
8584
- dotnet pack src/Confluent.SchemaRegistry.Serdes.Protobuf/Confluent.SchemaRegistry.Serdes.Protobuf.csproj -c ${Env:CONFIGURATION} --version-suffix ci-${Env:SEMAPHORE_JOB_ID} --output artifacts
8685
- dotnet pack src/Confluent.SchemaRegistry.Serdes.Json/Confluent.SchemaRegistry.Serdes.Json.csproj -c ${Env:CONFIGURATION} --version-suffix ci-${Env:SEMAPHORE_JOB_ID} --output artifacts
87-
- docfx doc/docfx.json
88-
- tar.exe -cvzf docs-${Env:SEMAPHORE_JOB_ID}.zip doc/_site/*
89-
- move docs-${Env:SEMAPHORE_JOB_ID}.zip artifacts
9086
- artifact push workflow artifacts
9187
- name: 'Windows Artifacts on tagged commits'
9288
run:
@@ -103,7 +99,6 @@ blocks:
10399
- wget https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1
104100
- powershell -ExecutionPolicy ByPass -File dotnet-install.ps1 -Version 6.0.403 -InstallDir C:\dotnet
105101
- $Env:Path += ";C:\dotnet"
106-
- dotnet tool update -g docfx
107102
- dotnet restore
108103
- dotnet build Confluent.Kafka.sln -c ${Env:CONFIGURATION}
109104
- dotnet pack src/Confluent.Kafka/Confluent.Kafka.csproj -c ${Env:CONFIGURATION} --output artifacts
@@ -117,9 +112,6 @@ blocks:
117112
- dotnet pack src/Confluent.SchemaRegistry.Serdes.Avro/Confluent.SchemaRegistry.Serdes.Avro.csproj -c ${Env:CONFIGURATION} --output artifacts
118113
- dotnet pack src/Confluent.SchemaRegistry.Serdes.Protobuf/Confluent.SchemaRegistry.Serdes.Protobuf.csproj -c ${Env:CONFIGURATION} --output artifacts
119114
- dotnet pack src/Confluent.SchemaRegistry.Serdes.Json/Confluent.SchemaRegistry.Serdes.Json.csproj -c ${Env:CONFIGURATION} --output artifacts
120-
- docfx doc/docfx.json
121-
- tar.exe -cvzf docs-${Env:SEMAPHORE_JOB_ID}.zip doc/_site/*
122-
- move docs-${Env:SEMAPHORE_JOB_ID}.zip artifacts
123115
- artifact push workflow artifacts
124116
- name: 'Integration tests'
125117
dependencies: [ ]
@@ -131,6 +123,10 @@ blocks:
131123
commands:
132124
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
133125
jobs:
126+
- name: 'Build documentation'
127+
commands:
128+
- dotnet tool update -g docfx
129+
- docfx doc/docfx.json
134130
- name: 'Build and test with "classic" protocol'
135131
commands:
136132
- cd test/docker && docker-compose up -d && sleep 30 && cd ../..

doc/docfx.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@
44
"src": [
55
{
66
"files": [
7-
"src/**/*.cs"
7+
"src/Confluent.Kafka/Confluent.Kafka.csproj",
8+
"src/Confluent.SchemaRegistry**/*.csproj"
89
],
9-
"cwd": ".."
10+
"src": ".."
1011
}
1112
],
12-
"dest": "api"
13+
"dest": "api",
14+
"properties": {
15+
"TargetFramework": "net6.0"
16+
}
1317
}
14-
1518
],
1619
"build": {
1720
"content": [

0 commit comments

Comments
 (0)