AsciiDoc lite
Write docs in AsciiDoc and get a clean page: sections, steps, code listings and coloured NOTE and TIP boxes.
What it shows
Rebuild the everyday part of AsciiDoc as rules.
What you learn
Headings by the number of = signs, marks around words that only count at word edges, lists by their first character, labelled boxes whose label comes from the CSS, listing and quote blocks.
Try this
- Change
tipin the palette to #6741d9, and the TIP box turns purple.
Keepsake quick start
Keepsake copies the photos from your phone and camera cards into one folder a month, and never the same photo twice.
Keepsake runs on Windows, macOS and Linux. The commands on this page are the same on all three.
Install
- Download the installer from the downloads page.
- Run it, and choose the folder your photos should live in.
- Open a terminal and check that it works with
keepsake --version.
Keepsake 3 cannot read a library made by version 2. Run
keepsake upgrade once on the old library first.Your first import
Importing a camera card
$ keepsake import /media/EOS_DIGITAL Found 312 photos and 18 videos Skipped 41 already in the library Copied 289 files to ~/Pictures/2026/03
Every photo lands in the folder of the month it was taken, so a search by month finds it in a moment. For other ways to sort, see sorting your library.
Add
--dry-run to see what would be copied, without copying anything.What the library holds
- Photos and videos, in a folder per month
- The original file, never changed
- A small preview for fast browsing
- A list of what was imported, and when
Deleting a month's folder deletes its photos. Keepsake has no bin.
Two computers importing into one shared library at the same time can copy a photo twice. Import from one at a time.
Import before you delete. Back up before you edit.
How it's made
- Each mark is a rule in the rules block. A line's first characters pick what it becomes, so
==makes a section and.makes a step. - Marks such as
*bold*and_italic_work inside a sentence, but only at the edge of a word, sosnake_case_namesstay as typed. NOTE:and the other four words make a box. Each kind's rule sets a colour and a label, and the classadmonitiondraws the label in a column on the left.- A line that starts with
//is a comment. It never prints.
Try it yourself
- Change
tipin the palette to#6741d9. The TIP box turns purple. - Add
* Albums you makeas the last point of the list under "What the library holds". It joins the list. - Change
=== Your first importto== Your first import. It becomes a section as big as Install. - Write a line that starts with
//. It never shows on the page.
Next: the Admonitions rulebook draws the same boxes as blocks with a title line.
~~~ selfscribe
# AsciiDoc lite: the everyday part of AsciiDoc. Use it with: use asciidoc-lite
# Lesson: Rebuild the everyday part of AsciiDoc as rules.
# You learn: headings by the number of = signs, marks around words that only count at word edges, lists by their first character, labelled boxes whose label comes from the CSS, listing and quote blocks.
# Try this: change `tip` in the palette to #6741d9, and the TIP box turns purple.
# summary: Write docs in AsciiDoc and get a clean page: sections, steps, code listings and coloured NOTE and TIP boxes.
# category: syntax
set title AsciiDoc lite
# ---- Colours, each with its shade for dark pages -------------------------------------
palette
section #ba3925 dark #ff8a65
note #1c64d8 dark #74a7ff
tip #2b8a3e dark #69db7c
important #6741d9 dark #b197fc
warning #d9480f dark #ffa94d
caution #c92a2a dark #ff8787
# ---- = Title, == Section and so on: more = signs, a smaller heading -------------------
line = _ -> h1 fold 1
# Sections take the reddish brown of AsciiDoc's own pages, through the page's heading colour.
line == _ -> h2 fold 2 { --doc-heading: var(--section) } as ad-h2
line === _ -> h3 fold 3 { --doc-heading: var(--section) } as ad-h3
line ==== _ -> h4 fold 4
# ---- Marks inside a sentence: *bold*, _italic_, `mono`, #highlight# and links ----------
# bound: the mark only counts at the edge of a word, so snake_case_names stay as typed.
inline *_* -> strong bound
inline \__\_ -> em bound
inline `_` -> code verbatim
inline #_\# -> mark bound
# A link is the address, then the words to show in square brackets.
inline link:_[_] -> a href=_1 _2
inline https://_[_] -> a href="https://_1" _2
# ---- Lists: "* " for a point, "** " for a point under it, ". " for a numbered step -----
line * _ -> li group ul nest
line ** _ -> li.sub group ul nest { margin-left: 1.4em } as ad-sub
line . _ -> li group ol nest
# ---- ''' on its own line: a rule across the page ---------------------------------------
line ''' -> hr
# ---- .Title (no space) above a block: its caption ---------------------------------------
line ._ -> div.block-title { font-weight: 600; font-style: italic; margin: 1.2em 0 0.35em; opacity: 0.85 } as ad-block-title
# ---- Between two ---- lines: a listing; between two ____ lines: a quote ----------------
block ---- ... ---- -> pre verbatim { border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 10%, transparent) } as ad-listing
block \_\_\_\_ ... \_\_\_\_ -> blockquote { font-size: 1.15em; font-style: italic; border-left-color: var(--section) } as ad-quote
# ---- NOTE: TIP: IMPORTANT: WARNING: CAUTION: at the start of a line: a labelled box -----
# One look for every box; each kind sets its colour and its label, which the CSS draws
# in a column on the left.
class admonition { position: relative; margin: 1.2em 0; padding: 0.7em 1em 0.7em 7.4em; border-radius: 8px; background: color-mix(in srgb, var(--kind) 8%, transparent) }
class admonition::before { content: var(--label); position: absolute; left: 0; top: 0.7em; bottom: 0.7em; width: 6.4em; display: flex; align-items: center; justify-content: center; border-right: 2px solid color-mix(in srgb, var(--kind) 45%, transparent); font-family: var(--doc-font-ui); font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--kind) }
line NOTE: _ -> div.admonition.note { --kind: var(--note); --label: "Note" } as ad-note
line TIP: _ -> div.admonition.tip { --kind: var(--tip); --label: "Tip" } as ad-tip
line IMPORTANT: _ -> div.admonition.important { --kind: var(--important); --label: "Important" } as ad-important
line WARNING: _ -> div.admonition.warning { --kind: var(--warning); --label: "Warning" } as ad-warning
line CAUTION: _ -> div.admonition.caution { --kind: var(--caution); --label: "Caution" } as ad-caution
# ---- "// " at the start of a line: a comment that never prints -------------------------
line // _ -> hidden
~~~
= Keepsake quick start
// Checked against Keepsake 3.2 on 4 March 2026.
Keepsake copies the photos from your phone and camera cards into one folder a month, and *never* the same photo twice.
NOTE: Keepsake runs on Windows, macOS and Linux. The commands on this page are the same on all three.
== Install
. Download the installer from https://keepsake.example/download[the downloads page].
. Run it, and choose the folder your photos should live in.
. Open a terminal and check that it works with `keepsake --version`.
IMPORTANT: Keepsake 3 cannot read a library made by version 2. Run `keepsake upgrade` once on the old library first.
=== Your first import
.Importing a camera card
----
$ keepsake import /media/EOS_DIGITAL
Found 312 photos and 18 videos
Skipped 41 already in the library
Copied 289 files to ~/Pictures/2026/03
----
Every photo lands in the folder of the month it was taken, so a #search by month# finds it in a moment. For _other_ ways to sort, see link:sorting.html[sorting your library].
TIP: Add `--dry-run` to see what would be copied, without copying anything.
==== What the library holds
* Photos and videos, in a folder per month
** The original file, never changed
** A small preview for fast browsing
* A list of what was imported, and when
WARNING: Deleting a month's folder deletes its photos. Keepsake has no bin.
CAUTION: Two computers importing into one shared library at the same time can copy a photo twice. Import from one at a time.
____
Import before you delete. Back up before you edit.
____
'''
== How it's made
* Each mark is a rule in the rules block. A line's first characters pick what it becomes, so `==` makes a section and `. ` makes a step.
* Marks such as `*bold*` and `_italic_` work inside a sentence, but only at the edge of a word, so `snake_case_names` stay as typed.
* `NOTE:` and the other four words make a box. Each kind's rule sets a colour and a label, and the class `admonition` draws the label in a column on the left.
* A line that starts with `//` is a comment. It never prints.
== Try it yourself
. Change `tip` in the palette to `#6741d9`. The TIP box turns purple.
. Add `* Albums you make` as the last point of the list under "What the library holds". It joins the list.
. Change `=== Your first import` to `== Your first import`. It becomes a section as big as Install.
. Write a line that starts with `// `. It never shows on the page.
*Next:* the *Admonitions* rulebook draws the same boxes as blocks with a title line.