Skip to content

Commit

Permalink
docs: fix broken links (#3802)
Browse files Browse the repository at this point in the history
Co-authored-by: dangotbanned <125183946+dangotbanned@users.noreply.github.com>
  • Loading branch information
jannisko and dangotbanned authored Feb 17, 2025
1 parent f1e0049 commit a196172
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions altair/expr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ class expr(_ExprRef, metaclass=_ExprMeta):
``ExprRef``
.. _Expressions:
https://altair-viz.github.io/user_guide/interactions.html#expressions
https://altair-viz.github.io/user_guide/interactions/expressions.html
.. _inline expression:
https://altair-viz.github.io/user_guide/interactions.html#inline-expressions
https://altair-viz.github.io/user_guide/interactions/expressions.html#inline-expressions
.. _vega expression:
https://vega.github.io/vega/docs/expressions/
Expand Down
2 changes: 1 addition & 1 deletion altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ def param(
**kwds: Any,
) -> Parameter:
"""
Create a named parameter, see https://altair-viz.github.io/user_guide/interactions.html for examples.
Create a named parameter, see https://altair-viz.github.io/user_guide/interactions/parameters.html for examples.
Although both variable parameters and selection parameters can be created using
this 'param' function, to create a selection parameter, it is recommended to use
Expand Down
6 changes: 1 addition & 5 deletions tests/vegalite/v5/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,7 @@ def test_when_labels_position_based_on_condition() -> None:


def test_when_expressions_inside_parameters() -> None:
"""
Test for [2144026368-2](https://github.com/vega/altair/pull/3427#issuecomment-2144026368).
Original [expressions-inside-parameters](https://altair-viz.github.io/user_guide/interactions.html#expressions-inside-parameters)
"""
"""Test for [2144026368-2](https://github.com/vega/altair/pull/3427#issuecomment-2144026368)."""
import polars as pl

source = pl.DataFrame({"a": ["A", "B", "C"], "b": [28, -5, 10]})
Expand Down
4 changes: 2 additions & 2 deletions tools/vega_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ def PI(cls) -> {return_ann}:
``ExprRef``
.. _Expressions:
https://altair-viz.github.io/user_guide/interactions.html#expressions
https://altair-viz.github.io/user_guide/interactions/expressions.html
.. _inline expression:
https://altair-viz.github.io/user_guide/interactions.html#inline-expressions
https://altair-viz.github.io/user_guide/interactions/expressions.html#inline-expressions
.. _vega expression:
https://vega.github.io/vega/docs/expressions/
Expand Down

0 comments on commit a196172

Please sign in to comment.