MkClassPage
An MkClassPage is an MkPage subclass used to display information about a specific class. It uses a Jinja template to display the class-related information. By default, the Docstrings, tables for sub and parent classes as well as an inheritance graph are shown. The template can be adjusted manually in case a different layout is preferred.
This is an example for an MkClassPage with the default layout:
---
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/pages/mkclasspage/__init__.py
source_function: MkClassPage.__init__
source_line_no: 46
inclusion_level: false
title: MkCode
---
### Sub classes
| Name | Children | Inherits |
|--- | --- | --- |
| **[MkDiagram](https://phil65.github.io/mknodes/)**
*mknodes.basenodes.mkdiagram*
Class representing a mermaid diagram\. |
*mknodes.templatenodes.mktreeview*
Node to display tree structures\. |
*mknodes.basenodes.mkcontainer*
A node containing other MkNodes\. |
*mknodes.basenodes.mkdiagram*
Class representing a mermaid diagram\. |
- [MkClassDiagram](https://phil65.github.io/mknodes/)
- [MkPipDepTree](https://phil65.github.io/mknodes/)
- [MkCode](https://phil65.github.io/mknodes/)
*mknodes.templatenodes.mktreeview*
Node to display tree structures\. |
- [MkCode](https://phil65.github.io/mknodes/)
*mknodes.basenodes.mkcontainer*
A node containing other MkNodes\. |
- [MkBlock](https://phil65.github.io/mknodes/)
- [MkAdmonition](https://phil65.github.io/mknodes/)
- [MkBlockQuote](https://phil65.github.io/mknodes/)
- [MkCode](https://phil65.github.io/mknodes/)
- [MkTemplate](https://phil65.github.io/mknodes/)
- [MkList](https://phil65.github.io/mknodes/)
- [MkBaseTable](https://phil65.github.io/mknodes/)
- [MkTab](https://phil65.github.io/mknodes/)
- [MkTabContainer](https://phil65.github.io/mknodes/)
- [MkCritic](https://phil65.github.io/mknodes/)
- [MkAnnotation](https://phil65.github.io/mknodes/)
- ...
- [MkContainerBase](https://phil65.github.io/mknodes/)
graph TD
4460494592000["mkcode.MkCode"]
4460482370560["mkcontainer.MkContainer"]
4460482369536["mkcontainer.MkContainerBase"]
4460482368512["mknode.MkNode"]
140053153421568["builtins.object"]
4460482370560 --> 4460494592000
4460482369536 --> 4460482370560
4460482368512 --> 4460482369536
140053153421568 --> 4460482368512
### 🛈 DocStrings
::: mknodes.MkCode
[:fa-brands-github: Show source on GitHub](https://github.com/phil65/mknodes/blob/main/src/mknodes/basenodes/mkcode/__init__.py)
And this is an alternate tabbed layout:
---
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/pages/mkclasspage/__init__.py
source_function: MkClassPage.__init__
source_line_no: 46
inclusion_level: false
title: MkCode
---
=== "DocStrings"
::: mknodes.MkCode
=== "Sub classes"
| Name | Children | Inherits |
|--- | --- | --- |
| **[MkDiagram](https://phil65.github.io/mknodes/)**
*mknodes.basenodes.mkdiagram*
Class representing a mermaid diagram\. |
*mknodes.templatenodes.mktreeview*
Node to display tree structures\. |
*mknodes.basenodes.mkcontainer*
A node containing other MkNodes\. |
*mknodes.basenodes.mkdiagram*
Class representing a mermaid diagram\. |
- [MkClassDiagram](https://phil65.github.io/mknodes/)
- [MkPipDepTree](https://phil65.github.io/mknodes/)
- [MkCode](https://phil65.github.io/mknodes/)
*mknodes.templatenodes.mktreeview*
Node to display tree structures\. |
- [MkCode](https://phil65.github.io/mknodes/)
*mknodes.basenodes.mkcontainer*
A node containing other MkNodes\. |
- [MkBlock](https://phil65.github.io/mknodes/)
- [MkAdmonition](https://phil65.github.io/mknodes/)
- [MkBlockQuote](https://phil65.github.io/mknodes/)
- [MkCode](https://phil65.github.io/mknodes/)
- [MkTemplate](https://phil65.github.io/mknodes/)
- [MkList](https://phil65.github.io/mknodes/)
- [MkBaseTable](https://phil65.github.io/mknodes/)
- [MkTab](https://phil65.github.io/mknodes/)
- [MkTabContainer](https://phil65.github.io/mknodes/)
- [MkCritic](https://phil65.github.io/mknodes/)
- [MkAnnotation](https://phil65.github.io/mknodes/)
- ...
- [MkContainerBase](https://phil65.github.io/mknodes/)
graph TD
4460494592000["mkcode.MkCode"]
4460482370560["mkcontainer.MkContainer"]
4460482369536["mkcontainer.MkContainerBase"]
4460482368512["mknode.MkNode"]
140053153421568["builtins.object"]
4460482370560 --> 4460494592000
4460482369536 --> 4460482370560
4460482368512 --> 4460482369536
140053153421568 --> 4460482368512
[:fa-brands-github: Show source on GitHub](https://github.com/phil65/mknodes/blob/main/src/mknodes/basenodes/mkcode/__init__.py)