From c6d73eccb029819fcb9ceec27b466c2072d37af2 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 14 Nov 2024 02:32:39 +0300 Subject: [PATCH] docs(manual): Remove blank lines from code blocks where they serve no purpose --- documentation/c03-input.sil | 4 +--- documentation/c06-macroscommands.sil | 2 -- documentation/c07-settings.sil | 4 ---- documentation/c08-language.sil | 2 +- documentation/c13-tricks.sil | 2 +- packages/converters/init.lua | 2 -- 6 files changed, 3 insertions(+), 13 deletions(-) diff --git a/documentation/c03-input.sil b/documentation/c03-input.sil index 61813b416..a6f355235 100644 --- a/documentation/c03-input.sil +++ b/documentation/c03-input.sil @@ -217,13 +217,11 @@ Here are a few more examples of SILE commands: \begin[type=autodoc:codeblock]{raw} \eject % A command with no parameters or argument - \font[family=Times,size=10pt] % Parameters, but no argument - \chapter{Introducing SILE} % Argument but no parameters - \font[family=Times,size=10pt]{Hi there!} % Parameters and argument \end{raw}% + \subsection{Environments} Commands like \autodoc:command{\chapter} (to start a chapter) and \autodoc:command{\em} (to emphasize text) are normally used to enclose a relatively small piece of text—a few lines at most. diff --git a/documentation/c06-macroscommands.sil b/documentation/c06-macroscommands.sil index 681509004..92899b655 100644 --- a/documentation/c06-macroscommands.sil +++ b/documentation/c06-macroscommands.sil @@ -110,9 +110,7 @@ command.” So if we want to a command which makes things red, we can say: \begin[type=autodoc:codeblock]{raw} \define[command=red]{\color[color=red]{\process}} - … - Making things red is a \red{silly} way to emphasize text. \end{raw} diff --git a/documentation/c07-settings.sil b/documentation/c07-settings.sil index b2859f0b3..ef643887c 100644 --- a/documentation/c07-settings.sil +++ b/documentation/c07-settings.sil @@ -365,13 +365,9 @@ Harfbuzz, run \code{sile --debug=versions} on any file: \begin[type=autodoc:codeblock]{raw} $ sile --debug=versions hello.sil - ... - Harfbuzz version: 2.4.0 - Shapers enabled: graphite2, ot, coretext, coretext_aat, fallback - ... \end{raw} diff --git a/documentation/c08-language.sil b/documentation/c08-language.sil index 4ce87e4ec..4d646189f 100644 --- a/documentation/c08-language.sil +++ b/documentation/c08-language.sil @@ -155,7 +155,7 @@ The default is \code{left}. \font[family=Noto Sans Ethiopic]{ሰላም፡ልዑል} \\set[parameter=languages.am.justification,value=centered] -\font[family=Noto Sans Ethiopic]{ሰላም፡ልዑል} +\font[family=Noto Sans Ethiopic]{ሰላም፡ልዑል}​ \end{autodoc:codeblock} \font[family=Noto Sans Ethiopic,language=am]{ሰላም፡ልዑል} diff --git a/documentation/c13-tricks.sil b/documentation/c13-tricks.sil index 9ffa207c1..300729162 100644 --- a/documentation/c13-tricks.sil +++ b/documentation/c13-tricks.sil @@ -447,7 +447,7 @@ Sometimes it’s useful for you to try out Lua code within the SILE environment; If you call SILE with no input file names, it enters the REPL: \begin{autodoc:codeblock} -\sileversion +​\sileversion > \em{l = SILE.types.length("22mm")} > \em{l.length} 22mm diff --git a/packages/converters/init.lua b/packages/converters/init.lua index 59f06031f..145a332c0 100644 --- a/packages/converters/init.lua +++ b/packages/converters/init.lua @@ -124,7 +124,6 @@ We do this by registering a converter with the \autodoc:command{\converters:regi \begin[type=autodoc:codeblock]{raw} \use[module=packages.converters] - \converters:register[from=.gif,to=.jpg,command=convert $SOURCE $TARGET] \end{raw} @@ -140,7 +139,6 @@ This trick also works for text files: \begin[type=autodoc:codeblock]{raw} \converters:register[from=.md, to=.sil, command=pandoc -o $TARGET $SOURCE] - \include[src=document.md] \end{raw} \end{document}