Skip to content

Commit

Permalink
add keys, references icons and semantic meaning links
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Nov 20, 2024
1 parent 649b617 commit b9e2345
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/gradletooling/sample/mkdocs_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ theme:
markdown_extensions:
- tables
- toc
- attr_list
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
nav:
- Home: index.md
- AutoGenerated Documentation:
Expand Down
10 changes: 10 additions & 0 deletions tools/xslt/vo-dml2md.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,18 @@ classDiagram
<xsl:template match="attribute|reference|composition">
<xsl:text> | </xsl:text>
<xsl:value-of select="name"/>
<xsl:if test="constraint[ends-with(@xsi:type,':NaturalKey')]">
<xsl:value-of select="concat(' :material-key-variant:{title=',$dq,'natural key',$dq,'}')"/>
</xsl:if>
<xsl:if test="./ancestor-or-self::reference">
<xsl:value-of select="concat(' :material-arrow-top-right:{title=',$dq,'reference',$dq,'}')"/>
</xsl:if>

<xsl:text> | </xsl:text>
<xsl:apply-templates select="datatype/vodml-ref"/>
<xsl:if test="semanticconcept">
<xsl:value-of select="concat(' from [',semanticconcept/vocabularyURI,'](',semanticconcept/vocabularyURI,'){:target=',$dq,'_blank',$dq,'}')"/>
</xsl:if>
<xsl:text> | </xsl:text>
<xsl:apply-templates select="multiplicity"/><xsl:if test="@isOrdered"><xsl:text> ordered</xsl:text></xsl:if>
<xsl:text> | </xsl:text>
Expand Down

0 comments on commit b9e2345

Please sign in to comment.