-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework conversion handling to prevent subtle errors (#80)
Fixes #63 Error on invalid formats for both global & local config, for the drawio valid formats and valid builder formats. Changes imgconverter tests to verify no unnecessary conversions and no erroring when using that extension.
- Loading branch information
Showing
9 changed files
with
99 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extensions = ["sphinxcontrib.drawio"] | ||
|
||
master_doc = "index" | ||
exclude_patterns = ["_build"] | ||
|
||
# removes most of the HTML | ||
html_theme = "basic" | ||
|
||
drawio_builder_export_format = {"html": "pdf"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. drawio-image:: box.drawio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
|
||
# removes most of the HTML | ||
html_theme = "basic" | ||
|
||
drawio_builder_export_format = {"html": "svg", "latex": "pdf"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extensions = ["sphinxcontrib.drawio"] | ||
|
||
master_doc = "index" | ||
exclude_patterns = ["_build"] | ||
|
||
# removes most of the HTML | ||
html_theme = "basic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. drawio-image:: pages.drawio | ||
:format: png | ||
:alt: out of range | ||
:page-index: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mxfile host="Electron" modified="2022-12-21T12:52:56.968Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/20.6.2 Chrome/106.0.5249.199 Electron/21.3.3 Safari/537.36" etag="5HcsiU377iumTImNEKXf" version="20.6.2" type="device" pages="6"><diagram id="GZmhYcr-ncgRq0jOcgJH" name="A">rZRNc4IwEIZ/DcfOKIhtjwp+dEbb6TjWTm8pWSFtyDIhFPHXN5EgUu20B09snt1Ndt9NcLwg3c0kyZIlUuCO26M7xwsd1+17w57+GFLV5M4b1iCWjNqgFqzYHiy0eXHBKOSdQIXIFcu6MEIhIFIdRqTEshu2Rd49NSMxnIFVRPg53TCqEtuFe9vyObA4aU7uD+9rT0qaYNtJnhCK5QnyJo4XSERVW+kuAG7Ea3Sp86a/eI+FSRDqPwlDdxo/pbheTGj6OsgGD2/P1Y3d5YvwwjZsi1VVo4DEQlAwm/Qcb1wmTMEqI5HxlnrmmiUq5XrV1+Z5Uc0JIBXsTpAtcgaYgpKVDrHeRq+quyxb9fsNS06Uby4asQOPjxu3mmjDynJZoiScFOvBxyMPXpbzzSIcsNH6gkSjM410a6orhISc7cn7IcDoRgqFeX27jZtwFgttR1onkBoYfZi+diPrSBmlJnmcIRPq0JM/dvxQky3jPECOOi0UKExQriR+wg/YHdwWhbLPSz/Bq0zK9/+alH+dQell+04OvpO/jTf5Bg==</diagram><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643Dttxhm0nPE4ieDsu/qV2OoX</diagram><diagram id="PmvFIfAPNmRKBYWDG9Gn" name="D">jZNNb4MwDIZ/DcdJhYx+HAt026W7dB/HKW1ciBZiFkIL/fULxZSyqtJOOI/t2LFfPBbn9bPhRbZGAcoLJqL2WOIFgc+mE/dpSdOROZt2IDVSUNAANvIEBCkvraSAchRoEZWVxRjuUGvY2RHjxuBxHLZHNa5a8BRuwGbH1S39lMJm9IpgNvAXkGnWV/ani86T8z6YXlJmXODxCrGVx2KDaDsrr2NQ7fD6uXR5T3e8l8YMaPufhPfZOvx5+/havZp4uV0Ey/lj80C3HLiq6MEJdWubfgQWalcgymyuHPCdaaCUJ749B0zcmVcWy251rZsrmWpn71xnYBw4gLHSzXRJjlwK0SZHBUptzxsKIy9MHNlLpWJU6NISjboNKq3Bb/gDDVZagKAG9qgtacfpi0X0KlcW6rvj8i9LcOoFzMGaxoVQQhB2GaTbfovHQQQhoexq/73cOckuvdw7bMYZtJz+OIjg7Lv6ldjqFw==</diagram><diagram id="WuyL8PAHfq40Bik2V_-U" name="E">jZPBboMwDIafhuOkQkTXHVfoWmnaoeqh54y4EC3EKISW9ulniillVaWdcD7bsWP/BCIp27WTVfGFCkwQzVQbiDSIolDMZ/TpyLknCzHvQe604qAR7PQFGHJe3mgF9STQIxqvqynM0FrI/IRJ5/A0DTugmVatZA4PYJdJ80j3WvmCXxG9jnwDOi+GyuH8rfeUcgjml9SFVHi6Q2IViMQh+t4q2wRMN7xhLn3exxPvrTEH1v8nQdtokX5ui83eqmR7zKt1Zl74lqM0DT94xd368zACDy0VWBa+NARCMh3U+iK/rwEzOsvGY92vrnNLo3NLdkadgSNwBOc1zfSdHaVWqkteVqitv24oXgZxSuSgjUnQIKWlFm0XVHuHP/AHOmysAsUNHNB61g7pSyz5VVQW2qfjCm9LIPUCluDdmUI4IYr7DNbtsMXTKIKYUXG3/0HukmWX3+4dN0MGL2c4jiK4+u5+JbH6BQ==</diagram><diagram id="eSY2IZH2ICmWwmnWPC8n" name="F">jZNNb4MwDIZ/DcdJQATbjoN+HbbLepi0W0pciBbiKqQt7a+fKaaUVZV2wnlsx479Eoi8bpdO7qoPVGCCOFRtIGZBHEciDenTkVNPXkTag9JpxUEjWOszMOS8cq8VNJNAj2i83k1hgdZC4SdMOofHadgWzbTqTpZwB9aFNPf0Sytf8Svi55GvQJfVUDlKX3tPLYdgfklTSYXHGyTmgcgdou+tus3BdMMb5tLnLR54r405sP4/CUkoNut6tvz8FkWzSlXl37MnvuUgzZ4fvOBu/WkYgYeWCmSVrw2BiEwHjT7LzSUgpLPce2z61XVuaXRpyS6oM3AEDuC8ppm+saPWSnXJ2Q619ZcNJVmQzIhstTE5GqS0mUXbBTXe4Q/8gQ73VoHiBrZoPWuH9CUyfhWVhfbhuKLrEki9gDV4d6IQToiTPoN1O2zxOIogYVTd7H+Qu2TZldd7x82QwcsZjqMILr6bX0nMfwE=</diagram></mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters