No description
Find a file
Noam Yorav-Raphael cd05ea088e Replace \' with '.
2024-04-09 01:46:32 +02:00
.github/workflows Add simple CI workflow 2021-11-26 22:02:58 +01:00
pills Replace \' with '. 2024-04-09 01:46:32 +02:00
.editorconfig initialize an editorconfig 2017-08-13 09:54:34 -04:00
.gitignore Automatic conversion using pandoc 2024-04-09 01:46:32 +02:00
book.toml Support "note" sections, fix inter-links 2024-04-09 01:46:32 +02:00
custom.css Support "note" sections, fix inter-links 2024-04-09 01:46:32 +02:00
default.nix Revert "Convert from docbook to mdbook (#233)" 2024-04-09 01:46:08 +02:00
LICENSE License it CC-BY-SA-4.0 per #36 where every existing contributor agreed 2017-12-19 07:04:41 -05:00
README.md Revert "Convert from docbook to mdbook (#233)" 2024-04-09 01:46:08 +02:00
release.nix Revert "Convert from docbook to mdbook (#233)" 2024-04-09 01:46:08 +02:00

Nix Pills

Available online as a multi-page HTML or an e-book in EPUB format.

You can also build them locally:

nix-build release.nix -A html-split && firefox result/share/doc/nix-pills/index.html

Similarly, for an EPUB version, run:

nix-build release.nix -A epub && foliate result/share/doc/nix-pills/nix-pills.epub

Development

Emacs config for a nice DocBook experience:

let
 pkgs = import <nixpkgs> {};
 inherit (pkgs) emacsPackagesNg docbook5 writeText;

 schemas = writeText "schemas.xml" ''
   <locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
     <documentElement localName="section" typeId="DocBook"/>
     <documentElement localName="chapter" typeId="DocBook"/>
     <documentElement localName="article" typeId="DocBook"/>
     <documentElement localName="book" typeId="DocBook"/>
     <typeId id="DocBook" uri="${docbook5}/xml/rng/docbook/docbookxi.rnc" />
   </locatingRules>
 '';

in emacsPackagesNg.emacsWithPackages (epkgs: [
 (emacsPackagesNg.trivialBuild {
   pname = "nix-docbook-mode";
   version = "1970-01-01";
   src = writeText "default.el" ''
     (eval-after-load 'rng-loc
       '(add-to-list 'rng-schema-locating-files "${schemas}"))
     (global-set-key (kbd "<C-return>") 'nxml-complete)
   '';
 })
])

Then you can use the keys:

  • C-c C-b to finish & close a tag
  • C-c C-f to close a tag
  • C-return to auto-complete a tag or attribute.