diff --git a/mkdocs_macros/context.py b/mkdocs_macros/context.py index e5cec0c..e5596c5 100644 --- a/mkdocs_macros/context.py +++ b/mkdocs_macros/context.py @@ -107,12 +107,13 @@ def format_value(value): return repr(value) -def make_html(rows, header=[], tb_class='pretty'): +def make_html(rows, header=[], tb_class='macros-tb'): "Produce an HTML table" + font_color = "#000000" # black back_color = "#F0FFFF" # light blue grid_color = "#DCDCDC" padding = "5px" - style = "border:1px solid %s; padding: %s" % (grid_color, padding) + style = f"color:{font_color}; border:1px solid {grid_color}; padding: {padding}" templ = Template(""" {% for item in header %} diff --git a/setup.py b/setup.py index 2b109a5..bb664c4 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ # Initialization # -------------------- -VERSION_NUMBER = '1.0.2' +VERSION_NUMBER = '1.0.3' # required if you want to run document/test # pip install 'mkdocs-macros-plugin[test]' diff --git a/test/module/mkdocs.yml b/test/module/mkdocs.yml index a68ca5e..f50a2ee 100644 --- a/test/module/mkdocs.yml +++ b/test/module/mkdocs.yml @@ -1,5 +1,8 @@ site_name: Main test site -theme: material +theme: + name: material + palette: + scheme: slate copyright: (C) Laurent Franceschetti 2020 nav: