Commit graph

16 commits

Author SHA1 Message Date
Jan Tojnar
05407a5a2f epub: Remove extra page breaks before headings
The sections are pretty short, leading to unnecessary pagination being required.
2024-04-09 01:46:32 +02:00
Noam Yorav-Raphael
7869d7168e Build the book with Nix 2024-04-09 01:46:32 +02:00
Jan Tojnar
8291ca1677 Revert "Convert from docbook to mdbook (#233)"
This reverts commit 4033045782.

To preserve history.
2024-04-09 01:46:08 +02:00
Noam Yorav-Raphael
4033045782
Convert from docbook to mdbook (#233)
* Transform <xi:include> elements to include content

* Remove 3 files which were not referenced

The files were probably included in previous versions and weren't
removed.

* Automatic conversion using pandoc

I just run `pandoc {fn} -f docbook -t markdown --wrap=none -s -o {fn.with_suffix(".md")}` over all .xml files in pills/, and on /book.xml

I manually created SUMMARY.md based on the list in book.xml.

* Remove front matter from 00-preface.md

* Support "note" sections, fix inter-links

* Fix code sections with highlighting, which pandoc missed

* Replace `\'` with `'`.

* Replace `\"` with `"`.

* Replace `\...` with `...`

* Format markdown with Prettier

* Convert code section to fenced, with the appropriate syntax

* Build the book with Nix

* Add highlight.js which supports nix syntax highlighting

* Add redirects from original paths to new paths

* make prompts unselectable

* README: Remove DocBook-specific instructions

(cherry picked from commit 66936f15a573e36e7138fc93cecb8d2845296ace)

* Re-add heading id

It was removed in pandoc step for some reason.

(cherry picked from commit cf39aa5ad95cf3d704ecd2aa4055e4c23e74fb6b)

* Fix footnote rendering with mdbook-epub

mdbook-epub 0.4.37 will collapse the second footnote into the first one.
This does not happen with HTML output from plain mdbook.

(cherry picked from commit bc9bd1384427a443dd12674c5ae2ae0c36ffc7ee)

* Manually added backticks for <package> tags in original

* Put «» around what was originally <replaceable>

* epub: Remove extra page breaks before headings

The sections are pretty short, leading to unnecessary pagination being required.

---------

Co-authored-by: Noam Yorav-Raphael <noam.yoravraphael@mobileye.com>
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2024-04-08 16:37:11 -07:00
Jan Tojnar
49c3ae8720 build: Add EPUB support
You can get it by running `nix-build release.nix -A epub`
2022-09-01 09:58:13 +02:00
Jan Tojnar
841d008f51 build: Only install svg images 2022-09-01 09:55:27 +02:00
Jan Tojnar
b4b41c87af build: Quote bash variables 2022-09-01 09:55:27 +02:00
Jan Tojnar
0d7e5019d6 build: Drop DocBook schema validation
It was not actually used because we did not pass it the manual.

And if we fix it by replacing the Bash `$combined` variable by a Nix one,
it will fail because we only have RelaxNG schema for Docbook 5.0,
which unlike later versions is too limited (e.g. does not allow
emphasis element within filename element).

- https://tdg.docbook.org/tdg/5.0/filename.html
- https://tdg.docbook.org/tdg/5.2/filename.html
2022-09-01 09:55:27 +02:00
Jan Tojnar
b46509caec build: Do not use package aliases 2021-11-22 17:30:55 +01:00
John Ericson
4de6aaea5d Allow *.nix just within subdirectories 2018-02-23 19:04:13 -05:00
Graham Christensen
6be6381643
Add proper versioning 2017-08-19 10:56:31 -04:00
Graham Christensen
df67bd4888
Update generation to not make the website think it is the NixOS Manual 2017-08-16 20:51:29 -04:00
Justin Wood
6218ca191d
Label sections 2017-08-12 22:31:35 -04:00
Graham Christensen
252ab2215c
fixup build instructions 2017-08-12 17:57:40 -04:00
Graham Christensen
c596b2114f
Pill #1 2017-08-11 22:47:47 -04:00
Graham Christensen
02a33601c5
Initial commit of nix pills 2017-08-11 18:22:51 -04:00