From 71d5320e65dfe95dd7dee7c474335cee914e7801 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Thu, 9 Jan 2025 17:59:57 +0100 Subject: [PATCH] Docs: remove CSS variables override for font-size (#11897) We don't need to tell the users to perform extra steps on these documentation tools because addons is going to do this by default now: https://github.com/readthedocs/addons/pull/473 --- :books: Documentation previews :books: - User's documentation (`docs`): https://docs--11897.org.readthedocs.build/en/11897/ - Developer's documentation (`dev`): https://dev--11897.org.readthedocs.build/en/11897/ --- docs/user/intro/mdbook.rst | 20 -------------------- docs/user/intro/mkdocs.rst | 21 --------------------- 2 files changed, 41 deletions(-) diff --git a/docs/user/intro/mdbook.rst b/docs/user/intro/mdbook.rst index adb27a97f28..71927cb29eb 100644 --- a/docs/user/intro/mdbook.rst +++ b/docs/user/intro/mdbook.rst @@ -33,26 +33,6 @@ Getting started .. _Getting started with mdBook: https://rust-lang.github.io/mdBook/guide/creating.html -Configuring mdBook and Read the Docs Addons -------------------------------------------- - -Adjust the flyout menu font size -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Add a ``readthedocs.css`` to your build with the `additional-css `_ flag, -so that the font in the :ref:`flyout-menu:Addons flyout menu` matches the theme better. - -.. code-block:: css - :caption: readthedocs.css: - - :root { - /* Increase the font size of the flyout menu */ - --readthedocs-flyout-font-size: 1.3rem; - - /* Increase the font size of the notifications */ - --readthedocs-notification-font-size: 1.3rem; - - } Example repository and demo --------------------------- diff --git a/docs/user/intro/mkdocs.rst b/docs/user/intro/mkdocs.rst index 0e4b92f371e..550e4570914 100644 --- a/docs/user/intro/mkdocs.rst +++ b/docs/user/intro/mkdocs.rst @@ -171,27 +171,6 @@ To integrate the :ref:`flyout-menu:Addons flyout menu` version menu into your si extra_javascript: - javascript/readthedocs.js -Adjust the flyout menu font size -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Add a ``readthedocs.css`` to your build, -so that the font in the :ref:`flyout-menu:Addons flyout menu` matches the theme better. - -.. code-block:: css - :caption: readthedocs.css: - - :root { - /* Reduce Read the Docs' flyout font a little bit */ - --readthedocs-flyout-font-size: 0.7rem; - - /* Reduce Read the Docs' notification font a little bit */ - --readthedocs-notification-font-size: 0.8rem; - - /* This customization is not yet perfect because we can't change the `line-height` yet. */ - /* See https://github.com/readthedocs/addons/issues/197 */ - --readthedocs-search-font-size: 0.7rem; - } - Example repository and demo ---------------------------