Merge pull request #46 from nahuhh/macros

plugins: add macros
This commit is contained in:
nahuhh 2024-09-20 12:19:51 +00:00 committed by GitHub
commit ac3bb0670f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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