Skip to content

Commit

Permalink
Merge pull request #97 from alexander-nitsche/feature/sphinx-plantuml
Browse files Browse the repository at this point in the history
Add PlantUML support to Sphinx
  • Loading branch information
marble authored Sep 28, 2020
2 parents 1eb5b7a + c1d43a7 commit 8b81f71
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
3 changes: 2 additions & 1 deletion ALL-for-build/Makedir/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def merge_settings_file(fpath, D, notes):
extlinks['review'] = ('https://review.typo3.org/%s', 'Review #')

# PlantUML stylesheet
plantumlstylesabspath = ospj(confpyfolder, 'typo3_plantuml_styles.iuml')
plantumlfolder = ospj(confpyfolder, 'sphinxcontrib-plantuml')
plantumlstylesabspath = ospj(plantumlfolder, 'typo3_styles.iuml')
plantuml = ['plantuml', '-I' + plantumlstylesabspath]

intersphinx_mapping = {}
Expand Down
27 changes: 27 additions & 0 deletions ALL-for-build/Makedir/sphinxcontrib-plantuml/typo3_styles.iuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'
' TYPO3 PlantUML Stylesheet
'
' Parameters:
' Get all available style parameters at the command line of this Docker container:
' # source <(docker run --rm t3docs/render-documentation show-shell-commands)
' # dockrun_t3rd /bin/bash
' # plantuml -language
' => search for "skinparameter"
'
' Icons:
' Preprocessor directives like !include, !define, etc. are not supported in this global stylesheet when rendered by
' PlantUML v2017.15 - which is used in the current TYPO3 documentation rendering process - such that
' custom macros and sprites cannot be provided globally. In newer versions of PlantUML, icons can be
' provided globally by
' - including custom sprites and macros in this file
' - using the globally available PlantUML Standard Library
'
' @see https://forum.plantuml.net/6718/cannot-recognize-included-file-in-config-file
' @see https://github.com/tupadr3/plantuml-icon-font-sprites#getting-started
' @see https://plantuml.com/stdlib
'
skinparam ArrowColor #f49700
skinparam BackgroundColor #FFFFFF
skinparam DefaultFontColor #333333
skinparam Padding 8
skinparam Shadowing false
13 changes: 0 additions & 13 deletions ALL-for-build/Makedir/typo3_plantuml_styles.iuml

This file was deleted.

0 comments on commit 8b81f71

Please sign in to comment.