wiki/cli.lisp
Remember the ASDF environment of the build, so that the executable can find systems and their compiled files without the sbcl wrapper's environment, and SBCL's home so that (require :sb-concurrency) and other contribs still work from an executable outside SBCL's own directory. Called by wiki/build.lisp before the image is dumped.
Re-establish the build's ASDF configuration in the running executable. The Nix shell sets a smaller CL_SOURCE_REGISTRY of its own (the sbcl wrapper adds the packaged systems only for sbcl processes), so the captured configuration is used whenever it exists.
Register every repository-owned system so the source scan knows its files.
The site over the wiki pages, and over the source files unless code is NIL.
index.org first, then the rest as on the site.
Plain text
element as plain text for a terminal.
FILE:LINE with the file relative to the repository root.
Commands
Table of contents: every page with its figures, IDs, and work marks. Give page names to restrict.
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Print COUNT fresh figure IDs that no page uses (default 12); never six hex digits, which the reader takes for a colour.
Load the luv systems into this process and write the real lambda lists of every operator the sources use to wiki/arglists.sexp, for the renderer's derived layouts. Give system names to load others instead.
Entry point of the built executable.
CL_SOURCE_REGISTRY as seen when the executable was built.
ASDF_OUTPUT_TRANSLATIONS as seen when the executable was built.
SBCL's home directory at build time, where its contrib modules live.
()Remember the ASDF environment of the build, so that the executable can find systems and their compiled files without the sbcl wrapper's environment, and SBCL's home so that (require :sb-concurrency) and other contribs still work from an executable outside SBCL's own directory. Called by wiki/build.lisp before the…
()Re-establish the build's ASDF configuration in the running executable. The Nix shell sets a smaller CL_SOURCE_REGISTRY of its own (the sbcl wrapper adds the packaged systems only for sbcl processes), so the captured configuration is used whenever it exists.
Logical conjunction of tests and raw truth values.
The repository root: the directory holding the primary ASD files and wiki/.
Logical disjunction of tests and raw truth values.
(&key (code t))(pathname &key (name (pathname-name pathname)))(pathname)(&key (root (uiop:getcwd)))(domain x y z &optional (extent +vertex-extent+) (polarity 1))Pack a canonical site inside DOMAIN's box. No coordinate wraps: anchors range over [0, limit] per horizontal axis, and a site extending along an axis cannot begin on that axis's far boundary.
(source-files)SYSTEM-ENTRYs for the registered code systems, in dependency order: a system comes after everything it depends on, ties broken by name, and each SOURCE-FILE of SOURCE-FILES attached to its system.
(inlines)(text &key (indent 0) (width 76))Test whether one compatible scalar is greater than another.
Addition over compatible quantities.
A block-level piece of an Org document.
A run of prose; CHILDREN are inline objects.
A bulleted or numbered list of LIST-ITEMs.
One list item; CHILDREN are blocks, usually a paragraph.
A #+begin_example block, kept verbatim.
A simple Org table without formulas.
An Org headline with its section and subheadings.
(definition)One top-level defining form of a source file.
(heading)(heading)Alist of (name docstring function).
(name (&rest lambda-list) documentation &body body)((name symbol) (type (eql 'arithmetic-operator)))(&rest arguments)(&rest names)Table of contents: every page with its figures, IDs, and work marks. Give page names to restrict.
An open document and the context it was opened in.
((document document))(&rest ids)(document)Multiplication and scalar scaling.
((heading heading))(&rest statuses)(figure &key (site *site*))(&optional (count "12"))Print COUNT fresh figure IDs that no page uses (default 12); never six hex digits, which the reader takes for a colour.
(id &optional (site *site*))(&optional (text *page*) (name "test"))(function element)(&rest ids)(&rest arguments)(site)(site)An alist of (definition . ids) for code mentions no figure resolves, leaving out the definitions of test systems.
(&rest names)ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Test whether two compatible scalars are equal.
(string start end)Are the characters of STRING from START below END all hex digits? A figure ID never is, so that #111517 in a stylesheet stays a colour.
Systems loaded before gathering operator lambda lists.
(&rest systems)Load the luv systems into this process and write the real lambda lists of every operator the sources use to wiki/arglists.sexp, for the renderer's derived layouts. Give system names to load others instead.
(source-files pathname)(&rest arguments)(arguments)
The ./wiki command: the wiki corpus from a shell.
A small executable built with ASDF's program-op, for agents and people who want the table of contents, the work marks, a figure's text, or the places something is mentioned without opening Emacs or a browser. It reads the same objects the site is rendered from, so what it prints agrees with what the site shows.