Page Encryption Module¶
Cryptographic primitives, the at-rest envelope format, build-time page helpers, the git filter protocol, and git repository operations behind page encryption and the mkdocs-note crypt commands.
Called from plugin core during the build and from the CLI for crypt init / status / check / uninstall and the hidden filter commands.
Cryptographic primitives for mkdocs-note page encryption.
Two independent layers are used:
at rest Encrypts the body of a note before it enters git. The password is stored in the same file's clear frontmatter, so a fast HKDF is deliberate: a slow KDF would add build cost without protecting anything the reader cannot already see.
site Encrypts the rendered page for the browser. When a private repository publishes a public site the frontmatter is not public, so the slow PBKDF2-HMAC-SHA256 stretch is what protects the password.
Both layers use AES-256-GCM with a synthetic nonce derived through HMAC. A synthetic nonce keeps encryption deterministic, which gives stable git status output and reproducible builds; the AAD binds a payload to its page or key field.
CryptoError ¶
Bases: Exception
Base class for encryption/decryption failures.
Source code in src/mkdocs_note/utils/crypt/keys.py
52 53 | |
DecryptError ¶
Bases: CryptoError
The password is wrong or the ciphertext was tampered with.
Source code in src/mkdocs_note/utils/crypt/keys.py
60 61 | |
PasswordError ¶
Bases: CryptoError
The frontmatter does not define a usable password.
Source code in src/mkdocs_note/utils/crypt/keys.py
56 57 | |
PasswordSource dataclass ¶
The frontmatter field a password was taken from.
Source code in src/mkdocs_note/utils/crypt/keys.py
64 65 66 67 68 69 | |
at_rest_aad(key_field) ¶
Additional authenticated data for an at-rest envelope.
Source code in src/mkdocs_note/utils/crypt/keys.py
159 160 161 | |
is_encrypted(meta) ¶
Return whether a page's frontmatter opts into encryption.
Source code in src/mkdocs_note/utils/crypt/keys.py
96 97 98 | |
normalize_password(value) ¶
Normalize a password the same way Python and JavaScript do.
A Unicode NFC form plus surrounding-whitespace stripping keeps a password typed in a browser equal to the YAML value even when the source contains combining characters or accidental spacing.
Source code in src/mkdocs_note/utils/crypt/keys.py
72 73 74 75 76 77 78 79 80 | |
open_at_rest(password, key_field, payload) ¶
Decrypt an at-rest payload produced by :func:seal_at_rest.
Source code in src/mkdocs_note/utils/crypt/keys.py
200 201 202 203 204 | |
open_site(password, src_uri, payload, iterations=DEFAULT_ITERATIONS) ¶
Decrypt a browser payload (used by tests and tooling).
Source code in src/mkdocs_note/utils/crypt/keys.py
260 261 262 263 264 265 266 267 268 269 | |
password_for_field(meta, field) ¶
Read the password stored in an explicit frontmatter field.
Used for envelopes, whose header records which field was used when the ciphertext was created. Raises :class:PasswordError when the field is missing or empty.
Source code in src/mkdocs_note/utils/crypt/keys.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
resolve_password(meta) ¶
Resolve a page's password: password first, then permalink.
Raises:
| Type | Description |
|---|---|
PasswordError | when neither field is present and non-empty. |
Source code in src/mkdocs_note/utils/crypt/keys.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
seal_at_rest(password, key_field, plaintext) ¶
Encrypt a note body for storage in git.
Returns nonce || ciphertext || tag. The encryption is deterministic for the same (password, key_field, plaintext) triple.
Source code in src/mkdocs_note/utils/crypt/keys.py
188 189 190 191 192 193 194 195 196 197 | |
seal_site(password, src_uri, plaintext, iterations=DEFAULT_ITERATIONS) ¶
Encrypt a rendered page for the browser.
Returns (salt, aad, nonce || ciphertext || tag).
Source code in src/mkdocs_note/utils/crypt/keys.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 | |
site_aad(src_uri) ¶
Additional authenticated data for a browser payload.
Source code in src/mkdocs_note/utils/crypt/keys.py
207 208 209 | |
site_key(password, salt, iterations) ¶
Derive the browser AES key with PBKDF2-HMAC-SHA256.
Results are cached per process so mkdocs serve rebuilds do not pay the 600k-iteration cost again for an unchanged page.
Source code in src/mkdocs_note/utils/crypt/keys.py
228 229 230 231 232 233 234 235 236 | |
site_nonce_key(key) ¶
Derive the HMAC key used for deterministic site-payload nonces.
Source code in src/mkdocs_note/utils/crypt/keys.py
239 240 241 | |
site_salt(src_uri) ¶
Stable per-page PBKDF2 salt.
The salt only has to separate pages, not to be secret; deriving it from the stable src_uri keeps a remembered browser key valid across deploys.
Source code in src/mkdocs_note/utils/crypt/keys.py
212 213 214 215 216 217 218 | |
At-rest envelope format: clear frontmatter plus an encrypted body.
An envelope keeps the note's YAML frontmatter readable so MkDocs, the plugin scanner, GitHub and git diff can work without a key, and encrypts only the body::
---
title: Example
permalink: example
encrypt: true
---
> 🔒 This note is encrypted by mkdocs-note. Read it on the published site.
<!-- mkdocs-note:encrypted v1 key=permalink
<base64 of nonce | ciphertext | tag, wrapped at 76 columns>
-->
The format is deterministic and fixed per version, which keeps git status stable and makes a byte-exact smudge possible.
Envelope dataclass ¶
A parsed at-rest envelope.
Source code in src/mkdocs_note/utils/crypt/envelope.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
body instance-attribute ¶
Everything after the frontmatter, including the notice and comment.
frontmatter instance-attribute ¶
The original frontmatter block, including the --- delimiters.
key_field instance-attribute ¶
Frontmatter field that holds the password (password/permalink).
meta instance-attribute ¶
Frontmatter parsed from :attr:frontmatter.
payload instance-attribute ¶
nonce || ciphertext || tag.
EnvelopeError ¶
Bases: CryptoError
The note looks like an envelope but cannot be parsed.
Source code in src/mkdocs_note/utils/crypt/envelope.py
50 51 | |
build_envelope(text, key_field, password) ¶
Encrypt the body of text and return the envelope representation.
Source code in src/mkdocs_note/utils/crypt/envelope.py
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
clean_bytes(data) ¶
Git clean filter: plaintext note bytes -> envelope bytes.
Files that are not flagged (or are not valid UTF-8) pass through byte-for-byte. Flagged files are normalized to UTF-8 without BOM and with LF line endings so the envelope is stable across platforms.
Source code in src/mkdocs_note/utils/crypt/envelope.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |
decrypt_body(body, meta, password=None) ¶
Decrypt the body of a page when MkDocs already removed its frontmatter.
The password is taken from meta using the key field recorded in the envelope header. A body without a marker is returned unchanged.
Source code in src/mkdocs_note/utils/crypt/envelope.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | |
decrypt_envelope(text, password=None) ¶
Decrypt a whole-file envelope.
When password is omitted it is read from the frontmatter field recorded in the envelope header.
Source code in src/mkdocs_note/utils/crypt/envelope.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
looks_encrypted(text) ¶
Return whether text is an at-rest envelope (notice + marker header).
Source code in src/mkdocs_note/utils/crypt/envelope.py
118 119 120 121 122 | |
normalize_text(text) ¶
Drop a UTF-8 BOM and convert CRLF/CR line endings to LF.
Source code in src/mkdocs_note/utils/crypt/envelope.py
74 75 76 77 78 | |
parse_envelope(text) ¶
Parse an envelope, or return None when text is not one.
Raises:
| Type | Description |
|---|---|
EnvelopeError | when the marker exists but the payload or version is invalid. |
Source code in src/mkdocs_note/utils/crypt/envelope.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
smudge_bytes(data) ¶
Git smudge filter: envelope bytes -> plaintext note bytes.
A checkout must never fail because of a password problem, so an undecryptable envelope is emitted unchanged with a single stderr warning.
Source code in src/mkdocs_note/utils/crypt/envelope.py
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 | |
split_frontmatter(text) ¶
Split YAML frontmatter from a note with MkDocs' own boundary rules.
Returns:
| Type | Description |
|---|---|
tuple[str, str, dict[str, Any]] | None |
|
tuple[str, str, dict[str, Any]] | None | or |
Source code in src/mkdocs_note/utils/crypt/envelope.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
Build-time helpers for encrypted pages.
The browser payload is a UTF-8 JSON document encrypted with AES-256-GCM; the page HTML only ever contains the locked stub and that ciphertext. The helpers here also render the Material-compatible table of contents that travels inside the payload and collect plaintext canaries for the post-build leak audit.
Leak dataclass ¶
A plaintext canary found outside its own page in the built site.
Source code in src/mkdocs_note/utils/crypt/page.py
280 281 282 283 284 285 286 | |
audit_plaintext_leaks(site_dir, pages) ¶
Search the built site for plaintext of encrypted pages.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
site_dir | str | PathLike[str] | Built site directory. | required |
pages | Mapping[str, Sequence[Any]] | Mapping of | required |
Returns:
| Type | Description |
|---|---|
list[Leak] | Leaks found outside each page's own output file. |
Source code in src/mkdocs_note/utils/crypt/page.py
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | |
build_site_payload(src_uri, content, toc_html, password, iterations=keys.DEFAULT_ITERATIONS) ¶
Encrypt the rendered page and return the JSON-safe browser payload.
Source code in src/mkdocs_note/utils/crypt/page.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
build_stub(title, payload, labels) ¶
Return the locked page HTML with the encrypted payload attached.
Source code in src/mkdocs_note/utils/crypt/page.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
build_toc_html(toc, labels) ¶
Render page.toc with Material's markup, ready for the sidebar.
Source code in src/mkdocs_note/utils/crypt/page.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
build_unavailable_stub(title, labels) ¶
Return a stub for a page that could not be decrypted during the build.
Source code in src/mkdocs_note/utils/crypt/page.py
236 237 238 239 240 241 242 243 244 | |
collect_canaries(body, limit=MAX_CANARIES_PER_PAGE) ¶
Pick distinctive plaintext snippets for the post-build leak audit.
Heading lines are skipped because the page title is intentionally public. Markdown inline formatting is removed so a canary also matches the rendered HTML form.
Source code in src/mkdocs_note/utils/crypt/page.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | |
copy_encrypt_static_assets(static_dir, config) ¶
Copy encrypt.js / encrypt.css into the site directory.
Source code in src/mkdocs_note/utils/crypt/page.py
269 270 271 272 273 274 275 276 277 | |
ensure_heading(content, title) ¶
Prepend the page title when Material would have added it itself.
Material's content.html adds <h1>{{ page.title }}</h1> only when the rendered content has no literal <h1. Since the real content is encrypted and replaced by a stub, that heading has to travel inside the payload.
Source code in src/mkdocs_note/utils/crypt/page.py
72 73 74 75 76 77 78 79 80 81 | |
inject_encrypt_assets(output, page_url, options) ¶
Inject the encryption stylesheet, script and runtime options.
Source code in src/mkdocs_note/utils/crypt/page.py
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | |
label(labels, key) ¶
Return an escaped UI label.
Source code in src/mkdocs_note/utils/crypt/page.py
58 59 60 | |
label_with_breaks(labels, key) ¶
Return an escaped label with newlines rendered as <br>.
HTML collapses newlines in text, and mkdocs-minify removes them entirely, so a multi-line label needs explicit line breaks.
Source code in src/mkdocs_note/utils/crypt/page.py
63 64 65 66 67 68 69 | |
labels_with_defaults(labels) ¶
Merge user labels over the built-in English strings.
Source code in src/mkdocs_note/utils/crypt/page.py
49 50 51 52 53 54 55 | |
Git clean/smudge filter for encrypted note bodies.
Implements the long-running filter process protocol, version 2, documented in gitattributes(5) under "Long Running Filter Process", plus the single-shot clean and smudge helpers used as fallbacks. Protocol data is the only thing written to stdout; every diagnostic goes to stderr.
FilterProtocolError ¶
Bases: RuntimeError
The peer sent data that is not valid pkt-line filter protocol.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
27 28 | |
FilterRequest dataclass ¶
One clean or smudge request from git.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
90 91 92 93 94 95 96 | |
PacketReader ¶
Read pkt-line packets from a binary stream.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
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 | |
read_packet() ¶
Read one packet; None means a flush/delimiter packet.
Raises:
| Type | Description |
|---|---|
EOFError | at end of stream. |
FilterProtocolError | on a malformed length header. |
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
PacketWriter ¶
Write pkt-line packets to a binary stream.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
flush() ¶
Flush the underlying stream.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
85 86 87 | |
write_content(data) ¶
Write file content; empty content is represented by the flush alone.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
76 77 78 79 | |
write_flush() ¶
Write a flush packet.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
81 82 83 | |
write_packet(data) ¶
Write one packet, splitting payloads larger than the pkt-line limit.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
69 70 71 72 73 74 | |
run_filter_process() ¶
Run the long-running filter process on stdin/stdout.
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
259 260 261 262 263 264 | |
run_single(kind, *, stdin=None, stdout=None, stderr=None) ¶
Run a single-shot clean or smudge transform.
Returns:
| Type | Description |
|---|---|
int | Process exit status. |
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | |
serve(reader, writer, *, stderr=None, clean=envelope.clean_bytes, smudge=envelope.smudge_bytes) ¶
Serve filter requests until git closes the stream.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader | PacketReader | Packet source (git's stdout end). | required |
writer | PacketWriter | Packet sink (git's stdin end). | required |
stderr | object | None | Diagnostic stream (defaults to | None |
clean | Callable[[bytes], bytes] | Plaintext -> envelope transform. | clean_bytes |
smudge | Callable[[bytes], bytes] | Envelope -> plaintext transform. | smudge_bytes |
Returns:
| Type | Description |
|---|---|
int | Process exit status. |
Source code in src/mkdocs_note/utils/crypt/gitfilter.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |
Minimal git plumbing for the encryption filter and CLI.
Every helper runs git with core.quotepath=false so non-ASCII note paths come back as raw UTF-8 instead of quoted octal escapes (the same reason the 3.4.2 link-preview fix sets it). None of the helpers assume that the calling process' working directory is the repository root.
GitError ¶
Bases: RuntimeError
A git command failed.
Source code in src/mkdocs_note/utils/crypt/gitops.py
25 26 | |
blob_bytes(cwd, path, rev=':') ¶
Read a blob from the index (:) or a ref (HEAD), or None.
path must be relative to the repository root, with forward slashes.
Source code in src/mkdocs_note/utils/crypt/gitops.py
142 143 144 145 146 147 148 149 150 151 | |
check_attr(cwd, path, attr='filter') ¶
Return the git attribute value for path, or None when unset.
path must be relative to the repository root.
Source code in src/mkdocs_note/utils/crypt/gitops.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
config_get(cwd, key) ¶
Return a git config value, or None when it is not set.
Source code in src/mkdocs_note/utils/crypt/gitops.py
105 106 107 108 109 110 111 | |
config_set(cwd, key, value) ¶
Set a local git config value.
Source code in src/mkdocs_note/utils/crypt/gitops.py
114 115 116 | |
config_unset(cwd, key) ¶
Unset every value of a git config key; return whether one was set.
Source code in src/mkdocs_note/utils/crypt/gitops.py
119 120 121 122 | |
git_available() ¶
Return whether a git executable is on PATH.
Source code in src/mkdocs_note/utils/crypt/gitops.py
29 30 31 | |
git_path(cwd, name) ¶
Resolve a path inside the git directory (hooks, info, ...).
Used instead of hardcoding .git so the helper also works in submodules and linked worktrees.
Source code in src/mkdocs_note/utils/crypt/gitops.py
92 93 94 95 96 97 98 99 100 101 102 | |
inside_work_tree(cwd) ¶
Return whether cwd is inside a git work tree.
Source code in src/mkdocs_note/utils/crypt/gitops.py
76 77 78 79 80 81 | |
repo_relative(repo_root_path, path) ¶
Return path as a POSIX path relative to repo_root_path.
Source code in src/mkdocs_note/utils/crypt/gitops.py
160 161 162 | |
repo_root(cwd) ¶
Return the root of the work tree that contains cwd.
Source code in src/mkdocs_note/utils/crypt/gitops.py
84 85 86 87 88 89 | |
run_git(cwd, *args, check=True) ¶
Run git with text output.
Source code in src/mkdocs_note/utils/crypt/gitops.py
62 63 64 65 66 | |
run_git_bytes(cwd, *args, check=True) ¶
Run git with binary output (blobs must not be decoded).
Source code in src/mkdocs_note/utils/crypt/gitops.py
69 70 71 72 73 | |
staged_paths(cwd) ¶
Return repo-relative paths staged for the next commit.
Source code in src/mkdocs_note/utils/crypt/gitops.py
154 155 156 157 | |
Repository operations behind mkdocs-note crypt.
The click commands live in :mod:mkdocs_note.cli; this module contains the testable behavior: discovering the repository and docs directory, installing the git filter and hook, and reporting the state of encrypted notes in the worktree, the index and HEAD.
CheckReport dataclass ¶
Result of mkdocs-note crypt check --staged.
Source code in src/mkdocs_note/utils/crypt/cli.py
90 91 92 93 94 95 96 97 98 99 100 | |
ok property ¶
Return whether every staged encrypted note is valid.
CryptCliError ¶
Bases: RuntimeError
A crypt command cannot proceed (not a git repo, ephemeral Python, ...).
Source code in src/mkdocs_note/utils/crypt/cli.py
27 28 | |
InstallReport dataclass ¶
Result of mkdocs-note crypt init.
Source code in src/mkdocs_note/utils/crypt/cli.py
78 79 80 81 82 83 84 85 86 87 | |
NoteStatus dataclass ¶
State of one flagged note in the worktree, index and HEAD.
Source code in src/mkdocs_note/utils/crypt/cli.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
ok property ¶
Return whether this note has no blocking problem.
Repository dataclass ¶
Resolved locations for one docs tree inside a git work tree.
Source code in src/mkdocs_note/utils/crypt/cli.py
31 32 33 34 35 36 37 38 39 40 | |
StatusReport dataclass ¶
Result of mkdocs-note crypt status.
Source code in src/mkdocs_note/utils/crypt/cli.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
ok property ¶
Return whether the repository is fully consistent.
UninstallReport dataclass ¶
Result of mkdocs-note crypt uninstall.
Source code in src/mkdocs_note/utils/crypt/cli.py
103 104 105 106 107 108 109 | |
check_staged(repo) ¶
Verify that staged encrypted notes are valid envelopes.
Source code in src/mkdocs_note/utils/crypt/cli.py
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | |
filter_commands(python) ¶
Build the four filter.mkdocs-note.* config values.
Forward slashes and double quotes keep the command valid in git's shell on Windows, where the interpreter path may contain spaces.
Source code in src/mkdocs_note/utils/crypt/cli.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
flagged_notes(repo) ¶
Return (rel, meta, text) for every note with encrypt: true.
Source code in src/mkdocs_note/utils/crypt/cli.py
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
install(repo, python) ¶
Configure the filter, .gitattributes and the pre-commit hook.
Source code in src/mkdocs_note/utils/crypt/cli.py
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | |
is_ephemeral_python(python) ¶
Return whether python belongs to an ephemeral uvx/tool environment.
A filter command that points into uvx's cache breaks as soon as that cache is cleaned, which would make git add fail in every clone.
Source code in src/mkdocs_note/utils/crypt/cli.py
153 154 155 156 157 158 159 160 | |
make_repository(project_root, docs_dir=None) ¶
Resolve the repository, docs directory and attributes pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_root | Path | Directory containing | required |
docs_dir | Path | str | None | Docs directory; relative paths are resolved against | None |
Raises:
| Type | Description |
|---|---|
CryptCliError | when the docs directory is outside the git work tree. |
Source code in src/mkdocs_note/utils/crypt/cli.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
notes_with_plaintext_index(repo) ¶
Return flagged notes whose staged copy is still plaintext.
Source code in src/mkdocs_note/utils/crypt/cli.py
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | |
python_executable() ¶
Return the interpreter that should host the filter commands.
Source code in src/mkdocs_note/utils/crypt/cli.py
488 489 490 | |
status(repo) ¶
Inspect the filter configuration and every flagged note.
Source code in src/mkdocs_note/utils/crypt/cli.py
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | |
uninstall(repo) ¶
Remove the filter configuration and the hook installed by init.
Source code in src/mkdocs_note/utils/crypt/cli.py
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 | |