Skip to content

Commit daa7bf6

Browse files
committed
make it pretty
1 parent ef04c34 commit daa7bf6

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

sponsors/contracts.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
dirname = os.path.dirname(__file__)
1111
DOCXPAGEBREAK_FILTER = os.path.join(dirname, "pandoc_filters/pagebreak.py")
12+
REFERENCE_DOCX = os.path.join(dirname, "reference.docx")
1213

1314

1415
def _clean_split(text, separator="\n"):
@@ -79,5 +80,6 @@ def render_contract_to_docx_file(contract, **context):
7980
outputfile=docx_file.name,
8081
format="md",
8182
filters=[DOCXPAGEBREAK_FILTER],
83+
extra_args=[f"--reference-doc", REFERENCE_DOCX],
8284
)
8385
return docx_file.read()

sponsors/reference.docx

11.5 KB
Binary file not shown.
-9.99 KB
Binary file not shown.

templates/sponsors/admin/contracts/sponsorship-agreement.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# SPONSORSHIP AGREEMENT
1+
---
2+
title: SPONSORSHIP AGREEMENT
3+
geometry:
4+
- margin=1.25in
5+
font-size: 12pt
6+
pagestyle: empty
7+
---
28

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

122128

123-
::: {.center}
124-
**[Signature Page Follows]**
125-
:::
129+
### \[Signature Page Follows\]
126130

127131
::: {.page-break}
128132
\newpage

0 commit comments

Comments
 (0)