mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
docs: Broken links to examples source code fixed
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
avg_speed
|
avg_speed
|
||||||
=========
|
=========
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/avg_speed.cpp
|
.. literalinclude:: ../../../example/references/avg_speed.cpp
|
||||||
:caption: avg_speed.cpp
|
:caption: avg_speed.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
box_example
|
box_example
|
||||||
===========
|
===========
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/box_example.cpp
|
.. literalinclude:: ../../../example/references/box_example.cpp
|
||||||
:caption: box_example.cpp
|
:caption: box_example.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
capacitor_time_curve
|
capacitor_time_curve
|
||||||
====================
|
====================
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/capacitor_time_curve.cpp
|
.. literalinclude:: ../../../example/references/capacitor_time_curve.cpp
|
||||||
:caption: capacitor_time_curve.cpp
|
:caption: capacitor_time_curve.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
clcpp_response
|
clcpp_response
|
||||||
==============
|
==============
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/clcpp_response.cpp
|
.. literalinclude:: ../../../example/references/clcpp_response.cpp
|
||||||
:caption: clcpp_response.cpp
|
:caption: clcpp_response.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
experimental_angle
|
experimental_angle
|
||||||
==================
|
==================
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/experimental_angle.cpp
|
.. literalinclude:: ../../../example/references/experimental_angle.cpp
|
||||||
:caption: experimental_angle.cpp
|
:caption: experimental_angle.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
foot_pound_second
|
foot_pound_second
|
||||||
=================
|
=================
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/foot_pound_second.cpp
|
.. literalinclude:: ../../../example/references/foot_pound_second.cpp
|
||||||
:caption: foot_pound_second.cpp
|
:caption: foot_pound_second.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -13,7 +13,7 @@ This example presents the usage of:
|
|||||||
- quantities text output formatting,
|
- quantities text output formatting,
|
||||||
- cooperation with `std::chrono`.
|
- cooperation with `std::chrono`.
|
||||||
|
|
||||||
.. literalinclude:: ../../example/glide_computer/include/glide_computer.h
|
.. literalinclude:: ../../../example/glide_computer/include/glide_computer.h
|
||||||
:caption: glide_computer.h
|
:caption: glide_computer.h
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:end-before: using namespace units;
|
:end-before: using namespace units;
|
||||||
@ -35,7 +35,7 @@ For example we have 3 for a quantity of length:
|
|||||||
- ``height`` - a relative altitude difference between 2 points in the air
|
- ``height`` - a relative altitude difference between 2 points in the air
|
||||||
- ``altitude`` - an absolute altitude value measured form the mean sea level (AMSL).
|
- ``altitude`` - an absolute altitude value measured form the mean sea level (AMSL).
|
||||||
|
|
||||||
.. literalinclude:: ../../example/glide_computer/include/glide_computer.h
|
.. literalinclude:: ../../../example/glide_computer/include/glide_computer.h
|
||||||
:caption: glide_computer.h
|
:caption: glide_computer.h
|
||||||
:start-at: using namespace units;
|
:start-at: using namespace units;
|
||||||
:end-before: // text output
|
:end-before: // text output
|
||||||
@ -44,7 +44,7 @@ For example we have 3 for a quantity of length:
|
|||||||
|
|
||||||
Next a custom text output is provided both for C++ output streams and the text formatting facility.
|
Next a custom text output is provided both for C++ output streams and the text formatting facility.
|
||||||
|
|
||||||
.. literalinclude:: ../../example/glide_computer/include/glide_computer.h
|
.. literalinclude:: ../../../example/glide_computer/include/glide_computer.h
|
||||||
:caption: glide_computer.h
|
:caption: glide_computer.h
|
||||||
:start-at: // text output
|
:start-at: // text output
|
||||||
:end-before: // definition of glide computer databases and utilities
|
:end-before: // definition of glide computer databases and utilities
|
||||||
@ -58,13 +58,13 @@ convert it to the one required by the engine interface.
|
|||||||
The glide calculator takes task created as a list of waypoints, glider performance data, weather conditions,
|
The glide calculator takes task created as a list of waypoints, glider performance data, weather conditions,
|
||||||
safety constraints, and a towing height.
|
safety constraints, and a towing height.
|
||||||
|
|
||||||
.. literalinclude:: ../../example/glide_computer/include/glide_computer.h
|
.. literalinclude:: ../../../example/glide_computer/include/glide_computer.h
|
||||||
:caption: glide_computer.h
|
:caption: glide_computer.h
|
||||||
:start-at: // definition of glide computer databases and utilities
|
:start-at: // definition of glide computer databases and utilities
|
||||||
:linenos:
|
:linenos:
|
||||||
:lineno-match:
|
:lineno-match:
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/glide_computer_example.cpp
|
.. literalinclude:: ../../../example/references/glide_computer_example.cpp
|
||||||
:caption: glide_computer_example.cpp
|
:caption: glide_computer_example.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
@ -74,7 +74,7 @@ Having all of that it estimates the number of flight phases (towing, circling, g
|
|||||||
needed to finish a task. As an output it provides the duration needed to finish the task while
|
needed to finish a task. As an output it provides the duration needed to finish the task while
|
||||||
flying a selected glider in the specific weather conditions.
|
flying a selected glider in the specific weather conditions.
|
||||||
|
|
||||||
.. literalinclude:: ../../example/glide_computer/glide_computer.cpp
|
.. literalinclude:: ../../../example/glide_computer/glide_computer.cpp
|
||||||
:caption: glide_computer.cpp
|
:caption: glide_computer.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
hello_units
|
hello_units
|
||||||
===========
|
===========
|
||||||
|
|
||||||
.. literalinclude:: ../../example/hello_units.cpp
|
.. literalinclude:: ../../../example/hello_units.cpp
|
||||||
:caption: hello_units.cpp
|
:caption: hello_units.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
total_energy
|
total_energy
|
||||||
============
|
============
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/total_energy.cpp
|
.. literalinclude:: ../../../example/references/total_energy.cpp
|
||||||
:caption: total_energy.cpp
|
:caption: total_energy.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
unknown_dimension
|
unknown_dimension
|
||||||
=================
|
=================
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/unknown_dimension.cpp
|
.. literalinclude:: ../../../example/references/unknown_dimension.cpp
|
||||||
:caption: unknown_dimension.cpp
|
:caption: unknown_dimension.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
linear_algebra
|
linear_algebra
|
||||||
==============
|
==============
|
||||||
|
|
||||||
.. literalinclude:: ../../example/references/linear_algebra.cpp
|
.. literalinclude:: ../../../example/references/linear_algebra.cpp
|
||||||
:caption: linear_algebra.cpp
|
:caption: linear_algebra.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
measurement
|
measurement
|
||||||
===========
|
===========
|
||||||
|
|
||||||
.. literalinclude:: ../../example/measurement.cpp
|
.. literalinclude:: ../../../example/measurement.cpp
|
||||||
:caption: measurement.cpp
|
:caption: measurement.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
custom_systems
|
custom_systems
|
||||||
==============
|
==============
|
||||||
|
|
||||||
.. literalinclude:: ../../example/custom_systems.cpp
|
.. literalinclude:: ../../../example/custom_systems.cpp
|
||||||
:caption: custom_systems.cpp
|
:caption: custom_systems.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
conversion_factor
|
conversion_factor
|
||||||
=================
|
=================
|
||||||
|
|
||||||
.. literalinclude:: ../../example/conversion_factor.cpp
|
.. literalinclude:: ../../../example/conversion_factor.cpp
|
||||||
:caption: conversion_factor.cpp
|
:caption: conversion_factor.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
|
Reference in New Issue
Block a user