schema_salad.makedoc
Attributes
Classes
Custom renderer with different representations of selected HTML tags. |
|
Functions
|
Escape HTML but otherwise preserve single quotes. |
|
Remove the avro namespace, if any. |
|
|
|
|
|
Reverts fenced code fragments found in the modified contents back to their original definition. |
|
|
|
|
|
|
|
|
Build the argument parser. |
|
|
Shortcut entrypoint. |
|
Emit HTML representation of a given schema. |
Module Contents
- schema_salad.makedoc.PluginName
- schema_salad.makedoc.escape_html(s)
Escape HTML but otherwise preserve single quotes.
- schema_salad.makedoc.vocab_type_name(url)
Remove the avro namespace, if any.
- class schema_salad.makedoc.MyRenderer(escape=True, allow_harmful_protocols=None)
Bases:
digraph inheritanced9b3aab934 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BaseRenderer" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "HTMLRenderer" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A renderer for converting Markdown to HTML."]; "BaseRenderer" -> "HTMLRenderer" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MyRenderer" [URL="#schema_salad.makedoc.MyRenderer",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Custom renderer with different representations of selected HTML tags."]; "HTMLRenderer" -> "MyRenderer" [arrowsize=0.5,style="setlinewidth(0.5)"]; }mistune.renderers.html.HTMLRenderer
Custom renderer with different representations of selected HTML tags.
- heading(text, level, **attrs)
Override HTML heading creation with text IDs.
- inline_html(html)
Don’t escape characters in predefined HTML within paragraph tags.
- block_html(html)
Don’t escape characters nor wrap predefined HTML within paragraph tags.
- schema_salad.makedoc.patch_fenced_code(original_markdown_text, modified_markdown_text)
Reverts fenced code fragments found in the modified contents back to their original definition.
- class schema_salad.makedoc.ToC
- first_toc_entry = True
- numbering = [0]
- toc = ''
- start_numbering = True
- add_entry(thisdepth, title)
Add an entry to the table of contents.
- schema_salad.makedoc.basicTypes = ('https://w3id.org/cwl/salad#null', 'http://www.w3.org/2001/XMLSchema#boolean',...
- schema_salad.makedoc.number_headings(toc, maindoc)
- class schema_salad.makedoc.RenderType(toc, j, renderlist, redirects, primitiveType)
- Parameters:
- typedoc
- toc
- redirects
- primitiveType
- metaschema_loader
- alltypes
- typefmt(tp, redirects, nbsp=False, jsonldPredicate=None)
- schema_salad.makedoc.avrold_doc(j, outdoc, renderlist, redirects, brand, brandlink, primtype, brandstyle=None, brandinverse=False)
- schema_salad.makedoc.arg_parser()
Build the argument parser.
- Return type:
- schema_salad.makedoc.main()
Shortcut entrypoint.
- Return type:
None
- schema_salad.makedoc.makedoc(stdout, schema, redirects=None, only=None, brand=None, brandlink=None, primtype=None, brandstyle=None, brandinverse=False)
Emit HTML representation of a given schema.