Skip to content

Commit

Permalink
make it pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Dec 18, 2023
1 parent df1ced1 commit 7301389
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions sponsors/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

dirname = os.path.dirname(__file__)
DOCXPAGEBREAK_FILTER = os.path.join(dirname, "pandoc_filters/pagebreak.py")
REFERENCE_DOCX = os.path.join(dirname, "reference.docx")


def _clean_split(text, separator="\n"):
Expand Down Expand Up @@ -79,5 +80,6 @@ def render_contract_to_docx_file(contract, **context):
outputfile=docx_file.name,
format="md",
filters=[DOCXPAGEBREAK_FILTER],
extra_args=[f"--reference-doc", REFERENCE_DOCX],
)
return docx_file.read()
Binary file added sponsors/reference.docx
Binary file not shown.
Binary file removed templates/sponsors/admin/contracts/reference.docx
Binary file not shown.
12 changes: 8 additions & 4 deletions templates/sponsors/admin/contracts/sponsorship-agreement.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# SPONSORSHIP AGREEMENT
---
title: SPONSORSHIP AGREEMENT
geometry:
- margin=1in
font-size: 12pt
pagestyle: empty
---

**THIS SPONSORSHIP AGREEMENT** (the **"Agreement"**)
is entered into and made effective as of the
Expand Down Expand Up @@ -120,9 +126,7 @@ and to support and facilitate the growth of a diverse and international communit
 


::: {.center}
**[Signature Page Follows]**
:::
### \[Signature Page Follows\]

::: {.page-break}
\newpage
Expand Down

0 comments on commit 7301389

Please sign in to comment.