Base
Renderer
Bases: ABC
Base Renderer class
Source code in dvc_render/base.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
generate_html(html_path=None)
Return DIV
formatted with partial_html
.
Source code in dvc_render/base.py
58 59 60 61 62 63 64 65 |
|
generate_markdown(report_path=None)
Generate a markdown element
Source code in dvc_render/base.py
67 68 69 |
|
matches(filename, properties=None)
classmethod
Check if the Renderer is suitable.
Source code in dvc_render/base.py
71 72 73 74 |
|
partial_html(**kwargs)
abstractmethod
Us this method to generate HTML content,
to fill {partial}
inside self.DIV.
Source code in dvc_render/base.py
33 34 35 36 37 38 39 |
|
remove_special_chars(string)
staticmethod
Ensure string is valid HTML id.
Source code in dvc_render/base.py
51 52 53 54 55 56 |
|