Skip to content

Commit

Permalink
✨ add support of PlantUML Skins
Browse files Browse the repository at this point in the history
Attempt to resolve #9

Known bug and skin exclude:
- reddress
- sonyxperiadev
- strictuml
  • Loading branch information
The-Lum committed Nov 6, 2024
1 parent 5447322 commit 00a6df7
Show file tree
Hide file tree
Showing 298 changed files with 2,725 additions and 88 deletions.
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ defaults:
values:
layout: "default"
kind: "diagrams"
- scope:
path: ""
type: "skins"
values:
layout: "skin"
kind: "skins"
- scope:
path: "pages/skins"
values:
layout: "default"
kind: "skins"
- scope:
path: ""
values:
Expand Down
3 changes: 3 additions & 0 deletions _data/mainNavigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#- name: Themes Gallery
# kind: themes
# link: /themes/gallery.html
- name: Skins Overview
kind: skins
link: /skins/index.html
- name: Diagrams Overview
kind: diagrams
link: /diagrams/index.html
Expand Down
12 changes: 12 additions & 0 deletions _layouts/diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@ <h4 id="{{ theme.name }}">{{ page.display_name }} shown in {{ theme.display_name
{% include figure.html theme=theme diagram=page url=url %}

{% endfor %}

<h3>Available Skins</h3>

{% for skin in site.skins %}

<h4 id="{{ skin.name }}">{{ page.display_name }} shown in {{ skin.display_name }}</h4>

{% capture url %}{{ skin.url }}#{{ page.name }}{% endcapture %}

{% include figure.html theme=skin diagram=page url=url %}

{% endfor %}
27 changes: 27 additions & 0 deletions _layouts/skin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: default
---
<h2>{{ page.display_name }}</h2>

{% include secondaryNavigation.html %}

{{ content }}

<h3>Skin Code</h3>

<p>
See <a href="https://github.com/plantuml/plantuml/tree/master/skin/{{ page.name }}.skin">PlantUML skin {{
page.display_name }}</a> for the skin's implementation details.
</p>

<h3>Available Diagrams</h3>

{% for diagram in site.diagrams %}

<h4 id="{{ diagram.name }}">{{ diagram.display_name }} shown in {{ page.display_name }}</h4>

{% capture url %}{{ diagram.url }}#{{ page.name }}{% endcapture %}

{% include figure.html theme=page diagram=diagram url=url %}

{% endfor %}
5 changes: 5 additions & 0 deletions collections/_skins/debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: debug
display_name: 'debug' skin
author: PlantUML
---
5 changes: 5 additions & 0 deletions collections/_skins/plantuml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: plantuml
display_name: 'plantuml' skin
author: PlantUML
---
5 changes: 5 additions & 0 deletions collections/_skins/rose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: rose
display_name: 'rose' skin
author: PlantUML
---
1 change: 1 addition & 0 deletions gallery/lightmode/Activity-debug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions gallery/lightmode/Activity-plantuml.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 00a6df7

Please sign in to comment.