diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index d8aa454..1ab7ba0 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -5,8 +5,7 @@ updates:
schedule:
interval: weekly
commit-message:
- prefix: chore
- include: scope
+ prefix: "chore(deps)"
labels:
- dependencies
@@ -15,7 +14,6 @@ updates:
schedule:
interval: weekly
commit-message:
- prefix: ci
- include: scope
+ prefix: "ci(actions)"
labels:
- dependencies
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index aa18834..02c9f6d 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -1,6 +1,8 @@
name: Checks
+
on:
pull_request:
+ branches: [master]
push:
branches: [master]
diff --git a/Panels/Panel.cs b/Panels/Panel.cs
index a5217f9..227e50c 100644
--- a/Panels/Panel.cs
+++ b/Panels/Panel.cs
@@ -3,9 +3,9 @@
using Newtonsoft.Json;
using Panels.Elements;
using Panels.Utils;
-using SixLabors.ImageSharp;
using System;
using System.Collections.Generic;
+using System.Drawing;
using System.Globalization;
using System.IO;
using System.Xml;
diff --git a/Panels/Panels.csproj b/Panels/Panels.csproj
index 1c66501..748f9a1 100644
--- a/Panels/Panels.csproj
+++ b/Panels/Panels.csproj
@@ -27,7 +27,6 @@
-
diff --git a/README.md b/README.md
index 932d356..1a54be9 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
# Panels
-Panels is a CLI tool that allows exporting a comic book in PDF format from a configuration file (XML, JSON, or YAML) and a set of images.
+A CLI tool that allows exporting a comic book in PDF format from a configuration file (XML, JSON, or YAML) and a set of images.
-[](https://github.com/samdouble/panels/actions/workflows/checks.yml)
+[](https://github.com/samdouble/panels/actions/workflows/checks.yml?branch=master)
[](https://coveralls.io/github/samdouble/panels?branch=master)
[](https://github.com/samdouble/panels/releases/latest)
[](https://dotnet.microsoft.com/)
@@ -13,6 +13,7 @@ Panels is a CLI tool that allows exporting a comic book in PDF format from a con
[](https://www.w3.org/XML/)
[](https://yaml.org/)
[](https://www.nuget.org/packages/Panels/)
+[](https://github.com/security/advanced-security)
## Installation
@@ -20,7 +21,7 @@ Panels is a CLI tool that allows exporting a comic book in PDF format from a con
**Debian/Ubuntu**
-Replace `VERSION` with the release version (e.g. `1.8.1`):
+Replace `VERSION` with the release version (e.g. `2.0.0`):
```
curl -sL -o Panels.VERSION-amd64.deb https://github.com/samdouble/panels/releases/download/vVERSION/Panels.VERSION-amd64.deb
@@ -60,7 +61,7 @@ unzip Panels.VERSION-win-x64.zip
./Panels.exe --help
```
-## How to Use
+## Usage
### Command-line Commands & Arguments
@@ -202,18 +203,22 @@ Adds a description or narration to a panel. Attributes:
Forces a page break. Can be placed between slots.
+### Migrating from 1.x to 2.x
+
+- `maxPaddingLeft`, `maxPaddingRight`, `paddingBottom` and `paddingTop` now require to explicitly set the units as `%`. Simply add a `%` at the end of the value for these attributes.
+
## Development
### Running Locally
```
-dotnet run --project Panels -- generate -c ~/Desktop/github_perso/bd/BD0/bd.xml -i ~/Desktop/github_perso/bd/BD0/images
+dotnet run --project Panels -- generate -c ~/Desktop/github_perso/bd/BD00/bd.xml -i ~/Desktop/github_perso/bd/BD00/images
```
or:
```
-dotnet build && ./Panels/bin/Debug/net10.0/Panels generate -c ~/Desktop/github_perso/bd/BD0/bd.xml -i ~/Desktop/github_perso/bd/BD0/images
+dotnet build && ./Panels/bin/Debug/net10.0/Panels generate -c ~/Desktop/github_perso/bd/BD00/bd.xml -i ~/Desktop/github_perso/bd/BD00/images
```
### Running the tests
@@ -221,5 +226,3 @@ dotnet build && ./Panels/bin/Debug/net10.0/Panels generate -c ~/Desktop/github_p
```
dotnet test
```
-
-Coverage is collected automatically. The Cobertura report is written to `coverage/coverage.cobertura.xml`. The build fails if total line coverage drops below **75%** (configured in `Panels.Tests/Panels.Tests.csproj`).