Skip to content

Commit 02a053e

Browse files
committed
docs: add other modules to docs generation
1 parent 26a3782 commit 02a053e

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

docs/generate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if [[ "$OUTDIR" == "" ]]; then
8282
fi
8383

8484
TITLE="Firebase Python SDK for Cloud Functions"
85-
PY_MODULES='firebase_functions firebase_functions.core firebase_functions.https firebase_functions.params firebase_functions.db'
85+
PY_MODULES='firebase_functions firebase_functions.core firebase_functions.https firebase_functions.params firebase_functions.db firebase_functions.options firebase_functions.pubsub firebase_functions.storage'
8686
DEVSITE_PATH='/docs/reference/functions-python'
8787

8888
#

src/firebase_functions/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class DatabaseOptions(RuntimeOptions):
377377
"""
378378
Specify the handler to trigger on a database instance(s).
379379
If present, this value can either be a single instance or a pattern.
380-
Examples: 'my-instance-1', 'my-instance-*'
380+
Examples: 'my-instance-1', 'my-instance-\\*'
381381
Note: The capture syntax cannot be used for 'instance'.
382382
"""
383383

src/firebase_functions/pubsub.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ def _message_handler(
157157
def on_message_published(**kwargs) -> _typing.Callable[[_C1], _C1]:
158158
"""
159159
Event handler which triggers on a message being published to a Pub/Sub topic.
160-
Example::
160+
161+
Example:
162+
163+
.. code-block:: python
164+
161165
@on_message_published(topic="hello-world")
162166
def example(event: CloudEvent[MessagePublishedData[object]]) -> None:
163167
pass

src/firebase_functions/storage.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ def on_object_archived(**kwargs) -> _typing.Callable[[_C1], _C1]:
266266
archived version, either because it was archived or because it was
267267
overwritten by the upload of an object of the same name.
268268
269-
Example::
269+
Example:
270+
271+
.. code-block:: python
272+
270273
@on_object_archived()
271274
def example(event: CloudEvent[StorageObjectData]) -> None:
272275
pass
@@ -299,7 +302,10 @@ def on_object_finalized(**kwargs) -> _typing.Callable[[_C1], _C1]:
299302
is successfully created in the bucket. This includes copying or rewriting
300303
an existing object. A failed upload does not trigger this event.
301304
302-
Example::
305+
Example:
306+
307+
.. code-block:: python
308+
303309
@on_object_finalized()
304310
def example(event: CloudEvent[StorageObjectData]) -> None:
305311
pass
@@ -333,7 +339,10 @@ def on_object_deleted(**kwargs) -> _typing.Callable[[_C1], _C1]:
333339
sent when an object is archived, even if archival occurs
334340
via the `storage.objects.delete` method.
335341
336-
Example::
342+
Example:
343+
344+
.. code-block:: python
345+
337346
@on_object_deleted()
338347
def example(event: CloudEvent[StorageObjectData]) -> None:
339348
pass
@@ -363,7 +372,10 @@ def on_object_metadata_updated(**kwargs) -> _typing.Callable[[_C1], _C1]:
363372
Event handler which fires every time the metadata of an existing object
364373
changes.
365374
366-
Example::
375+
Example:
376+
377+
.. code-block:: python
378+
367379
@on_object_metadata_updated()
368380
def example(event: CloudEvent[StorageObjectData]) -> None:
369381
pass

0 commit comments

Comments
 (0)