Improve docs extension for examples (#7900)
authorGereon Kremer <gkremer@stanford.edu>
Fri, 7 Jan 2022 22:25:38 +0000 (14:25 -0800)
committerGitHub <noreply@github.com>
Fri, 7 Jan 2022 22:25:38 +0000 (22:25 +0000)
commit0b7c568795ab413cce5710f1cf736f6cd3261a7e
tree97b32db49bb62e95213dcce25be0b009bd5088e1
parent5a3a6090c6e71de72f90b4e3e89af0eb9589b5d0
Improve docs extension for examples (#7900)

We recently added automatic download links for examples in our documentation, however they assumed everything to live inside the main cvc5 repo while, e.g., the examples for the z3py compat API do not. While #7896 provided a very simple fix, it mixes different concerns (rendering of tabs vs. locating the input files, though they should coincide right now).
This PR takes a more fundamental approach by extending the current pattern mechanism to allow for explicit url specification.

Closes #7896.
docs/conf.py.in
docs/ext/examples.py