-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/oppgrader latex og fix avstander (#1149)
Omfattende rework av latex mal til siste design i NAV, samt en del side-bryting bugfixes og forbedringer. Major bump av LaTeX og biblioteker til siste versjon. Forenkler mal-element hierarkiet som rendres (kun paragraph skille mellom text literals, ikke andre elementer). Paralelliserer integrasjonstester og visuelle tester på større github node.
- Loading branch information
Showing
95 changed files
with
1,255 additions
and
912 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,15 +36,12 @@ jobs: | |
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: "gradle/actions/wrapper-validation@v4" | ||
- uses: "actions/cache@v4" | ||
with: | ||
"path": "~/.gradle/caches" | ||
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}" | ||
"restore-keys": "${{ runner.os }}-gradle-" | ||
- uses: "actions/setup-java@v4" | ||
with: | ||
"distribution": "temurin" | ||
"java-version": "17" | ||
"cache": "gradle" | ||
|
||
- name: "compile and run tests" | ||
run: | | ||
./gradlew :brevbaker-api-model-common:publishToMavenLocal | ||
|
@@ -79,15 +76,11 @@ jobs: | |
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: "gradle/actions/wrapper-validation@v4" | ||
- uses: "actions/cache@v4" | ||
with: | ||
"path": "~/.gradle/caches" | ||
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}" | ||
"restore-keys": "${{ runner.os }}-gradle-" | ||
- uses: "actions/setup-java@v4" | ||
with: | ||
"distribution": "temurin" | ||
"java-version": "17" | ||
"cache": "gradle" | ||
- name: "compile and run tests" | ||
run: "./gradlew :pdf-bygger:build" | ||
- name: "Build and publish container image to GAR" | ||
|
@@ -137,23 +130,19 @@ jobs: | |
credentials: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest-16-cores | ||
permissions: | ||
statuses: write | ||
checks: write | ||
pull-requests: write | ||
packages: write | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: "actions/cache@v4" | ||
with: | ||
"path": "~/.gradle/caches" | ||
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}" | ||
"restore-keys": "${{ runner.os }}-gradle-" | ||
- uses: "actions/setup-java@v4" | ||
with: | ||
"distribution": "temurin" | ||
"java-version": "17" | ||
"cache": "gradle" | ||
- name: "run integration tests" | ||
run: | | ||
./gradlew :brevbaker-api-model-common:publishToMavenLocal | ||
|
@@ -170,17 +159,17 @@ jobs: | |
report_paths: '**/build/test-results/integrationTest/TEST-*.xml' | ||
- name: Convert visual-test pdfs | ||
uses: routsi/[email protected] | ||
if: ${{ needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main' }} | ||
if: ${{ (needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
with: | ||
command: mogrify -path pensjon-brevbaker/build/test_visual -format png -background white -alpha remove -alpha off -density 300 -quality 85 pensjon-brevbaker/build/test_visual/pdf/*.pdf | ||
command: mogrify -path pensjon-brevbaker/build/test_visual -format png -background white -alpha remove -alpha off -density 230 -quality 85 pensjon-brevbaker/build/test_visual/pdf/*.pdf | ||
- uses: actions/setup-node@v4 | ||
if: ${{ needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main' }} | ||
if: ${{ (needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
with: | ||
node-version: '20' | ||
- run: npm install --save-dev @percy/cli | ||
if: ${{ needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main' }} | ||
if: ${{ (needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
- name: Publish visual-tests to percy | ||
if: ${{ needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main' }} | ||
if: ${{ (needs.changes.outputs.latex == 'true' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
run: | | ||
npx percy upload pensjon-brevbaker/build/test_visual/ > percy.log | ||
cat percy.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...iles/fonts/truetype/sourcesanspro/OFL.txt → ...es/fonts/truetype/sourcesans3/LICENSE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+371 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-Black.ttf
Binary file not shown.
Binary file added
BIN
+230 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-BlackItalic.ttf
Binary file not shown.
Binary file added
BIN
+372 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-Bold.ttf
Binary file not shown.
Binary file added
BIN
+232 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-BoldItalic.ttf
Binary file not shown.
Binary file added
BIN
+372 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-ExtraBold.ttf
Binary file not shown.
Binary file added
BIN
+231 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added
BIN
+366 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-ExtraLight.ttf
Binary file not shown.
Binary file added
BIN
+230 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-ExtraLightItalic.ttf
Binary file not shown.
Binary file added
BIN
+232 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-Italic.ttf
Binary file not shown.
Binary file added
BIN
+368 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-Light.ttf
Binary file not shown.
Binary file added
BIN
+232 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-LightItalic.ttf
Binary file not shown.
Binary file added
BIN
+372 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-Medium.ttf
Binary file not shown.
Binary file added
BIN
+231 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-MediumItalic.ttf
Binary file not shown.
Binary file added
BIN
+372 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-Regular.ttf
Binary file not shown.
Binary file added
BIN
+372 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-SemiBold.ttf
Binary file not shown.
Binary file added
BIN
+232 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesans3/SourceSans3-SemiBoldItalic.ttf
Binary file not shown.
Binary file removed
BIN
-259 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-Black.ttf
Binary file not shown.
Binary file removed
BIN
-91.7 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-BlackItalic.ttf
Binary file not shown.
Binary file removed
BIN
-261 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-Bold.ttf
Binary file not shown.
Binary file removed
BIN
-91.9 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-BoldItalic.ttf
Binary file not shown.
Binary file removed
BIN
-261 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-ExtraLight.ttf
Binary file not shown.
Binary file removed
BIN
-93 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-ExtraLightItalic.ttf
Binary file not shown.
Binary file removed
BIN
-92.6 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-Italic.ttf
Binary file not shown.
Binary file removed
BIN
-262 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-Light.ttf
Binary file not shown.
Binary file removed
BIN
-92.9 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-LightItalic.ttf
Binary file not shown.
Binary file removed
BIN
-263 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-Regular.ttf
Binary file not shown.
Binary file removed
BIN
-262 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-SemiBold.ttf
Binary file not shown.
Binary file removed
BIN
-92.3 KB
pdf-bygger/containerFiles/fonts/truetype/sourcesanspro/SourceSansPro-SemiBoldItalic.ttf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
% elements used to render the letter and attachment outline/content | ||
|
||
% used to track whether the title1/title2 should add extra space above. Needs to be declared before other content | ||
\newcommand{\previouselement}{title} | ||
|
||
%starts with true because of main title | ||
\newcommand{\setpreviouselement}[1]{ | ||
\renewcommand{\previouselement}{#1} | ||
} | ||
|
||
% Several elements use the \addvspace command. When two elements next to each other uses this kind of space, the highest value is chosen. | ||
% For example: | ||
% some paragraph text | ||
% \addvspace{16pt} | ||
% \addvspace{32pt} | ||
% some title text | ||
% in this case only 32 pt of vertical space is added between the elements. | ||
|
||
\input{titles} | ||
\input{paragraph} | ||
\input{itemList} | ||
\input{forms} | ||
\input{table} |
Oops, something went wrong.