Skip to content

Commit b406f3d

Browse files
authored
Add documentation and release notes for #83 (#84)
Also prep to release v0.3.1.
1 parent b791151 commit b406f3d

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
extensions = [
3535
'sphinx.ext.autodoc',
3636
'sphinx.ext.autosummary',
37+
'sphinx.ext.extlinks',
3738
'sphinx.ext.githubpages',
3839
'sphinx.ext.intersphinx',
3940
'sphinx.ext.mathjax',
@@ -87,6 +88,11 @@
8788
# This patterns also effect to html_static_path and html_extra_path
8889
exclude_patterns = []
8990

91+
# Set up link shortcuts
92+
extlinks = {
93+
'issue': ('https://github.com/edgi-govdata-archiving/wayback/issues/%s', '#'),
94+
}
95+
9096
# The name of the Pygments (syntax highlighting) style to use.
9197
pygments_style = 'sphinx'
9298

docs/source/release-history.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Release History
33
===============
44

5+
v0.3.1 (2021-10-14)
6+
-------------------
7+
8+
Some Wayback CDX records have no ``length`` information, and previously caused :meth:`wayback.WaybackClient.search` to raise an exception. These records will have their ``length`` property set to ``None`` instead of a number. Thanks to @8W9aG for discovering this issue and addressing it. (:issue:`83`)
9+
10+
511
v0.3.0 (2021-03-19)
612
-------------------
713

@@ -158,7 +164,7 @@ You can check out the full API documentation for :class:`wayback.Memento`, but h
158164
v0.2.6 (2021-03-18)
159165
-------------------
160166

161-
Fix a major bug where a session’s ``timeout`` would not actually be applied to most requests. HUGE thanks to @LionSzl for discovering this issue and addressing it. (`#68 <https://github.com/edgi-govdata-archiving/wayback/pull/68>`_)
167+
Fix a major bug where a session’s ``timeout`` would not actually be applied to most requests. HUGE thanks to @LionSzl for discovering this issue and addressing it. (:issue:`68`)
162168

163169

164170
v0.3.0 Beta 1 (2021-03-15)
@@ -170,13 +176,13 @@ v0.3.0 Beta 1 (2021-03-15)
170176
v0.3.0 Alpha 3 (2020-11-05)
171177
---------------------------
172178

173-
Fixes a bug in the new :class:`wayback.Memento` type where header parsing would fail for mementos with schemeless ``Location`` headers. (`#61 <https://github.com/edgi-govdata-archiving/wayback/pull/61>`_)
179+
Fixes a bug in the new :class:`wayback.Memento` type where header parsing would fail for mementos with schemeless ``Location`` headers. (:issue:`61`)
174180

175181

176182
v0.3.0 Alpha 2 (2020-11-04)
177183
---------------------------
178184

179-
Fixes a bug in the new :class:`wayback.Memento` type where header parsing would fail for mementos with path-based ``Location`` headers. (`#60 <https://github.com/edgi-govdata-archiving/wayback/pull/60>`_)
185+
Fixes a bug in the new :class:`wayback.Memento` type where header parsing would fail for mementos with path-based ``Location`` headers. (:issue:`60`)
180186

181187

182188
v0.3.0 Alpha 1 (2020-10-20)
@@ -325,7 +331,7 @@ Finally, :func:`wayback.memento_url_data` now returns 3 values instead of 2. The
325331
v0.2.5 (2020-10-19)
326332
-------------------
327333

328-
This release fixes a bug where the ``target_window`` parameter for :meth:`wayback.WaybackClient.get_memento` did not work correctly if the memento you were redirected to was off by more than a day from the requested time. See `#53 <https://github.com/edgi-govdata-archiving/wayback/pull/53>`_ for more.
334+
This release fixes a bug where the ``target_window`` parameter for :meth:`wayback.WaybackClient.get_memento` did not work correctly if the memento you were redirected to was off by more than a day from the requested time. See :issue:`53` for more.
329335

330336

331337
v0.2.4 (2020-09-07)

wayback/_models.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
.. py:attribute:: length
3333
3434
Size of captured content in bytes, such as :data:`2767`. This may be
35-
inaccurate. If the record is a "revisit record", indicated by MIME type
36-
:data:`'warc/revisit'`, the length seems to be the length of the reference,
37-
not the length of the content itself.
35+
inaccurate, and may even be :data:`None` instead of an integer. If the record is a
36+
"revisit record", indicated by MIME type :data:`'warc/revisit'`, the length
37+
seems to be the length of the reference, not the length of the content
38+
itself. In other cases, the record has no length information at all, and
39+
this attribute will be :data:`None` instead of a number.
3840
3941
.. py:attribute:: mime_type
4042

0 commit comments

Comments
 (0)