-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.py
More file actions
17 lines (14 loc) · 758 Bytes
/
main.py
File metadata and controls
17 lines (14 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This file is used by Mkdocs-Macros to define macros that can be used in the
# markdown files. The macros are defined in the `define_env` function and can
# be used in the markdown files by using the `{{macro_name}}` syntax.
def define_env(env):
"Defines macros for Mkdocs-Macros"
@env.macro
def tutorial_wip_warning(file_name):
return (
"# 🚧 Under Construction 🚧\n The HTML version of the tutorial "
"is currently under construction; in particular, the figure "
"annotations are missing. You may wish to view the PDF version "
f"[here](https://github.com/SoarGroup/Soar/releases/download/releases%2F{env.variables['soar_version']}/{file_name}) "
"instead."
)