fork/wezterm
git clone https://git.julia.blue/fork/wezterm
0fd76a77c
termiz-0.23.1
1import json 2 3# https://mkdocs-macros-plugin.readthedocs.io/en/latest/macros/ 4def define_env (env ): 5with open ("docs/releases.json" )as f : 6for (k ,v )in json .load (f ).items (): 7env .variables [k ]= v 8 9 10@ env . macro 11def since (vers ,outline = False ,inline = False ): 12if vers == "nightly" : 13# Determine the relative path traversal to the root, 14# so that we can emit the link to the install page 15rel_root = "../" * (len (env .page .url .split ('/' ))- 1 ) 16first_line = "*Since: Nightly Builds Only*" 17expanded = "+" 18blurb = f""" 19The functionality described in this section requires a nightly build of wezterm. 20You can obtain a nightly build by following the instructions from the 21[Download]( { rel_root } installation.md) section. 22""" 23else : 24first_line = f"*Since: Version { vers } *" 25expanded = "" 26blurb = f""" 27*The functionality described in this section requires version { vers } of wezterm, 28or a more recent version.* 29""" 30 31if outline : 32return f""" 33!!! info " { first_line } " 34{ blurb } 35""" 36 37if inline : 38return f"( { first_line } )" 39 40return f""" 41??? { expanded } info " { first_line } " 42{ blurb } 43"""