plugins: add macros

This commit is contained in:
nahuhh 2024-09-19 21:02:58 +00:00
parent b87eb2233f
commit ff1c226815
5 changed files with 19 additions and 0 deletions

0
docs/macros/includes/.gitignore vendored Normal file
View file

5
docs/macros/monerod.yml Normal file
View file

@ -0,0 +1,5 @@
lmdb_size_full: 220
lmdb_size_pruned: 80
lmdb_size_updated: 2024-09-19
cli_vers: v0.18.3.4

9
main.py Normal file
View file

@ -0,0 +1,9 @@
def define_env(env):
"""
This is the hook for the variables, macros and filters.
"""
@env.macro
def multiply(arg1, arg2):
"Multiply 2 numbers"
return arg1 * arg2

View file

@ -184,6 +184,10 @@ plugins:
htmlmin_opts:
remove_comments: true
- privacy
- macros:
include_dir: docs/macros/includes
include_yaml:
- docs/macros/monerod.yml
- i18n:
docs_structure: folder
languages:

View file

@ -32,3 +32,4 @@ requests==2.32.3
six==1.16.0
urllib3==2.2.2
watchdog==4.0.1
mkdocs-macros-plugin==1.2.0