|
1 | 1 | # Python New Zealand - Rules |
2 | 2 |
|
3 | | -Official rules of [Python New Zealand](https://python.nz).<br> |
4 | | -This repository holds the authoritative source code of the documents and tracks changes to them. |
| 3 | +Official rules of [Python New Zealand](https://python.nz).<br> This repository holds the |
| 4 | +authoritative source code of the documents and tracks changes to them. |
5 | 5 |
|
6 | | -* Constitution |
7 | | -* Bylaws |
8 | | -* Code of Conduct |
| 6 | +- [Constitution](constitution/constitution.md) |
| 7 | +- Bylaws |
| 8 | +- Code of Conduct |
9 | 9 |
|
10 | 10 | ## How to create documents |
11 | 11 |
|
12 | 12 | ### Constitution |
13 | 13 |
|
14 | | -This is Markdown source code to produce HTML (for https://python.nz) and PDF (for printing)<br> |
15 | | -*Note: On github.com, bullet points will show in addition to numbering (styling is ignored)* |
| 14 | +This is Markdown source code to produce HTML (for https://python.nz) and PDF (for |
| 15 | +printing)<br> _Note: On github.com, bullet points will show in addition to numbering |
| 16 | +(styling is ignored). Also, clauses following a bullet list wrongly remain at the same |
| 17 | +indentation level as the bullet list - this seems to be a rendering bug in github. The |
| 18 | +HTML/PDF results look fine._ |
16 | 19 |
|
17 | 20 | #### Create HTML |
18 | 21 |
|
19 | 22 | Use [pandoc](https://pandoc.org): |
| 23 | + |
20 | 24 | ``` |
21 | 25 | pandoc -s constitution.md -o constitution.html -c constitution.css -V "pagetitle:Constitution" |
22 | 26 | ``` |
23 | | -(`-s` standalone = embed external CSS, `pagetitle` to suppress title warning without inserting another headline) |
| 27 | + |
| 28 | +(`-s` standalone = embed external CSS, `pagetitle` to suppress title warning without |
| 29 | +inserting another headline) |
24 | 30 |
|
25 | 31 | #### Table of Contents |
26 | 32 |
|
27 | | -Optionally, `--toc` will also create a table of contents with headline links (handy but not fit for PDF) |
| 33 | +Optionally, `--toc` will also create a table of contents with headline links (handy but |
| 34 | +not fit for PDF) |
| 35 | + |
28 | 36 | ``` |
29 | 37 | pandoc -s constitution.md -o constitution.html -c constitution.css -V "pagetitle:Constitution" --toc |
30 | 38 | ``` |
31 | 39 |
|
32 | 40 | #### Create PDF |
33 | 41 |
|
34 | | -Use [weasyprint](https://weasyprint.org) or similar, or just print from your browser: |
35 | | -``` |
36 | | -weasyprint constitution.html constitution.pdf |
37 | | -``` |
38 | | - |
| 42 | +Just print the HTML from your browser to a PDF file.<br> If you want to use a dedicated |
| 43 | +conversion tool instead, check that it does the job correctly (the numbering of bullets |
| 44 | +and sub bullets is where [weasyprint](https://weasyprint.org/) failed) |
0 commit comments