Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Rebuild the docs as a MkDocs site

1f8afe73515d58c14774878f30f33bfe318d0c3b · Keenan Nemetz · 21d ago · parent 7c02af12

Rebuild the docs as a MkDocs site

Replace the mdBook configuration with MkDocs and a local theme that uses
Vole's Everforest dark/medium palette. Move the contents order into nav,
make docs/index.md the homepage, and carry the install, quickstart,
deployment, and reference pages into the new tree.

Add the docs build to verify, with pinned requirements and python3-venv in
the image, so a broken nav entry or theme asset fails before a pages
deploy.

docs/quickstart.md +140

@@ -0,0 +1,140 @@
1 # Quickstart
2
3 This takes an installed `vole` to a repository you can clone, in about five
4 minutes. If you have not installed it yet, do that first: [Install](install.md).
5
6 The whole page is one path, so work down it in order. Each step prints what it
7 did; nothing is silent.
8
9 ## 1. Create an instance
10
11 An instance is a configuration file and a directory of state. Pick a directory
12 for it and let Vole create both:
13
14 ```sh
15 mkdir forge
16 cd forge
17 vole admin init --dir .
18 ```
19
20 ```text
21 vole.toml settings
22 data/users.db accounts, SSH keys, access rules, and locks
23 data/repos/ your Git repositories
24 data/audit.log a record of privileged actions
25 ```
26
27 `vole admin init` writes an absolute path into `vole.toml`, so you can start Vole
28 from another directory later. If you initialise into `~/.vole`, commands run from
29 anywhere find that instance. For any other location, pass `--config` or set
30 `VOLE_CONFIG` (see [Configuration](configuration.md#which-config-vole-reads)).
31
32 ## 2. Create your account
33
34 An account is always created with a credential — an SSH key, or a passkey
35 enrollment link — never as a bare name, so a name cannot be claimed by somebody
36 who cannot sign in. For Git, an SSH key is the one you want:
37
38 ```sh
39 vole admin account create you --key ~/.ssh/id_ed25519.pub
40 ```
41
42 Use `vole admin account add-key` later to attach more keys. The name is permanent,
43 and a contributor's branches live under `refs/heads/contrib/<name>/`.
44
45 ## 3. Create a repository
46
47 ```sh
48 vole admin repo create --owner you demo
49 ```
50
51 You are its admin, because you are its owner. New repositories are private: the
52 web page and the anonymous clone URL stay unreadable until you say otherwise.
53
54 ```sh
55 vole admin acl set-default-role demo read
56 ```
57
58 That makes `demo` publicly readable. Skip it if the repository should stay
59 private; the SSH clone below works either way.
60
61 ## 4. Start the server
62
63 ```sh
64 vole serve
65 ```
66
67 Leave it running and open a second terminal. By default Vole listens on:
68
69 - `127.0.0.1:2222` for SSH, which is how you push and authenticate.
70 - `127.0.0.1:8080` for the web interface and anonymous cloning. Reads are open
71 to everyone; writes need a passkey session.
72
73 Both are bound to loopback, which is what you want on a laptop. For a machine
74 other people reach, see [Deploying](deploy/index.md).
75
76 ## 5. Clone and push
77
78 ```sh
79 git clone ssh://git@127.0.0.1:2222/demo.git
80 cd demo
81 ```
82
83 The clone is read and write, using the key you registered. (The web interface
84 serves the same repository read-only at `http://127.0.0.1:8080/demo.git`, with no
85 credentials; you do not need it for this walkthrough.)
86
87 The new repository is empty, so make the first commit and push it:
88
89 ```sh
90 echo "# demo" > README.md
91 git add README.md
92 git commit -m "Start the repository"
93 git push -u origin HEAD
94 ```
95
96 `HEAD` is the branch you are on; Vole names it from the push. Then confirm which
97 account your key resolved to, and the role it holds here:
98
99 ```sh
100 vole whoami
101 vole whoami --role
102 ```
103
104 ## 6. Open an issue
105
106 Issues are written to the repository's `vole` branch, so this works from the same
107 clone, over the same key:
108
109 ```sh
110 vole issue new --title "Docs are blank" -m "The index page renders nothing."
111 vole issue list
112 git log --all --oneline -3
113 ```
114
115 The last command shows it: the issue is a commit of its own, not a row somewhere
116 else. The branch is called `vole`, and the CLI keeps it in your clone.
117
118 ## 7. The browser comes next
119
120 The web interface serves reads to everyone, but signing in needs a passkey, and a
121 passkey needs HTTPS. On a loopback instance with no `public_url`, Vole starts with
122 browser sign-in disabled — that is deliberate, and it is why this page stops at the
123 command line.
124
125 When you give the instance a name and a certificate, sign-in turns on:
126
127 - [Deploying](deploy/index.md) puts an instance behind HTTPS on a server.
128 - [Configuration § Automatic HTTPS with ACME](configuration.md#automatic-https-with-acme)
129 enables it on an existing one.
130 - [Accounts and access](accounts-and-access.md) issues the enrollment link that
131 registers the first passkey.
132
133 ## Where to go next
134
135 - [Accounts and access](accounts-and-access.md) — more accounts, roles, and administration from another machine.
136 - [Issues](issues.md) and [Change requests](change-requests.md) — the everyday loop.
137 - [Workflows](workflows.md) and [Runners](runner.md) — run CI.
138 - [Sites](sites.md) — publish a website from a branch.
139 - [Configuration](configuration.md) — change addresses, limits, and the public URL.
140 - [Operations](operations.md) — back the instance up. Do this before you rely on it.