Skip to content

Commit

Permalink
Use relative instead of absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom committed Oct 3, 2024
1 parent 17968ea commit 7ccf77e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions doc/user_guide/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ Italian locale (named ``it-IT``) for both currencies and dates:
)
chart

.. image:: /_static/stocks_it-IT.svg
.. image:: ../_static/stocks_it-IT.svg
:alt: Area chart of stock prices using Italian locale

See https://unpkg.com/d3-format/locale/ for a list of available format locale names, and
Expand All @@ -890,4 +890,4 @@ The configured localization settings persist upon saving.

.. _Vega Themes: https://github.com/vega/vega-themes/
.. _`D3's localization support`: https://d3-wiki.readthedocs.io/zh-cn/master/Localization/
.. _Vega Theme Test: https://vega.github.io/vega-themes/?renderer=canvas
.. _Vega Theme Test: https://vega.github.io/vega-themes/?renderer=canvas
22 changes: 11 additions & 11 deletions doc/user_guide/interactions/jupyter_chart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cell evaluates to a ``JupyterChart`` instance. For example:
jchart = alt.JupyterChart(chart)
jchart
.. image:: /_static/jupyter_chart/simple_bar.svg
.. image:: ../../_static/jupyter_chart/simple_bar.svg
:alt: Bar chart with letters A through I on the x-axis


Expand All @@ -65,7 +65,7 @@ will immediately be displayed in place of the old one.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/updating_charts.mov">
<source src="../../_static/jupyter_chart/updating_charts.mov">
Your browser does not support the video tag.
</video>

Expand Down Expand Up @@ -123,7 +123,7 @@ is available as ``jchart.params.cutoff``.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/accessing_variable_params.mov">
<source src="../../_static/jupyter_chart/accessing_variable_params.mov">
Your browser does not support the video tag.
</video>

Expand All @@ -146,7 +146,7 @@ the ``cutoff`` parameter.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/observing_variable_params.mov">
<source src="../../_static/jupyter_chart/observing_variable_params.mov">
Your browser does not support the video tag.
</video>

Expand All @@ -158,7 +158,7 @@ attribute. Here's an example of updating the ``cutoff`` variable parameter by as
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/setting_variable_params.mov">
<source src="../../_static/jupyter_chart/setting_variable_params.mov">
Your browser does not support the video tag.
</video>

Expand All @@ -180,7 +180,7 @@ to the value of an ipywidgets ``IntSlider``.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/linking_variable_params.mov">
<source src="../../_static/jupyter_chart/linking_variable_params.mov">
Your browser does not support the video tag.
</video>

Expand Down Expand Up @@ -219,7 +219,7 @@ variable's value only from the ``IntSlider`` ipywidget.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/linking_variable_params2.mov">
<source src="../../_static/jupyter_chart/linking_variable_params2.mov">
Your browser does not support the video tag.
</video>

Expand Down Expand Up @@ -262,7 +262,7 @@ the legend.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/point_selection_param.mov">
<source src="../../_static/jupyter_chart/point_selection_param.mov">
Your browser does not support the video tag.
</video>

Expand Down Expand Up @@ -315,7 +315,7 @@ extract the selected rows in the input DataFrame.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/index_selection_param.mov">
<source src="../../_static/jupyter_chart/index_selection_param.mov">
Your browser does not support the video tag.
</video>

Expand Down Expand Up @@ -354,7 +354,7 @@ is a dictionary from column names to selection intervals
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/interval_selection_param.mov">
<source src="../../_static/jupyter_chart/interval_selection_param.mov">
Your browser does not support the video tag.
</video>

Expand Down Expand Up @@ -424,7 +424,7 @@ is used to combine the chart and HTML table in a column layout.
.. raw:: html

<video controls>
<source src="/_static/jupyter_chart/linking_interval_selection.mov">
<source src="../../_static/jupyter_chart/linking_interval_selection.mov">
Your browser does not support the video tag.
</video>

Expand Down
4 changes: 2 additions & 2 deletions doc/user_guide/saving_charts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ javascript-enabled web browser:
</body>
</html>

You can view the result here: `chart.html </_static/chart.html>`_.
You can view the result here: `chart.html <../_static/chart.html>`_.

By default, ``canvas`` is used for rendering the visualization in vegaEmbed. To
change to ``svg`` rendering, use the ``embed_options`` as such:
Expand Down Expand Up @@ -237,4 +237,4 @@ specification in the online Vega editor_.

.. _vl-convert: https://github.com/vega/vl-convert
.. _vegaEmbed: https://github.com/vega/vega-embed
.. _editor: https://vega.github.io/editor/
.. _editor: https://vega.github.io/editor/

0 comments on commit 7ccf77e

Please sign in to comment.