Skip to content

Commit

Permalink
Support for other arch
Browse files Browse the repository at this point in the history
  • Loading branch information
vollous committed Dec 26, 2024
1 parent 62542dd commit cddd614
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@
latex_show_urls = 'footnote'

script_dir = os.path.dirname(os.path.abspath(__file__))
xml_default = os.path.join(script_dir, "..", "build", "linux-x86_64-release","xml")
try:
preset = os.listdir(os.path.join(script_dir, "..", "build"))[0]
except:
raise Exception("No build arch found inside /build/.")
xml_default = os.path.join(script_dir, "..", "build", preset, "xml")
xml_directory = os.getenv('XML_DIR', xml_default)

breathe_projects = {
Expand Down

0 comments on commit cddd614

Please sign in to comment.