Skip to content

Commit 71d5320

Browse files
authored
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: readthedocs/addons#473 <!-- readthedocs-preview docs start --> --- :books: Documentation previews :books: - User's documentation (`docs`): https://docs--11897.org.readthedocs.build/en/11897/ <!-- readthedocs-preview docs end --> <!-- readthedocs-preview dev start --> - Developer's documentation (`dev`): https://dev--11897.org.readthedocs.build/en/11897/ <!-- readthedocs-preview dev end -->
1 parent ce422c1 commit 71d5320

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

docs/user/intro/mdbook.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,6 @@ Getting started
3333

3434
.. _Getting started with mdBook: https://rust-lang.github.io/mdBook/guide/creating.html
3535

36-
Configuring mdBook and Read the Docs Addons
37-
-------------------------------------------
38-
39-
Adjust the flyout menu font size
40-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41-
42-
Add a ``readthedocs.css`` to your build with the `additional-css <https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options>`_ flag,
43-
so that the font in the :ref:`flyout-menu:Addons flyout menu` matches the theme better.
44-
45-
.. code-block:: css
46-
:caption: readthedocs.css:
47-
48-
:root {
49-
/* Increase the font size of the flyout menu */
50-
--readthedocs-flyout-font-size: 1.3rem;
51-
52-
/* Increase the font size of the notifications */
53-
--readthedocs-notification-font-size: 1.3rem;
54-
55-
}
5636

5737
Example repository and demo
5838
---------------------------

docs/user/intro/mkdocs.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -171,27 +171,6 @@ To integrate the :ref:`flyout-menu:Addons flyout menu` version menu into your si
171171
extra_javascript:
172172
- javascript/readthedocs.js
173173
174-
Adjust the flyout menu font size
175-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176-
177-
Add a ``readthedocs.css`` to your build,
178-
so that the font in the :ref:`flyout-menu:Addons flyout menu` matches the theme better.
179-
180-
.. code-block:: css
181-
:caption: readthedocs.css:
182-
183-
:root {
184-
/* Reduce Read the Docs' flyout font a little bit */
185-
--readthedocs-flyout-font-size: 0.7rem;
186-
187-
/* Reduce Read the Docs' notification font a little bit */
188-
--readthedocs-notification-font-size: 0.8rem;
189-
190-
/* This customization is not yet perfect because we can't change the `line-height` yet. */
191-
/* See https://github.com/readthedocs/addons/issues/197 */
192-
--readthedocs-search-font-size: 0.7rem;
193-
}
194-
195174
Example repository and demo
196175
---------------------------
197176

0 commit comments

Comments
 (0)