diff --git a/.changes/0.0.6.md b/.changes/0.0.6.md new file mode 100644 index 00000000..1678aa05 --- /dev/null +++ b/.changes/0.0.6.md @@ -0,0 +1,15 @@ +## 0.0.6 - 2023-04-14 + +### Added + +* fix placement of footer info on first page +### Changed + +* add more json assets to 'make refresh-json' [#2] +* Update gameinfo/*.json from assets +* pre-commit autoupdate, and format change for 'exclude' +* ignore .changes/unreleased/ files with yamllint +### Fixed + +* [pre-commit] ignore anything in gameinfo and fonts as we don't author these ourself +* add make dep of 'install-dev' for 'process' \ No newline at end of file diff --git a/.changes/unreleased/Changed-20230414-014524.yaml b/.changes/unreleased/Changed-20230414-014524.yaml deleted file mode 100644 index 2f83a5ef..00000000 --- a/.changes/unreleased/Changed-20230414-014524.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: Changed -body: add more json assets to 'make refresh-json' -time: 2023-04-14T01:45:24.847542+01:00 -custom: - GithubIssue: "2" diff --git a/.changes/unreleased/Changed-20230414-015528.yaml b/.changes/unreleased/Changed-20230414-015528.yaml deleted file mode 100644 index a74d967a..00000000 --- a/.changes/unreleased/Changed-20230414-015528.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: Changed -body: Update gameinfo/*.json from assets -time: 2023-04-14T01:55:28.439088+01:00 -custom: - GithubIssue: "" diff --git a/.changes/unreleased/Changed-20230414-115103.yaml b/.changes/unreleased/Changed-20230414-115103.yaml deleted file mode 100644 index 8af1c7f7..00000000 --- a/.changes/unreleased/Changed-20230414-115103.yaml +++ /dev/null @@ -1,5 +0,0 @@ -kind: Changed -body: pre-commit autoupdate, and format change for 'exclude' -time: 2023-04-14T11:51:03.876999+01:00 -custom: - GithubIssue: "" diff --git a/.changes/unreleased/Fixed-20230414-105528.yaml b/.changes/unreleased/Fixed-20230414-105528.yaml deleted file mode 100644 index a5a1595b..00000000 --- a/.changes/unreleased/Fixed-20230414-105528.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixed -body: '[pre-commit] ignore anything in gameinfo and fonts as we don''t author these - ourself' -time: 2023-04-14T10:55:28.518855+01:00 -custom: - GithubIssue: "" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9dc64140..5f5a3eef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,6 +60,7 @@ repos: hooks: - id: yamllint args: [--format, parsable, --strict] + exclude: ^.changes/unreleased - repo: https://github.com/shellcheck-py/shellcheck-py rev: v0.9.0.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index e10e13b9..5e4fef8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +## 0.0.6 - 2023-04-14 + +### Added + +* fix placement of footer info on first page +### Changed + +* add more json assets to 'make refresh-json' [#2] +* Update gameinfo/*.json from assets +* pre-commit autoupdate, and format change for 'exclude' +* ignore .changes/unreleased/ files with yamllint +### Fixed + +* [pre-commit] ignore anything in gameinfo and fonts as we don't author these ourself +* add make dep of 'install-dev' for 'process' ## 0.0.5 - 2023-04-14 ### Added diff --git a/Makefile b/Makefile index edcb00f8..5dd0446e 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ INPUT_FILE= all: examples -process: +process: install-dev @basename="$(shell basename "$(INPUT_FILE)" .json)" && \ poetry run python3 -m botcpdf.main "$(INPUT_FILE)" diff --git a/README.md b/README.md index 334ebd8e..0a67089a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -![version](https://img.shields.io/badge/version-v0.0.5-blue) ![GitHub issues](https://img.shields.io/github/issues-raw/chizmw/botc-custom-script-json2pdf) ![GitHub last commit](https://img.shields.io/github/last-commit/chizmw/botc-custom-script-json2pdf) ![GitHub pull requests](https://img.shields.io/github/issues-pr/chizmw/botc-custom-script-json2pdf) +![version](https://img.shields.io/badge/version-v0.0.6-blue) ![GitHub issues](https://img.shields.io/github/issues-raw/chizmw/botc-custom-script-json2pdf) ![GitHub last commit](https://img.shields.io/github/last-commit/chizmw/botc-custom-script-json2pdf) ![GitHub pull requests](https://img.shields.io/github/issues-pr/chizmw/botc-custom-script-json2pdf) diff --git a/botcpdf/role.py b/botcpdf/role.py index b73f2121..dcbf9630 100644 --- a/botcpdf/role.py +++ b/botcpdf/role.py @@ -87,8 +87,8 @@ def __init__(self): self.derive_night_values() def derive_night_values(self): + """Derive values for first_night and other_night""" night_data = load_nightdata() - #print(night_data) # loop through firstNight list in night_data; we need the index as well for index, role_id in enumerate(night_data["firstNight"]): @@ -189,6 +189,7 @@ def get_other_night_meta_roles(self) -> list[Role]: """Get a list of meta roles.""" return [self.roles["_dawn"], self.roles["_dusk"]] + # we're outside the class now, and this is just helper functions def cleanup_role_id(id_slug) -> str: """Cleanup the character ID.""" diff --git a/botcpdf/util.py b/botcpdf/util.py index d33e098f..0936510a 100644 --- a/botcpdf/util.py +++ b/botcpdf/util.py @@ -14,6 +14,7 @@ def load_role_data(): """Load role data from a JSON file.""" return load_data("gameinfo/roles-bra1n.json") + def load_nightdata(): """Load role data from a JSON file.""" return load_data("gameinfo/nightsheet.json") diff --git a/pyproject.toml b/pyproject.toml index 1003d1d7..a413d92f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "botc-json2pdf" -version = "0.0.5" +version = "0.0.6" description = "" authors = ["Chisel "] readme = "README.md" diff --git a/templates/style.css b/templates/style.css index 14375389..c0f630cc 100644 --- a/templates/style.css +++ b/templates/style.css @@ -176,13 +176,6 @@ div.not-first-night { bottom: 5%; transform: translateX(-50%); } -div.not-affiliated { - position: absolute; - right: 0%; - bottom: 1%; - font-family: botc-light, sans-serif; - font-size: 7px; -} header { display: flex; @@ -208,15 +201,23 @@ footer { display: flex; justify-content: space-between; align-items: flex-start; - background-color: none; color: black; font-family: botc-light, sans-serif; + background-color: none; + + position: fixed; /* Add this line */ + bottom: 15px; /* Add this line */ + left: 0; + right: 0; + padding: 0 10px; /* Add this line for some padding */ } footer .footer-left { + left: 0%; font-size: 8px; } footer .footer-right { + right: 0%; font-size: 8px; }