Skip to content

Commit 836d71f

Browse files
authored
Reduce redirected links in docs (#898)
1 parent 37bb302 commit 836d71f

File tree

17 files changed

+48
-43
lines changed

17 files changed

+48
-43
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ jobs:
1414
- name: Install Python
1515
uses: actions/setup-python@v5
1616
with:
17-
python-version: "3.11"
17+
python-version: "3.13"
18+
19+
- name: Install UV
20+
uses: astral-sh/setup-uv@v7
1821

1922
- name: Install msgspec and dependencies
2023
run: |
21-
pip install -e ".[doc]"
24+
uv venv --no-project
25+
uv pip install -e ".[doc]"
2226
2327
- name: Build Docs
2428
run: |
2529
pushd docs
26-
make html
30+
uv run make html
2731
popd
2832
2933
- name: Check links

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
[![License](https://img.shields.io/github/license/jcrist/msgspec.svg)](https://github.com/jcrist/msgspec/blob/main/LICENSE)
1212
[![PyPI Version](https://img.shields.io/pypi/v/msgspec.svg)](https://pypi.org/project/msgspec/)
1313
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/msgspec.svg)](https://anaconda.org/conda-forge/msgspec)
14-
[![Code Coverage](https://codecov.io/gh/jcrist/msgspec/branch/main/graph/badge.svg)](https://codecov.io/gh/jcrist/msgspec)
14+
[![Code Coverage](https://codecov.io/gh/jcrist/msgspec/branch/main/graph/badge.svg)](https://app.codecov.io/gh/jcrist/msgspec)
1515

1616
</div>
1717

1818
`msgspec` is a *fast* serialization and validation library, with builtin
1919
support for [JSON](https://json.org), [MessagePack](https://msgpack.org),
20-
[YAML](https://yaml.org), and [TOML](https://toml.io). It features:
20+
[YAML](https://yaml.org), and [TOML](https://toml.io/en/). It features:
2121

2222
- 🚀 **High performance encoders/decoders** for common protocols. The JSON and
2323
MessagePack implementations regularly
@@ -35,7 +35,7 @@ support for [JSON](https://json.org), [MessagePack](https://msgpack.org),
3535

3636
-**A speedy Struct type** for representing structured data. If you already
3737
use [dataclasses](https://docs.python.org/3/library/dataclasses.html) or
38-
[attrs](https://www.attrs.org),
38+
[attrs](https://www.attrs.org/en/stable/),
3939
[structs](https://jcristharif.com/msgspec/structs.html) should feel familiar.
4040
However, they're
4141
[5-60x faster](https://jcristharif.com/msgspec/benchmarks.html#structs)
@@ -91,7 +91,7 @@ msgspec.ValidationError: Expected `str`, got `int` - at `$.groups[0]`
9191

9292
`msgspec` is designed to be as performant as possible, while retaining some of
9393
the nicities of validation libraries like
94-
[pydantic](https://pydantic-docs.helpmanual.io/). For supported types,
94+
[pydantic](https://docs.pydantic.dev/latest/). For supported types,
9595
encoding/decoding a message with `msgspec` can be
9696
[~10-80x faster than alternative libraries](https://jcristharif.com/msgspec/benchmarks.html).
9797

docs/source/_static/esmerald.png

-17.1 KB
Binary file not shown.

docs/source/_static/ravyn.png

12.2 KB
Loading

docs/source/benchmarks.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ popular Python JSON libraries.
130130
- json_ (standard library)
131131

132132
The full benchmark source can be found
133-
`here <https://github.com/jcrist/msgspec/tree/main/benchmarks/bench_encodings.py>`__.
133+
`here <https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_encodings.py>`__.
134134

135135
.. raw:: html
136136

@@ -187,7 +187,7 @@ For each library, we measure both the peak increase in memory usage (RSS) and
187187
the time to JSON decode the file.
188188

189189
The full benchmark source can be found `here
190-
<https://github.com/jcrist/msgspec/tree/main/benchmarks/bench_large_json.py>`__.
190+
<https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_large_json.py>`__.
191191

192192
**Results (smaller is better):**
193193

@@ -252,7 +252,7 @@ For each library, the following operations are benchmarked:
252252
- Time to compare two instances for order (``<``/``>``/``<=``/``>=``)
253253

254254
The full benchmark source can be found `here
255-
<https://github.com/jcrist/msgspec/tree/main/benchmarks/bench_structs.py>`__.
255+
<https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_structs.py>`__.
256256

257257
**Results (smaller is better):**
258258

@@ -299,7 +299,7 @@ of the benchmarked type, then measure:
299299
- The total amount of memory used by this data structure
300300

301301
The full benchmark source can be found `here
302-
<https://github.com/jcrist/msgspec/tree/main/benchmarks/bench_gc.py>`__.
302+
<https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_gc.py>`__.
303303

304304
**Results (smaller is better):**
305305

@@ -342,7 +342,7 @@ Here we compare the on-disk size of ``msgspec`` and ``pydantic``, its closest
342342
equivalent.
343343

344344
The full benchmark source can be found `here
345-
<https://github.com/jcrist/msgspec/tree/main/benchmarks/bench_library_size.py>`__.
345+
<https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_library_size.py>`__.
346346

347347
**Results (smaller is better)**
348348

@@ -540,9 +540,9 @@ smaller on disk.
540540
.. _simdjson: https://github.com/TkTech/pysimdjson
541541
.. _ujson: https://github.com/ultrajson/ultrajson
542542
.. _rapidjson: https://github.com/python-rapidjson/python-rapidjson
543-
.. _attrs: https://www.attrs.org
543+
.. _attrs: https://www.attrs.org/en/stable/
544544
.. _dataclasses: https://docs.python.org/3/library/dataclasses.html
545-
.. _pydantic: https://pydantic-docs.helpmanual.io/
545+
.. _pydantic: https://docs.pydantic.dev/latest/
546546
.. _cattrs: https://catt.rs/en/latest/
547547
.. _mashumaro: https://github.com/Fatal1ty/mashumaro
548548
.. _conda-forge: https://conda-forge.org/

docs/source/changelog.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ Version 0.15.0 (2023-05-10)
194194
---------------------------
195195

196196
- Add support for Generic `Struct` types (:pr:`386`, :pr:`393`).
197-
- Add support for Generic `dataclasses` and `attrs <https://attrs.org>`__ types
198-
(:pr:`396`).
197+
- Add support for Generic `dataclasses` and
198+
`attrs <https://www.attrs.org/en/stable/>`__ types (:pr:`396`).
199199
- Add support for Generic `typing.TypedDict` and `typing.NamedTuple` types
200200
(:pr:`398`).
201201
- **BREAKING**: No longer normalize timezones to UTC when decoding `datetime`
@@ -234,7 +234,8 @@ Version 0.14.1 (2023-04-07)
234234
Version 0.14.0 (2023-04-02)
235235
---------------------------
236236

237-
- Support encoding and decoding `attrs <https://attrs.org>`__ types (:pr:`323`).
237+
- Support encoding and decoding `attrs <https://www.attrs.org/en/stable/>`__
238+
types (:pr:`323`).
238239
- Add ``repr_omit_defaults`` configuration option for omitting struct default
239240
values in the ``repr`` (:pr:`322`).
240241
- Expose a struct's configuration through a ``__struct_config__`` attribute

docs/source/converters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ The implementation in ``msgspec.toml`` is *almost* identical to the one above,
135135
with some additional code for error handling.
136136

137137

138-
.. _TOML: https://toml.io
138+
.. _TOML: https://toml.io/en/

docs/source/examples/asyncio-kv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ messages. The length of each message is prefixed to each message
2323
to make it easier to efficiently determine message boundaries.
2424

2525
The full example source can be found `here
26-
<https://github.com/jcrist/msgspec/blob/main/examples/asyncio-kv>`__.
26+
<https://github.com/jcrist/msgspec/tree/main/examples/asyncio-kv>`__.
2727

2828
.. literalinclude:: ../../../examples/asyncio-kv/kv.py
2929
:language: python

docs/source/examples/conda-repodata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ determine the top 10 packages by file size.
6464
**Source**
6565

6666
The full example source can be found `here
67-
<https://github.com/jcrist/msgspec/blob/main/examples/conda-repodata>`__.
67+
<https://github.com/jcrist/msgspec/tree/main/examples/conda-repodata>`__.
6868

6969
.. literalinclude:: ../../../examples/conda-repodata/query_repodata.py
7070
:language: python

docs/source/examples/geojson.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ types, and :ref:`struct-tagged-unions` to differentiate between them. See the
2121
relevant docs for more information.
2222

2323
The full example source can be found `here
24-
<https://github.com/jcrist/msgspec/blob/main/examples/geojson>`__.
24+
<https://github.com/jcrist/msgspec/tree/main/examples/geojson>`__.
2525

2626
.. literalinclude:: ../../../examples/geojson/msgspec_geojson.py
2727
:language: python

0 commit comments

Comments
 (0)