Files
gitea-pages/main.py
armborst_f ff43ae7cca
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 18s
bugfix
2025-11-28 10:38:19 +01:00

20 lines
637 B
Python

def define_env(env):
"""
This is the hook function for the variables, macros and filters.
"""
@env.macro
def ScheduleTableHead():
code = '''| <div style="width:110px">**Time**</div> | **Machine State** | **Description** | <div style="width:90px"> **Contact**</div> |
| :- | :- |:- |:- |'''
return code
@env.macro
def ElogOP(nr):
code = '[OP-Log {:}](https://elog-gfa.psi.ch/SLS/{:})'.format(nr, nr)
return code
@env.macro
def ElogDEV(nr):
code = '[Dev-Log {:}](https://elog-gfa.psi.ch/SLS+Development/{:})'.format(nr, nr)
return code