Skip to content

Commit 21e761e

Browse files
authored
fix: fix docs warnings in Sphinx 3.0+ (#70)
* docs: fix Sphinx auto-gen warnings * Fix docs warning in changelog
1 parent 4b3d179 commit 21e761e

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

CHANGELOG.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,45 @@
44

55
[1]: https://pypi.org/project/google-cloud-pubsub/#history
66

7-
### [1.4.2](https://www.github.com/googleapis/python-pubsub/compare/v1.4.1...v1.4.2) (2020-03-25)
8-
7+
## [1.4.2](https://www.github.com/googleapis/python-pubsub/compare/v1.4.1...v1.4.2) (2020-03-25)
98

109
### Bug Fixes
1110

1211
* update generated retry timings for publish and pull rpcs via synth ([#43](https://www.github.com/googleapis/python-pubsub/issues/43)) ([4f7fe85](https://www.github.com/googleapis/python-pubsub/commit/4f7fe85618d811fea94cb46b5dc758aa78c328a8))
1312
* use client_options.api_endpoint parameter instead of ignoring it ([#59](https://www.github.com/googleapis/python-pubsub/issues/59)) ([56b8d7b](https://www.github.com/googleapis/python-pubsub/commit/56b8d7b046a495ce2ce59bebdd354385147a5013)), closes [#61](https://www.github.com/googleapis/python-pubsub/issues/61)
1413

15-
### [1.4.1](https://www.github.com/googleapis/python-pubsub/compare/v1.4.0...v1.4.1) (2020-03-23)
16-
14+
## [1.4.1](https://www.github.com/googleapis/python-pubsub/compare/v1.4.0...v1.4.1) (2020-03-23)
1715

1816
### Bug Fixes
1917

2018
* Don't assert on unordered publishes after publish error. ([#49](https://www.github.com/googleapis/python-pubsub/issues/49)) ([ea19ce6](https://www.github.com/googleapis/python-pubsub/commit/ea19ce616f6961e8993b72cd2921f7f3e61541f9))
2119

2220
## [1.4.0](https://www.github.com/googleapis/python-pubsub/compare/v1.3.1...v1.4.0) (2020-03-06)
2321

24-
2522
### Features
2623

2724
* **pubsub:** implement max_duration_per_lease_extension option ([#38](https://www.github.com/googleapis/python-pubsub/issues/38)) ([d911a2d](https://www.github.com/googleapis/python-pubsub/commit/d911a2dc8edf3c348ad3f128368b30e32dbc449e))
2825

29-
### [1.3.1](https://www.github.com/googleapis/python-pubsub/compare/v1.3.0...v1.3.1) (2020-02-28)
30-
26+
## [1.3.1](https://www.github.com/googleapis/python-pubsub/compare/v1.3.0...v1.3.1) (2020-02-28)
3127

3228
### Bug Fixes
3329

3430
* shutdown error on streaming pull callback error ([#40](https://www.github.com/googleapis/python-pubsub/issues/40)) ([552539e](https://www.github.com/googleapis/python-pubsub/commit/552539e7beb30833c39dd29bfcb0183a07895f97))
3531

3632
## [1.3.0](https://www.github.com/googleapis/python-pubsub/compare/v1.2.0...v1.3.0) (2020-02-20)
3733

38-
3934
### Features
4035

4136
* **pubsub:** ordering keys ([#26](https://www.github.com/googleapis/python-pubsub/issues/26)) ([cc3093a](https://www.github.com/googleapis/python-pubsub/commit/cc3093a2c0304259bc374bc2eeec9630e4a11a5e))
4237
* add context manager capability to subscriber ([#32](https://www.github.com/googleapis/python-pubsub/issues/32)) ([b58d0d8](https://www.github.com/googleapis/python-pubsub/commit/b58d0d8e404c0a085b89d3407e6640651e81568c))
4338

4439
## [1.2.0](https://www.github.com/googleapis/python-pubsub/compare/v1.1.0...v1.2.0) (2020-02-05)
4540

46-
4741
### Features
4842

4943
* **pubsub:** add delivery attempt property to message object received by user code ([#10205](https://www.github.com/googleapis/google-cloud-python/issues/10205)) ([a0937c1](https://www.github.com/googleapis/python-pubsub/commit/a0937c13107b92271913de579b60f24b2aaac177))
5044
* add `StreamingPullRequest.client_id` field (via synth) ([199d56a](https://www.github.com/googleapis/python-pubsub/commit/199d56a939bb6244f67138f843dafdd80721f0d3))
5145

52-
5346
### Bug Fixes
5447

5548
* **pubsub:** handle None in on response callback ([#9982](https://www.github.com/googleapis/google-cloud-python/issues/9982)) ([6596c4b](https://www.github.com/googleapis/python-pubsub/commit/6596c4bae5526d82f5c1b5e0c243b2883404d51f))
@@ -158,7 +151,7 @@
158151
- Use kwargs in test_subscriber_client ([#8414](https://github.com/googleapis/google-cloud-python/pull/8414))
159152

160153
### New Features
161-
- Add 'options_' argument to clients' 'get_iam_policy'; pin black version (via synth). ([#8657](https://github.com/googleapis/google-cloud-python/pull/8657))
154+
- Add `options_` argument to clients' `get_iam_policy`; pin black version (via synth). ([#8657](https://github.com/googleapis/google-cloud-python/pull/8657))
162155
- Add 'client_options' support, update list method docstrings (via synth). ([#8518](https://github.com/googleapis/google-cloud-python/pull/8518))
163156

164157
### Dependencies
@@ -420,8 +413,7 @@
420413

421414
### New Features
422415

423-
- A new implementation of the subscriber has been added. This is available as `SubscriberClient.subscribe_experimental`. In the next release, this will be replace the current `subscribe` method. If you use this, please report your
424-
findings to us on GitHub. (#5189, #5201, #5210, #5229, #5230, #5237, #5256)
416+
- A new implementation of the subscriber has been added. This is available as `SubscriberClient.subscribe_experimental`. In the next release, this will be replace the current `subscribe` method. If you use this, please report your findings to us on GitHub. (#5189, #5201, #5210, #5229, #5230, #5237, #5256)
425417

426418
### Dependencies
427419

@@ -524,6 +516,7 @@ PyPI: https://pypi.org/project/google-cloud-pubsub/0.30.1/
524516
when a "monitor" worker calls `commit()` after `max_latency` seconds,
525517
a failure can occur if a new message is added to the batch **during**
526518
the commit. To fix, the following changes were implemented:
519+
527520
- Adding a "STARTING" status for `Batch.commit()` (#4614). This
528521
fixes the issue when the batch exceeds `max_messages`.
529522
- Adding extra check in `Batch.will_accept` for the number of
@@ -601,10 +594,12 @@ PyPI: https://pypi.org/project/google-cloud-pubsub/0.29.3/
601594
running after encountering an exception (#4472, #4498). This bug
602595
is the **only** reason for the `0.29.2` release.
603596
- Thread Changes
597+
604598
- Added names to all threads created directly by Pub / Sub (#4474,
605599
#4476, #4480). Also removing spaces and colons from thread
606600
names (#4476).
607601
- Logging changes
602+
608603
- Adding debug logs when lease management exits (#4484)
609604
- Adding debug logs when `QueueCallbackThread` exits (#4494).
610605
Instances handle the processing of messages in a
@@ -656,6 +651,6 @@ PyPI: https://pypi.org/project/google-cloud-pubsub/0.29.1/
656651
- Upgrading to `google-cloud-core >= 0.28.0` and adding dependency
657652
on `google-api-core` (#4221, #4280)
658653
- Deferring to `google-api-core` for `grpcio` and
659-
`googleapis-common-protos`dependencies (#4096, #4098)
654+
`googleapis-common-protos` dependencies (#4096, #4098)
660655

661656
PyPI: https://pypi.org/project/google-cloud-pubsub/0.29.0/

docs/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"sphinx.ext.napoleon",
3939
"sphinx.ext.todo",
4040
"sphinx.ext.viewcode",
41+
"recommonmark",
4142
]
4243

4344
# autodoc/autosummary flags
@@ -49,10 +50,6 @@
4950
# Add any paths that contain templates here, relative to this directory.
5051
templates_path = ["_templates"]
5152

52-
# Allow markdown includes (so releases.md can include CHANGLEOG.md)
53-
# http://www.sphinx-doc.org/en/master/markdown.html
54-
source_parsers = {".md": "recommonmark.parser.CommonMarkParser"}
55-
5653
# The suffix(es) of source filenames.
5754
# You can specify multiple suffix as a list of string:
5855
# source_suffix = ['.rst', '.md']

docs/subscriber/api/message.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Messages
33

44
.. autoclass:: google.cloud.pubsub_v1.subscriber.message.Message
55
:members:
6+
:noindex:

docs/types.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Pub/Sub Client Types
33

44
.. automodule:: google.cloud.pubsub_v1.types
55
:members:
6+
:noindex:

0 commit comments

Comments
 (0)