Commit 62c15a4d authored by Marius DAVID's avatar Marius DAVID
Browse files

update template for 2025 fully

parent fa956d5c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -5,19 +5,21 @@
	print("Usage: pre_process.py [edition, 2024 or 2025] [web folder path]")
	exit(-1)

def process_edition(year):
def process_edition(year, community):
	with open(os.path.join(sys.argv[2], "index_template.html")) as f:
		index_template = f.read()

	index = index_template.replace("{YEAR}", year)
	index = index_template \
		.replace("{YEAR}", year) \
		.replace("{COMMUNITY}", community)

	with open(os.path.join(sys.argv[2], "index.html"), "w") as f:
		f.write(index)

if sys.argv[1] == "2024":
	process_edition("2024")
	process_edition("2024", "2024lemmycanvasatlas")
elif sys.argv[1] == "2025":
	process_edition("2025")
	process_edition("2025", "2025fedicanvasatlas")
else:
	print("Unrecognizeable edition: " + sys.argv[1])
	exit(-1)
+2 −2
Original line number Diff line number Diff line
@@ -301,12 +301,12 @@ <h5 class="modal-title" id="exportModalLabel">Export Entry</h5>
				</div>
				<div class="modal-body d-flex flex-column">
					<p>
						If you want to use Lemmy (it’s the preferred way), post the text below as-is on the <a href="https://toast.ooo/c/2024lemmycanvasatlas">!2024lemmycanvasatlas@toast.ooo</a> Lemmy community, either via the linked instance, your own, or another Activity-Pub compatible client. If you want to add some detail for the review, post it as a comment.
						If you want to use Lemmy (it’s the preferred way), post the text below as-is on the <a href="https://toast.ooo/c/{COMMUNITY}">!{COMMUNITY}@toast.ooo</a> Lemmy community, either via the linked instance, your own, or another Activity-Pub compatible client. If you want to add some detail for the review, post it as a comment.
					</p>
					<p>
						You may also use the sc07 GitLab instance, check <a href="https://git.sc07.company/marius851000/fediverse-canvas-atlas-2024/-/blob/main/CONTRIBUTING.md?ref_type=heads#through-the-forge" target="_blank">the contributing guide</a> to submit a patch.
					</p>
					<p>We will then check it and add it to the Atlas.</p>
					<p>We will then check it and add it to the Atlas (with some automated tooling, that will among others build a preview).</p>
					<textarea class="form-control flex-grow-1" cols="40" rows="20" id="exportString" title="Raw JSON string" readonly></textarea>
				</div>
				<div class="modal-footer">