Skip to content

Commit bcfe989

Browse files
committed
add doc build workflow
1 parent a2e056b commit bcfe989

File tree

5 files changed

+56
-44
lines changed

5 files changed

+56
-44
lines changed

.github/workflows/build-docs-pr.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docs Build (PR)
2+
3+
on:
4+
- pull_request
5+
6+
env:
7+
BuildNumber: "${{ github.run_number }}"
8+
9+
jobs:
10+
publish-prerelease:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: 6.0.x
19+
20+
- name: Restore dependencies
21+
run: dotnet restore
22+
23+
- name: Build
24+
run: dotnet build --no-restore
25+
26+
- name: Doc generation
27+
run: dotnet run --project ./tools/EdgeDB.DocGenerator/ -- $GITHUB_WORKSPACE

.github/workflows/build-docs-push.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docs Build (push)
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
7+
env:
8+
BuildNumber: "${{ github.run_number }}"
9+
10+
jobs:
11+
publish-prerelease:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 6.0.x
20+
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
24+
- name: Build
25+
run: dotnet build --no-restore
26+
27+
- name: Doc generation
28+
run: dotnet run --project ./tools/EdgeDB.DocGenerator/ -- $GITHUB_WORKSPACE

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -379,3 +379,4 @@ MigrationBackup/
379379
# Fody - auto-generated XML schema
380380
FodyWeavers.xsd
381381
src/EdgeDB.ExampleApp/dump.db
382+
docs/tmp/*

docs/api.rst

-16
Original file line numberDiff line numberDiff line change
@@ -2099,22 +2099,6 @@ API Documentation
20992099
:param T:
21002100
The inner type of the optional.
21012101

2102-
.. dn:method:: Create<T, T2>(T value, T2 other): Optional<T>
2103-
2104-
Creates a fuckign optionalll
2105-
2106-
:param T value:
2107-
aaa
2108-
2109-
:param T2 other:
2110-
aaa
2111-
2112-
:param T:
2113-
The inner type of the optional.
2114-
2115-
:param T2:
2116-
The 2nd
2117-
21182102
.. dn:method:: ToNullable<T>(this Optional<T> val): T?
21192103
21202104
Converts the :dn:class:`EdgeDB.Optional<T>` to a ``System.Nullable`1``.

docs/exceptions.rst

-28
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Exceptions
55
==========
66

7-
.. _edgedb-dotnet-api-edgedb.configurationexception:
8-
97
.. dn:class:: EdgeDB.ConfigurationException
108
119
Represents a generic configuration error.
@@ -28,8 +26,6 @@ Exceptions
2826
:param Exception inner:
2927
An inner exception.
3028

31-
.. _edgedb-dotnet-api-edgedb.connectionfailedexception:
32-
3329
.. dn:class:: EdgeDB.ConnectionFailedException
3430
3531
Represents a connection failure that cannot be retried.
@@ -46,8 +42,6 @@ Exceptions
4642
:param int attempts:
4743
The number of attempts made to connect.
4844

49-
.. _edgedb-dotnet-api-edgedb.connectionfailedtemporarilyexception:
50-
5145
.. dn:class:: EdgeDB.ConnectionFailedTemporarilyException
5246
5347
Represents a temporary connection failiure exception.
@@ -64,8 +58,6 @@ Exceptions
6458
:param SocketError error:
6559
The underlying socket error that caused this exception to be thrown.
6660

67-
.. _edgedb-dotnet-api-edgedb.customclientexception:
68-
6961
.. dn:class:: EdgeDB.CustomClientException
7062
7163
Represents a generic error with custom clients.
@@ -78,8 +70,6 @@ Exceptions
7870
:param string message:
7971
The error message describing why this exception was thrown.
8072

81-
.. _edgedb-dotnet-api-edgedb.edgedberrorexception:
82-
8373
.. dn:class:: EdgeDB.EdgeDBErrorException
8474
8575
Represents an exception that was caused by an error from EdgeDB.
@@ -105,8 +95,6 @@ Exceptions
10595
10696
Prettifies the error if it was a result of a bad query string; otherwise formats it.
10797

108-
.. _edgedb-dotnet-api-edgedb.edgedbexception:
109-
11098
.. dn:class:: EdgeDB.EdgeDBException
11199
112100
Represents a generic exception that occured with the edgedb library.
@@ -151,8 +139,6 @@ Exceptions
151139
:param Boolean shouldReconnect:
152140
Whether or not the client who caught this exception should reconnect.
153141

154-
.. _edgedb-dotnet-api-edgedb.invalidconnectionexception:
155-
156142
.. dn:class:: EdgeDB.InvalidConnectionException
157143
158144
Represents an error with the provided connection details.
@@ -165,8 +151,6 @@ Exceptions
165151
:param string message:
166152
The error message describing why this exception was thrown.
167153

168-
.. _edgedb-dotnet-api-edgedb.invalidsignatureexception:
169-
170154
.. dn:class:: EdgeDB.InvalidSignatureException
171155
172156
Represents an exception that occurs when the server signature is incorrect.
@@ -176,8 +160,6 @@ Exceptions
176160
177161
Constructs a new :dn:class:`EdgeDB.InvalidSignatureException`.
178162

179-
.. _edgedb-dotnet-api-edgedb.missingcodecexception:
180-
181163
.. dn:class:: EdgeDB.MissingCodecException
182164
183165
Represents an exception that occurs when the client doesn't have a codec for incoming or outgoing data.
@@ -190,8 +172,6 @@ Exceptions
190172
:param string message:
191173
The error message describing why this exception was thrown.
192174

193-
.. _edgedb-dotnet-api-edgedb.missingrequiredexception:
194-
195175
.. dn:class:: EdgeDB.MissingRequiredException
196176
197177
Represents an exception that occurs when required data isn't returned.
@@ -201,8 +181,6 @@ Exceptions
201181
202182
Constructs a new :dn:class:`EdgeDB.MissingRequiredException`.
203183

204-
.. _edgedb-dotnet-api-edgedb.notypeconverterexception:
205-
206184
.. dn:class:: EdgeDB.NoTypeConverterException
207185
208186
Represents an exception thrown when no type converter could be found.
@@ -241,8 +219,6 @@ Exceptions
241219
:param Exception inner:
242220
An optional inner exception.
243221

244-
.. _edgedb-dotnet-api-edgedb.resultcardinalitymismatchexception:
245-
246222
.. dn:class:: EdgeDB.ResultCardinalityMismatchException
247223
248224
Represents an exception that occurs when a queries cardinality isn't what the client was expecting.
@@ -258,8 +234,6 @@ Exceptions
258234
:param Cardinality actual:
259235
The actual cardinality
260236

261-
.. _edgedb-dotnet-api-edgedb.transactionexception:
262-
263237
.. dn:class:: EdgeDB.TransactionException
264238
265239
Represents an exception that occurs within transactions.
@@ -275,8 +249,6 @@ Exceptions
275249
:param Exception innerException:
276250
An optional inner exception.
277251

278-
.. _edgedb-dotnet-api-edgedb.unexpectedmessageexception:
279-
280252
.. dn:class:: EdgeDB.UnexpectedMessageException
281253
282254
Represents an exception that occurs when the client receives an unexpected message.

0 commit comments

Comments
 (0)