Skip to content

Commit 8da97cf

Browse files
docs(var): build and version
1 parent 3c0a8ca commit 8da97cf

File tree

217 files changed

+14985
-40690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+14985
-40690
lines changed

.cz.toml

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[tool.commitizen]
22
bump_message = "release $current_version → $new_version []"
3+
annotated_tag = true
34
update_changelog_on_bump = true
45
changelog_incremental = true
56
changelog_start_rev = "v0.4.7"
67
gpg_sign = true
78
allow_abort = true
9+
version_files = [
10+
"_layouts/default.html:Version"
11+
]

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author.: Anonymous Planet
2+
# License.: CC BY-NC 4.0
3+
14
# Minimize global Ruby .gitignore
25
_site/
36
.sass-cache/
@@ -7,3 +10,12 @@ _site/
710
.cache/
811
vendor/
912
Gemfile*
13+
14+
# Artifact from PDF tests
15+
*.log
16+
17+
# Linters
18+
megalinter-reports/
19+
20+
# CZ
21+
.cz.toml

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ repos:
1313
stages:
1414
- push
1515
repo: https://github.com/commitizen-tools/commitizen
16-
rev: v3.27.0
16+
rev: v3.28.0

CHANGELOG.md

+902-901
Large diffs are not rendered by default.

CHANGELOG.md.asc

-7
This file was deleted.

CHANGELOG.md.minisig

-4
This file was deleted.

CODE_OF_CONDUCT.md.asc

-7
This file was deleted.

CODE_OF_CONDUCT.md.minisig

-4
This file was deleted.

CONTRIBUTING.md.asc

-7
This file was deleted.

CONTRIBUTING.md.minisig

-4
This file was deleted.

KEY_ROTATION.md

+32-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1-
PGP/GPG key ID `7DFFD7471FB76E2A8ABBBCDDD769B3749E933B8A` is no longer active
2-
PGP/GPG key ID `42FF35DB9DE7C088AB0FD4A70C216A52F6DF4920` is no longer active
3-
4-
This project now uses separate master, release signing, and email keys.
5-
6-
Current master key fingerprint: `9EA98278639F1CD853E096CBFF94507587A6A9B9`
7-
Current release key fingerprint: `83A6CF9EF57AC25B5C7F5D29285E6048A12321B2`
8-
Current email key fingerprint: `B6D1757632A280F99F2DCBFDB9AB9D93AFF05B9C`
9-
10-
The email and release keys should be signed by the master key.
11-
The master key takes precedence over all other project keys.
12-
------------------------------------------------------------------------------------
13-
Minisign key
14-
```
15-
untrusted comment: minisign public key 902835EC74825934
16-
RWQ0WYJ07DUokK8V/6LNJ9bf/O/QM9k4FSlDmzgEeXm7lEpw3ecYjXDM
17-
```
18-
is no longer active
19-
20-
Use
21-
```
22-
untrusted comment: minisign public key FE6A09A3AF18F7A7
23-
RWSn9xivowlq/ihAzclDBxhCxbYz4bLkC8E645lHgSUlQNlDvoTxO5Fv
24-
```
25-
instead
26-
27-
Files signed using this key pair can be verified with the following command:
28-
29-
```
30-
minisign -Vm <file> -P RWSn9xivowlq/ihAzclDBxhCxbYz4bLkC8E645lHgSUlQNlDvoTxO5Fv
31-
```
1+
PGP/GPG key ID `7DFFD7471FB76E2A8ABBBCDDD769B3749E933B8A` is no longer active
2+
PGP/GPG key ID `42FF35DB9DE7C088AB0FD4A70C216A52F6DF4920` is no longer active
3+
PGP/GPG key ID `9EA98278639F1CD853E096CBFF94507587A6A9B9` is no longer active
4+
5+
This project now uses separate master, release signing, and email keys.
6+
7+
Current master key fingerprint: `9FA5436D0EE360985157382517ECA05F768DEDF6`
8+
Current release key fingerprint: `C3023DBEA3FB38C438BA1EEDCEC60AEDE8B992A2`
9+
Current email key fingerprint: `FCBD2CABDEFD1FBA2E9E7591A1A82CD2DD2CF890`
10+
11+
The email and release keys should be signed by the master key.
12+
The master key takes precedence over all other project keys.
13+
------------------------------------------------------------------------------------
14+
Minisign key
15+
```
16+
untrusted comment: minisign public key 902835EC74825934
17+
RWQ0WYJ07DUokK8V/6LNJ9bf/O/QM9k4FSlDmzgEeXm7lEpw3ecYjXDM
18+
```
19+
is no longer active
20+
21+
Use
22+
```
23+
untrusted comment: minisign public key FE6A09A3AF18F7A7
24+
RWSn9xivowlq/ihAzclDBxhCxbYz4bLkC8E645lHgSUlQNlDvoTxO5Fv
25+
```
26+
instead
27+
28+
Files signed using this key pair can be verified with the following command:
29+
30+
```
31+
minisign -Vm <file> -P RWSn9xivowlq/ihAzclDBxhCxbYz4bLkC8E645lHgSUlQNlDvoTxO5Fv
32+
```

KEY_ROTATION.md.asc

-31
This file was deleted.

KEY_ROTATION.md.minisig

-4
This file was deleted.

LICENSE.md.asc

-7
This file was deleted.

LICENSE.md.minisig

-4
This file was deleted.

Makefile

+88-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,89 @@
1-
guide: clean
2-
./make.sh
1+
#! /bin/bash -m
2+
3+
# Author.: Anonymous Planet
4+
# License.: CC BY-NC 4.0
5+
6+
# Setup shell
7+
# https://github.com/QubesOS/qubes-issues/issues/8343
8+
# if the default shell ($SHELL) is zsh, else use bash
9+
10+
ifneq ($(shell echo $$SHELL | grep -q 'zsh' && echo zsh), zsh)
11+
SHELL := /bin/bash # using standard shell
12+
else
13+
SHELL := /bin/zsh # else use zsh (Whonix)
14+
endif
15+
16+
ifneq ($(shell which safe-rm), /usr/bin/safe-rm)
17+
RM := /usr/bin/rm # using standard rm
18+
else
19+
RM := /usr/share/safe-rm/bin/rm # else use safe rm
20+
endif
21+
22+
# Paths
23+
24+
BUILD_DIR := ./export
25+
PANDOC=/usr/bin/pandoc
26+
PANDOC_OPTIONS=--smart --standalone
27+
28+
SOURCE_DOCS := $(wildcard *.md)
29+
30+
EXPORTED_DOCS=\
31+
$(SOURCE_DOCS:.md=.html) \
32+
$(SOURCE_DOCS:.md=.pdf) \
33+
$(SOURCE_DOCS:.md=.docx) \
34+
$(SOURCE_DOCS:.md=.rtf) \
35+
$(SOURCE_DOCS:.md=.odt) \
36+
$(SOURCE_DOCS:.md=.epub)
37+
38+
PANDOC=/usr/bin/pandoc
39+
40+
PANDOC_OPTIONS=--standalone --metadata title="The Hitchhiker's Guide to Online Anonymity" -t context
41+
42+
PANDOC_HTML_OPTIONS=--to html5
43+
PANDOC_PDF_OPTIONS=
44+
PANDOC_DOCX_OPTIONS=
45+
PANDOC_RTF_OPTIONS=
46+
PANDOC_ODT_OPTIONS=
47+
PANDOC_EPUB_OPTIONS=--to epub3
48+
49+
# TODO: Makefile flags
50+
51+
.PHONY: clean sigs docs
52+
53+
# target: cleanup
54+
355
clean:
4-
./clean.sh
56+
-$(RM) -drf $(BUILD_DIR)/*
57+
-$(RM) -rf *sum*
58+
-$(RM) -rf *.md.asc
59+
-$(RM) -rf *.txt.asc
60+
-$(RM) -rf *.md.minisig
61+
-$(RM) -rf *.txt.minisig
62+
-$(RM) -f $(EXPORTED_DOCS)
63+
64+
# target: signatures
65+
66+
sigs:
67+
mkdir -p export
68+
./make.sh
69+
70+
# target: documentation
71+
72+
docs:
73+
%.html : %.md
74+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_HTML_OPTIONS) -o $@ $<
75+
76+
%.pdf : %.md
77+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_PDF_OPTIONS) -o $@ $<
78+
79+
%.docx : %.md
80+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_DOCX_OPTIONS) -o $@ $<
81+
82+
%.rtf : %.md
83+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_RTF_OPTIONS) -o $@ $<
84+
85+
%.odt : %.md
86+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_ODT_OPTIONS) -o $@ $<
87+
88+
%.epub : %.md
89+
$(PANDOC) $(PANDOC_OPTIONS) $(PANDOC_EPUB_OPTIONS) -o $@ $<

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This guide is an open-source non-profit initiative, [licensed](LICENSE.html) und
1515
- Raw [Markdown](https://github.com/Anon-Planet/thgtoa/raw/master/guide.md) text.
1616

1717
Mirrors:
18-
- Tor Onion Mirror: <http://thgtoa27ujspeqxasrfvcf5aozqdczvgmwgorrmblh6jn4nino3spcqd.onion/>
18+
- Tor Onion Mirror: <http://thgtoa3jzy3doku7hkna32htpghjijefscwvh4dyjgfydbbjkeiohgid.onion/>
1919

2020
The guide and all the files are also readily available on Archive.org and Archive.today:
2121

@@ -40,9 +40,9 @@ Feel free to submit issues using Github Issues with the repository link above. C
4040
Follow or contact us on:
4141

4242
Discussion Channels:
43-
- Matrix room: ```#anonymity:matrix.org``` <https://matrix.to/#/#anonymity:matrix.org>
44-
- Matrix space: ```#privacy-security-anonymity:matrix.org``` <https://matrix.to/#/#privacy-security-anonymity:matrix.org>
45-
- Twitter at https://twitter.com/AnonyPla
43+
- Matrix room: `#anonymity:matrix.org` <https://matrix.to/#/#anonymity:matrix.org>
44+
- Matrix space: `#privacy-security-anonymity:matrix.org` <https://matrix.to/#/#privacy-security-anonymity:matrix.org>
45+
- Twitter at https://twitter.com/AnonyPla
4646
- Mastodon at https://mastodon.social/@anonymousplanet
4747

4848
Have a good read and feel free to share and/or recommend it!

README.md.asc

-7
This file was deleted.

README.md.minisig

-4
This file was deleted.

_config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ github:
2222
changelog_url: CHANGELOG.html
2323
license_url: LICENSE.html
2424
about_url: about.html
25+
version: v1.2.0
2526
minisign_url: minisign.pub
2627
links_url: links.html
27-
twitter_url: https://anonymousplanet.org/twitter.html
28+
twitter_url: twitter.html
2829
mastodon_url: https://mastodon.social/@anonymousplanet
2930
constitution_url: constitution.html
30-
# tor_mirror_url: http://thgtoa27ujspeqxasrfvcf5aozqdczvgmwgorrmblh6jn4nino3spcqd.onion
31+
tor_mirror_url: http://thgtoa3jzy3doku7hkna32htpghjijefscwvh4dyjgfydbbjkeiohgid.onion
3132
defaults:
3233
-
3334
scope:

_layouts/default.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<head>
44
<meta charset='utf-8'>
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<!-- Offline -->
7-
<!-- <meta http-equiv="onion-location" content="{{ site.github.tor_mirror_url }}{{ page.url }}" /> -->
6+
<meta http-equiv="onion-location" content="{{ site.github.tor_mirror_url }}{{ page.url }}" />
87
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'">
98
<meta http-equiv=”X-XSS-Protection” content=”1">
109
<meta http-equiv="Permissions-Policy" content="interest-cohort=()"/>
@@ -155,7 +154,7 @@
155154
<h1>The Hitchhiker’s Guide to Online Anonymity</h1>
156155
</a>
157156
<h2>How I learned to start worrying and love <del>privacy</del> anonymity</h2>
158-
<h4 class="project-version">The latest Version is v1.1.9. See the <a href="{{ site.github.changelog_url }}" style="color:#ff4700">changelog.</a></h4>
157+
<h4 class="project-version">The latest Version: v1.2.0. See the <a href="{{ site.github.changelog_url }}" style="color:#ff4700">changelog.</a></h4>
159158
<section id="downloads">
160159
{% if page.url != "/" %}
161160
<a href="{{ site.github.home_url }}" class="btn_small">Home</a>
@@ -184,7 +183,7 @@ <h4 class="project-version">The latest Version is v1.1.9. See the <a href="{{ si
184183
<a href="{{ site.github.about_url }}" class="btn_small">About</a>
185184
{% endif %}
186185
</section>
187-
<h5>GPG Key Fingerprint: 9EA9 8278 639F 1CD8 53E0 96CB FF94 5075 87A6 A9B9 / Minisign public key: <a href="{{ site.github.minisign_url }}" style="color:#ff4700">minisign.pub</a></h5>
186+
<h5>GPG Key Fingerprint: 9FA5 436D 0EE3 6098 5157 3825 17EC A05F 768D EDF6 / Minisign public key: <a href="{{ site.github.minisign_url }}" style="color:#ff4700">minisign.pub</a></h5>
188187
<noscript><p class="jswarning">JavaScript is required to toggle light mode. JavaScript is not used for any other purpose.</p></noscript>
189188
</div>
190189
</header>

0 commit comments

Comments
 (0)