mirror of
https://github.com/monero-project/monero-docs.git
synced 2024-12-22 11:39:35 +00:00
plugins: add macros
This commit is contained in:
parent
b87eb2233f
commit
ff1c226815
5 changed files with 19 additions and 0 deletions
0
docs/macros/includes/.gitignore
vendored
Normal file
0
docs/macros/includes/.gitignore
vendored
Normal file
5
docs/macros/monerod.yml
Normal file
5
docs/macros/monerod.yml
Normal 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
9
main.py
Normal 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
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue