diff --git a/web/project-website/content/third-party-jobs/compositor-script.md b/web/project-website/content/third-party-jobs/compositor-script.md index 497455b1..a3b570ec 100644 --- a/web/project-website/content/third-party-jobs/compositor-script.md +++ b/web/project-website/content/third-party-jobs/compositor-script.md @@ -3,18 +3,13 @@ title: Compositor Nodes weight: 10 --- -*Job type documented and maintained by: [Dylan Blanqué][author]. Please report any issues at [the script's Github project][github].* +{{< flamenco/thirdPartyCompatibility blender="v4.0" flamenco="v3.5" >}} +Documented and maintained by [Dylan Blanqué][author]. +Please report any issues at [the script's Github][github]. [author]: https://projects.blender.org/Dylan-Blanque [github]: https://github.com/dblanque/flamenco-compositor-script/issues - -{{< hint >}} - -This is a community-made job type. It may not reflect the same design as the -rest of Flamenco, as it was made for a specific person to solve a specific need. - -{{< /hint >}} - +{{< /flamenco/thirdPartyCompatibility >}} This job type updates Blender's compositor nodes to work with Flamenco. diff --git a/web/project-website/layouts/shortcodes/flamenco/thirdPartyCompatibility.html b/web/project-website/layouts/shortcodes/flamenco/thirdPartyCompatibility.html new file mode 100644 index 00000000..a17efb01 --- /dev/null +++ b/web/project-website/layouts/shortcodes/flamenco/thirdPartyCompatibility.html @@ -0,0 +1,39 @@ +{{/* +This is an adjusted copy of themes/hugo-geekdoc/layouts/shortcodes/hint.html + +- Add a CSS class. +- Different the default title. +*/}} +{{ $type := default "note" (.Get "type") }} +{{ $icon := .Get "icon" }} +{{ $title := default "Compatibility Information" (.Get "title") }} + +{{ $blender := default "unknown" (.Get "blender" ) }} +{{ $flamenco := default "unknown" (.Get "flamenco" ) }} + +
+diff --git a/web/project-website/static/custom.css b/web/project-website/static/custom.css index 2f8191b2..5d37395f 100644 --- a/web/project-website/static/custom.css +++ b/web/project-website/static/custom.css @@ -208,3 +208,38 @@ article p { table tbody td { vertical-align: top; } + +/* 3rd party job types compatibility notes. */ +.compatibility-box .infobox { + display: flex; + justify-content: space-around; + align-items: flex-start; +} +.compatibility-box p.disclaimer { + font-style: italic; + flex-basis: 70%; + text-align: justify; +} +.compatibility-box .infobox dl, .compatibility-box .infobox p.disclaimer { + margin: 0.6ex; +} +.compatibility-box dl { + flex-basis: 20%; + display: flex; + flex-flow: row wrap; +} +.compatibility-box dl dt { + margin: 0; + flex-basis: 66%; + padding: 0.2em 0.4em; + text-align: right; +} +.compatibility-box dl dt::after { + content: ":"; +} +.compatibility-box dl dd { + flex-basis: 33%; + flex-grow: 1; + margin: 0; + padding: 0.2em 0.4em; +}+ {{- with $icon -}} + + {{ $title }} + {{- else -}} + + {{- end -}} ++++++ + {{ .Inner | $.Page.RenderString }} ++
+- Blender
+- {{ $blender }}
+- Flamenco
+- {{ $flamenco }}
+This is a community-made job type. It may not reflect the same design as the + rest of Flamenco, as it was made for a specific person to solve a specific need.
+