aboutsummaryrefslogtreecommitdiff
path: root/spec/back-matter.md
blob: 90ddea2c965eb17da13c223c83140d726e03c128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# About the Tor Specifications documents

The canonical, official, versions of these documents are on the
[Tor Specifications website](https://spec.torproject.org/)
maintained by the [Tor Project](https://www.torproject.org/).

Only the Tor Specifications themselves are approved.
The [Proposals](../proposals/) are, by their nature, drafts.

When linking to the Specifications,
consider using one of the links advertised in the
[Table of Permalinks](permalinks.html).

## Source code

The Specifications and Proposals are maintained by the Tor Project
in a
[gitlab repository](https://gitlab.torproject.org/tpo/core/torspec/).

Corrections and clarifications are welcome.
To propose a change to the Tor protocol, use the
[Proposals process](proposals/001-process.txt)

## Building

The documents are in Markdown and formatted with
[mdbook](https://rust-lang.github.io/mdBook/).
To build the formatted HTML:

```text,ignore
cargo install mdbook
git clone https://gitlab.torproject.org/tpo/core/torspec/
cd torspec
bin/build_html
```

The output is then in `html/`.

## Source code structure, and output webtree

There are two mdbook books here:

 * **The Tor Specifications**: source code in `specs/`,
   formatted output in `html/`.

 * **Proposals**: source code in `proposals/`,
   formatted output in `html/proposals/`.

Each book's source files are listed,
and the chapter defined,
in its `SUMMARY.md`.
The format is pretty restrictive;
see the
[mdbook documentation](https://rust-lang.github.io/mdBook/format/summary.html).

## Editing advice

To edit these specs, clone the
[git repository](https://gitlab.torproject.org/tpo/core/torspec/)
and edit the
appropriate file in the `spec` directory.  These files will match
the URLs of their corresponding pages, so if you want to edit
`tor-spec/flow-control.html`,
you'll be looking for a file
called `spec/tor-spec/flow-control.md`.

We have started a [style guide](./STYLE.md) for writing new parts of
this spec; as of 2023 it is quite preliminary. You should feel free to
edit it!