Skip to content

Commit a52a5a6

Browse files
committed
Provide document generation instructions for Code of Conduct
like for the Constitution but "without the caveats" for nested bullet lists
1 parent 9300879 commit a52a5a6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

code-of-conduct/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
code-of-conduct.html
2+
code-of-conduct.pdf

code-of-conduct/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Code of Conduct
2+
3+
This is Markdown source code to produce HTML (for https://python.nz) and PDF (for
4+
printing).
5+
6+
#### Create HTML
7+
8+
Use [pandoc](https://pandoc.org):
9+
10+
```
11+
pandoc code-of-conduct.md -o code-of-conduct.html -V "pagetitle:Code of Conduct"
12+
```
13+
14+
(`-s` standalone, `pagetitle` to suppress title warning without inserting another
15+
headline)
16+
17+
#### Create PDF
18+
19+
Just print the HTML from your browser to a PDF file.<br> If you want to use a dedicated
20+
conversion tool instead, we've successfully used [weasyprint](https://weasyprint.org/):
21+
22+
```
23+
weasyprint code-of-conduct.html code-of-conduct.pdf
24+
```

0 commit comments

Comments
 (0)