From eef44a22fefc2956630af7742d445f0568435b0e Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:33:32 -0400 Subject: [PATCH] DOC: Fix link to custom CSS example (#2025) As pointed out in https://github.com/pydata/pydata-sphinx-theme/issues/2023#issuecomment-2445060871 Fix https://github.com/pydata/pydata-sphinx-theme/issues/2023 --- docs/user_guide/styling.rst | 2 ++ docs/user_guide/web-components.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/user_guide/styling.rst b/docs/user_guide/styling.rst index f44d976ba..ed99cbaf4 100644 --- a/docs/user_guide/styling.rst +++ b/docs/user_guide/styling.rst @@ -35,6 +35,8 @@ To add a custom stylesheet, follow these steps: When you build your documentation, this stylesheet should now be activated. +.. _css-variables: + CSS theme variables =================== diff --git a/docs/user_guide/web-components.rst b/docs/user_guide/web-components.rst index 484166a83..927584aaf 100644 --- a/docs/user_guide/web-components.rst +++ b/docs/user_guide/web-components.rst @@ -139,7 +139,7 @@ Here are some of the available button-style links, also using semantic colors: native button components such as using the correct `ARIA attributes `__. -If in your site's `custom CSS file `_ you override the `CSS custom properties `_ ``--pst-color-*`` (where ``*`` is one of the semantic color names, such as ``primary``, ``danger``), badges and buttons will automatically use the custom color. +If in your site's :ref:`custom CSS file ` you override the :ref:`CSS custom properties ` ``--pst-color-*`` (where ``*`` is one of the semantic color names, such as ``primary``, ``danger``), badges and buttons will automatically use the custom color. Cards =====