Forcing highlighting in Sphinx disabled

This commit is contained in:
Mateusz Pusz
2020-03-10 20:46:52 +01:00
parent c1c07b697a
commit d67eabf310
2 changed files with 2 additions and 9 deletions

View File

@@ -5,4 +5,3 @@ avg_speed
:caption: avg_speed.cpp
:start-at: #include
:linenos:
:force:

View File

@@ -196,10 +196,7 @@ reference ("kilohours" does not have much sense, right?). The `ratio` type
used in the definition is really similar to ``std::ratio`` but it takes
the third additional argument that defines the exponent of the ratio.
Thanks to it we can address nearly infinite scaling factors between units
and define units like:
.. code-block::
:force:
and define units like::
struct electronvolt : named_scaled_unit<electronvolt, "eV", prefix,
ratio<1'602'176'634, 1'000'000'000, -19>, joule> {};
@@ -248,10 +245,7 @@ complete list of all the :term:`SI` prefixes supported by the library::
}
Alternative hierarchy of prefixes is the one used in data information
domain:
.. code-block::
:force:
domain::
namespace data {