Skip to content

Commit

Permalink
Version 2022.05
Browse files Browse the repository at this point in the history
  • Loading branch information
Eike committed Jun 13, 2022
0 parents commit 0b47d9d
Show file tree
Hide file tree
Showing 14 changed files with 1,305 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/asciidoctor-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: asciidoc-pdf

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
# docker container asciidoctor einbinden
container:
image: docker://asciidoctor/docker-asciidoctor:latest
steps:
# auschecken/ewinbinden des aktuellen Repositories -> main
- name: Checkout current repo
uses: actions/checkout@v3
# PDF generieren -> https://docs.asciidoctor.org/pdf-converter/latest/
- name: create pdf
# run: asciidoctor-pdf -o Handlungsempfehlungen/Darstellungsdienste/PDF/Handlungsempfehlungen_Darstellungsdienste.pdf -a pdf-fontsdir=Handlungsempfehlungen/Darstellungsdienste/fonts/ -a pdf-style=Handlungsempfehlungen/Darstellungsdienste/themes/styles.yml Handlungsempfehlungen/Darstellungsdienste/README.adoc
run: asciidoctor-pdf -o architekturkonzept/technische-festlegungen/vorgaben-darstellungsdienste.pdf -a pdf-fontsdir=resources/fonts/ -a pdf-theme=resources/themes/styles.yml architekturkonzept/technische-festlegungen/vorgaben-darstellungsdienste.adoc
# Artefakt erstellen
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: vorgaben-darstellungsdienste.pdf
path: /__w/gdi-de-dokumente/gdi-de-dokumente/architekturkonzept/technische-festlegungen/
# Erstelle ein Release und lade verknüpfe das Artefakt
- name: Create release and upload artifact
uses: ncipollo/release-action@v1
with:
artifacts: "/__w/gdi-de-dokumente/gdi-de-dokumente/architekturkonzept/technische-festlegungen/vorgaben-darstellungsdienste.pdf"
tag: "${{ github.event.release.tag_name }}"
bodyFile: "resources/changelog/changelog.md"
token: ${{ secrets.GITHUB_TOKEN }}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Empty file.
Empty file.
2 changes: 2 additions & 0 deletions resources/changelog/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Vorbereitung Release 2022.05
Erstellung der **Vorgaben der GDI-DE zur Bereitstellung von Darstellungsdiensten**
Binary file added resources/fonts/BundesSans-Office-Bold.ttf
Binary file not shown.
Binary file added resources/fonts/BundesSans-Office-BoldItalic.ttf
Binary file not shown.
Binary file added resources/fonts/BundesSans-Office-Italic.ttf
Binary file not shown.
Binary file added resources/fonts/BundesSans-Office-Regular.ttf
Binary file not shown.
Binary file added resources/media/logo-gdi-de.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
291 changes: 291 additions & 0 deletions resources/themes/styles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
font:
catalog:
# Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
Noto Serif:
normal: GEM_FONTS_DIR/notoserif-regular-subset.ttf
bold: GEM_FONTS_DIR/notoserif-bold-subset.ttf
italic: GEM_FONTS_DIR/notoserif-italic-subset.ttf
bold_italic: GEM_FONTS_DIR/notoserif-bold_italic-subset.ttf
# M+ 1mn supports ASCII and the circled numbers used for conums
M+ 1mn:
normal: GEM_FONTS_DIR/mplus1mn-regular-subset.ttf
bold: GEM_FONTS_DIR/mplus1mn-bold-subset.ttf
italic: GEM_FONTS_DIR/mplus1mn-italic-subset.ttf
bold_italic: GEM_FONTS_DIR/mplus1mn-bold_italic-subset.ttf
BundesSans:
normal: BundesSans-Office-Regular.ttf
bold: BundesSans-Office-Bold.ttf
italic: BundesSans-Office-Italic.ttf
bold_italic: BundesSans-Office-BoldItalic.ttf
page:
background_color: FFFFFF
layout: portrait
initial_zoom: FitH
margin: [0.5in, 0.67in, 0.67in, 0.67in]
# margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress
margin_inner: 0.75in
margin_outer: 0.59in
size: A4
base:
text_align: justify
# color as hex string (leading # is optional)
font_color: 333333
# color as RGB array
#font_color: [51, 51, 51]
# color as CMYK array (approximated)
#font_color: [0, 0, 0, 0.92]
#font_color: [0, 0, 0, 92%]
font_family: BundesSans
# choose one of these font_size/line_height_length combinations
#font_size: 14
#line_height_length: 20
#font_size: 11.25
#line_height_length: 18
#font_size: 11.2
#line_height_length: 16
font_size: 10.5
#line_height_length: 15
# correct line height for Noto Serif metrics
line_height_length: 12
#font_size: 11.25
#line_height_length: 18
line_height: $base_line_height_length / $base_font_size
font_size_large: round($base_font_size * 1.25)
font_size_small: round($base_font_size * 0.85)
font_size_min: $base_font_size * 0.75
font_style: normal
border_color: EEEEEE
border_radius: 4
border_width: 0.5
role:
lead:
font_size: $base_font_size_large
line-through:
text_decoration: line-through
underline:
text_decoration: underline
big:
font_size: $base_font_size_large
small:
font_size: $base_font_size_small
subtitle:
font_color: 999999
font_size: 0.8em
font_style: normal_italic
# FIXME vertical_rhythm is weird; we should think in terms of ems
#vertical_rhythm: $base_line_height_length * 2 / 3
# correct line height for Noto Serif metrics (comes with built-in line height)
vertical_rhythm: $base_line_height_length
horizontal_rhythm: $base_line_height_length
link:
font_color: 007F7F
# codespan is currently used for monospaced phrases and table cells
codespan:
font_color: B12146
font_family: M+ 1mn
button:
content: "[\u2009%s\u2009]"
font_style: bold
kbd:
background_color: F5F5F5
border_color: CCCCCC
border_offset: 2
border_radius: 2
border_width: 0.5
font_family: $codespan_font_family
separator: "\u202f+\u202f"
mark:
background_color: FFFF00
border_offset: 1
menu:
caret_content: " <font size=\"1.15em\" color=\"#B12146\">\u203a</font> "
font_style: bold
heading:
text_align: left
font_color: $base_font_color
font_style: bold
# h1 is used for part titles (book doctype) or the doctitle (article doctype)
h1_font_size: floor($base_font_size * 2.0)
# h2 is used for chapter titles (book doctype only)
h2_font_size: floor($base_font_size * 1.5)
h3_font_size: round($base_font_size * 1.2)
h4_font_size: $base_font_size_large
h5_font_size: $base_font_size
h6_font_size: $base_font_size_small
#line_height: 1.4
# correct line height for Noto Serif metrics (comes with built-in line height)
line_height: 1
margin_top: $vertical_rhythm * 0.4
margin_bottom: $vertical_rhythm * 0.9
min_height_after: $base_line_height_length * 1.5
title_page:
text_align: right
logo:
top: 10%
title:
top: 55%
font_size: $heading_h1_font_size
font_color: $role_subtitle_font_color
line_height: 0.9
subtitle:
font_size: $heading_h3_font_size
font_style: bold_italic
line_height: 1
authors:
margin_top: $base_font_size * 1.25
font_size: $base_font_size_large
font_color: 181818
revision:
margin_top: $base_font_size * 1.25
block:
margin_bottom: $vertical_rhythm
caption:
align: left
font_size: $base_font_size * 0.95
font_style: italic
# FIXME perhaps set line_height instead of / in addition to margins?
margin_inside: $vertical_rhythm / 3
margin_outside: 0
abstract:
font_color: 5C6266
font_size: $role_lead_font_size
line_height: 1.4
font_style: italic
first_line_font_style: bold
title:
text_align: center
font_color: $heading_font_color
font_size: $heading_h4_font_size
font_style: $heading_font_style
admonition:
column_rule_color: $base_border_color
column_rule_width: $base_border_width
padding: [$vertical_rhythm / 3.0, $horizontal_rhythm, $vertical_rhythm / 3.0, $horizontal_rhythm]
#icon:
# tip:
# name: far-lightbulb
# stroke_color: 111111
# size: 24
label:
text_transform: uppercase
font_style: bold
quote:
font_size: $base_font_size_large
border_color: $base_border_color
border_width: 0
border_left_width: $horizontal_rhythm / 3
padding: [$vertical_rhythm / 4, $horizontal_rhythm, $vertical_rhythm / 4, $horizontal_rhythm + $quote_border_left_width / 2]
cite:
font_size: $base_font_size_small
font_color: $role_subtitle_font_color
verse:
font_size: $quote_font_size
border_color: $quote_border_color
border_width: $quote_border_width
border_left_width: $quote_border_left_width
padding: $quote_padding
cite:
font_size: $quote_cite_font_size
font_color: $quote_cite_font_color
# code is used for literal, listing, and source blocks and literal table cells
code:
font_color: $base_font_color
font_family: $codespan_font_family
font_size: ceil($base_font_size)
padding: $code_font_size
line_height: 1.25
# line_gap is an experimental property to control how a background color is applied to an inline block element
line_gap: 3.8
background_color: F5F5F5
border_color: CCCCCC
border_radius: $base_border_radius
border_width: 0.75
conum:
font_family: $codespan_font_family
font_color: $codespan_font_color
font_size: $base_font_size
line_height: 4 / 3
glyphs: circled
example:
border_color: $base_border_color
border_radius: $base_border_radius
border_width: 0.75
background_color: $page_background_color
padding: [$vertical_rhythm, $horizontal_rhythm, $vertical_rhythm, $horizontal_rhythm]
image:
align: left
prose:
margin_bottom: $block_margin_bottom
sidebar:
background_color: EEEEEE
border_color: E1E1E1
border_radius: $base_border_radius
border_width: $base_border_width
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, $vertical_rhythm, $vertical_rhythm * 1.25]
title:
text_align: center
font_color: $heading_font_color
font_size: $heading_h4_font_size
font_style: $heading_font_style
thematic_break:
border_color: $base_border_color
border_style: solid
border_width: $base_border_width
padding: [$vertical_rhythm * 0.5, 0]
list:
indent: $horizontal_rhythm * 1.5
#marker_font_color: 404040
# NOTE list_item_spacing only applies to list items that do not have complex content
item_spacing: $vertical_rhythm / 2
description_list:
term_font_style: bold
term_spacing: $vertical_rhythm / 4
description_indent: $horizontal_rhythm * 1.25
callout_list:
margin_top_after_code: -$block_margin_bottom / 2
table:
# background_color: $page_background_color
background_color: 8C8C8C
border_color: DDDDDD
border_width: $base_border_width
grid_width: $base_border_width
cell_padding: 3
head:
font_style: bold
border_bottom_width: $base_border_width * 2.5
body:
stripe_background_color: F9F9F9
foot:
background_color: F0F0F0
toc:
indent: $horizontal_rhythm
line_height: 1.4
dot_leader:
#content: ". "
font_color: A9A9A9
#levels: 2 3
footnotes:
font_size: round($base_font_size * 0.75)
item_spacing: $list_item_spacing / 2
index:
column_gap: $vertical_rhythm
header:
font_size: $base_font_size_small
line_height: 1
vertical_align: middle
footer:
font_size: $base_font_size_small
# NOTE if background_color is set, background and border will span width of page
border_color: DDDDDD
border_width: 0.25
height: $base_line_height_length * 2.5
line_height: 1
padding: [$base_line_height_length / 2, 1, 0, 1]
vertical_align: top
recto:
right:
content: '{section-or-chapter-title} | *Seite {page-number}*'
verso:
left:
# content: $footer_recto_right_content
content: '*Seite {page-number}* | {section-or-chapter-title}'

0 comments on commit 0b47d9d

Please sign in to comment.