-
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.
- Loading branch information
Showing
31 changed files
with
252 additions
and
24 deletions.
There are no files selected for viewing
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.
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.
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Paradis Perdu | ||
# Modules de secours | ||
# Paradis Perdu <br>Modules de secours | ||
|
||
<br><br><br> | ||
<br><br><br> | ||
|
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 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
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.
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,36 @@ | ||
#!/usr/bin/env python3 | ||
import asyncio, sys | ||
from pathlib import Path | ||
from time import perf_counter | ||
|
||
DIR = Path(__file__).parent | ||
sys.path.append(str(DIR / ".." / "..")) # make pdf_utils.py importable | ||
from pdf_utils import markdown2pdf, set_metadata, start_watch_and_rebuild | ||
|
||
MD_FILEPATH = DIR / "README.md" | ||
CSS_FILEPATH = DIR / "style.css" | ||
OUT_FILEPATH = DIR / "PsiRun-Implacables.pdf" | ||
|
||
|
||
def build_pdf(): | ||
start = perf_counter() | ||
with OUT_FILEPATH.open("wb") as out_pdf_file: | ||
out_pdf_file.write(markdown2pdf(DIR, MD_FILEPATH, CSS_FILEPATH, lang="fr").getbuffer()) | ||
set_metadata(OUT_FILEPATH, | ||
title="Psi*Run - Implacables", | ||
lang="fr", | ||
keywords=("jeu-de-rôle", "jdr", "psi*run", "The-Boys"), | ||
description="Setting pour Psi*Run inspiré de The Boys", | ||
) | ||
print(f"{OUT_FILEPATH} has been rebuilt in {perf_counter() - start:.1f}s") | ||
|
||
|
||
# This conditional ensure that the code below | ||
# does not get executed when calling xreload on this module: | ||
if not __annotations__.get("XRELOADED"): | ||
build_pdf() | ||
# The --watch mode is very handy when using a PDF reader | ||
# that performs hot-reloading, like Sumatra PDF Reader: | ||
if "--watch" in sys.argv: | ||
SRC_FILES = (__file__, MD_FILEPATH, CSS_FILEPATH) | ||
asyncio.run(start_watch_and_rebuild(sys.modules[__name__], *SRC_FILES)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+173 KB
psirun/Implacables/older_kenshi_by_alexzebol_cc-by-nc_RedBlackWhite.jpg
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.
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,35 @@ | ||
@font-face { font-family: KillTheNoise; src: url("../fonts/KillTheNoise.otf"); } | ||
@font-face { font-family: RoadRage; src: url("../fonts/RoadRage.otf"); } | ||
@font-face { font-family: OutrunFuture; src: url("../fonts/OutrunFuture.otf"); } | ||
@font-face { font-family: OutrunFuture; src: url("../fonts/OutrunFuture-Bold.otf"); font-weight: bold; } | ||
|
||
h1 { | ||
text-align: center; | ||
font-family: RoadRage; | ||
font-size: 4rem; | ||
font-weight: normal; | ||
line-height: 4rem; | ||
margin-top: 0; | ||
} | ||
h1 .psirun { font-family: KillTheNoise; font-size: 5rem; } | ||
h1 .asterisk { font-family: Helvetica; font-size: 2.5rem; vertical-align: super; } | ||
body { font-family: "DejaVu Serif"; } | ||
h2, h3 { | ||
font-family: OutrunFuture; | ||
margin-bottom: .8rem; | ||
} | ||
h2 { font-size: 1.4rem; margin-top: 2rem; } | ||
li { margin-bottom: .5rem; } | ||
a { color: darkblue; } | ||
footer { text-align: center; line-height: .5rem; } | ||
img { max-width: 25rem; display: block; margin: 0 auto; } | ||
img.size6 { max-height: 6rem; max-width: 6rem; } | ||
img.size14 { max-height: 14rem; max-width: 14rem; } | ||
img.size16 { max-height: 16rem; max-width: 16rem; } | ||
img.logo { max-width: 6rem; } | ||
.float-left { float: left; margin-right: .5rem; } | ||
.float-right { float: right; margin-left: .5rem; } | ||
.columns { columns: 2; } | ||
.columns ul { margin: 0; padding-left: .666rem; } | ||
.half-break { height: 1px; } | ||
.red { color: red; font-weight: bold; } |
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
Oops, something went wrong.