Fix auth examples for pdoc
Change-Id: Ie29595f52793fcf35dc1c043017fd510df5af7e3
diff --git a/KorAPClient/__init__.py b/KorAPClient/__init__.py
index 07ecb2a..2e4411d 100644
--- a/KorAPClient/__init__.py
+++ b/KorAPClient/__init__.py
@@ -132,22 +132,23 @@
Potentially authorized `KorAPConnection`|`RS4` with access token in `.slots['accessToken']`.
Example:
-
- # Create a KorAPConnection object without an existing access token
+ ```
+ ### Create a KorAPConnection object without an existing access token
kcon = KorAPConnection(accessToken=None, verbose=True).auth()
- # Perform a query using the authenticated connection
+ ### Perform a query using the authenticated connection
q = kcon.corpusQuery("Ameisenplage", metadataOnly=False)
- # Fetch all results
+ ### Fetch all results
q = q.fetchAll()
- # Access the collected matches
+ ### Access the collected matches
print(q.slots['collectedMatches'].snippet)
+ ```
"""