fix(docs): invert vectorized diagram SVGs in dark mode (#27574)

* fix(docs): invert vectorized diagram SVGs in dark mode

* docs(docs): Apply fix as a class

* Add yarn lock to fix CI

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
Aditya Bidwai
2026-06-23 23:20:57 -05:00
committed by GitHub
parent 41c6dcaf70
commit 0861ba0088
6 changed files with 21 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ Companion computers ("mission computers"), are separate on-vehicle computers tha
The diagram below shows a possible architecture for an unmanned vehicle architecture that includes a flight controller and companion computer.
![PX4 architecture - FC + Companion Computer](../../assets/diagrams/px4_companion_computer_simple.svg)
<img src="../../assets/diagrams/px4_companion_computer_simple.svg" alt="PX4 architecture - FC + Companion Computer" class="diagram-invert">
<!-- source for drawing: https://docs.google.com/drawings/d/1ZDSyj5djKCEbabgx8K4ESdTeEUizgEt8spUWrMGbHUE/edit?usp=sharing -->

View File

@@ -24,4 +24,4 @@ Provides a delay between assertion of "armed" and a ramp-up of throttle on asser
## State Transition Diagram
![PWM Limit state machine diagram](../../assets/diagrams/pwm_limit_state_diagram.svg)
<img src="../../assets/diagrams/pwm_limit_state_diagram.svg" alt="PWM Limit state machine diagram" class="diagram-invert">

View File

@@ -11,7 +11,7 @@ Offboard APIs are covered in [ROS](../ros/index.md) and [MAVSDK](https://mavsdk.
The diagram below provides a high level overview of a typical "simple" PX4 system based around a flight controller.
![PX4 architecture - FC only system](../../assets/diagrams/px4_arch_fc.svg)
<img src="../../assets/diagrams/px4_arch_fc.svg" alt="PX4 architecture - FC only system" class="diagram-invert">
<!-- Source for drawing: https://docs.google.com/drawings/d/1_2n43WrbkWTs1kz0w0avVEeebJbfTj5SSqvCmvSOBdU/edit -->
@@ -34,7 +34,7 @@ The left hand side of the diagram shows the software stack, which is horizontall
The diagram below shows a PX4 system that includes both a flight controller and a companion computer (here referred to as a "mission computer").
![PX4 architecture - FC + Companion Computer](../../assets/diagrams/px4_arch_fc_companion.svg)
<img src="../../assets/diagrams/px4_arch_fc_companion.svg" alt="PX4 architecture - FC + Companion Computer" class="diagram-invert">
<!-- source for drawing: https://docs.google.com/drawings/d/1zFtvA_B-BmfmxFmAd-XIvAZ-jRqOydj0aBtqSolBcqI/edit -->