doc: Use @lisp instead of @example for Scheme snippets.

This is a followup to f8c143a713, which
allows syntax highlighting of @lisp snippets in the HTML output.

* doc/guix.texi, doc/contributing.texi: Use @lisp instead of @example
for all the Scheme snippets.
This commit is contained in:
Ludovic Courtès 2019-09-07 18:21:01 +02:00
parent 7854bbeb3f
commit 8ba31e8bd1
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
2 changed files with 329 additions and 329 deletions

View File

@ -376,7 +376,7 @@ package and does not contain any version number.
For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows: For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:
@example @lisp
(define-public gtk+ (define-public gtk+
(package (package
(name "gtk+") (name "gtk+")
@ -387,15 +387,15 @@ For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows
(name "gtk+") (name "gtk+")
(version "2.24.20") (version "2.24.20")
...)) ...))
@end example @end lisp
If we also wanted GTK+ 3.8.2, this would be packaged as If we also wanted GTK+ 3.8.2, this would be packaged as
@example @lisp
(define-public gtk+-3.8 (define-public gtk+-3.8
(package (package
(name "gtk+") (name "gtk+")
(version "3.8.2") (version "3.8.2")
...)) ...))
@end example @end lisp
@c See <https://lists.gnu.org/archive/html/guix-devel/2016-01/msg00425.html>, @c See <https://lists.gnu.org/archive/html/guix-devel/2016-01/msg00425.html>,
@c for a discussion of what follows. @c for a discussion of what follows.
@ -432,7 +432,7 @@ kernel.) It is best to use the full commit identifiers in
@code{origin}s, though, to avoid ambiguities. A typical package @code{origin}s, though, to avoid ambiguities. A typical package
definition may look like this: definition may look like this:
@example @lisp
(define my-package (define my-package
(let ((commit "c3f29bc928d5900971f65965feaae59e1272a3f7") (let ((commit "c3f29bc928d5900971f65965feaae59e1272a3f7")
(revision "1")) ;Guix package revision (revision "1")) ;Guix package revision
@ -447,7 +447,7 @@ definition may look like this:
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
;; @dots{} ;; @dots{}
))) )))
@end example @end lisp
@node Synopses and Descriptions @node Synopses and Descriptions
@subsection Synopses and Descriptions @subsection Synopses and Descriptions
@ -825,12 +825,12 @@ recommend using the @code{qemu-binfmt-service-type} to emulate them. In
order to enable it, add the following service to the list of services in order to enable it, add the following service to the list of services in
your @code{operating-system} configuration: your @code{operating-system} configuration:
@example @lisp
(service qemu-binfmt-service-type (service qemu-binfmt-service-type
(qemu-binfmt-configuration (qemu-binfmt-configuration
(platforms (lookup-qemu-platforms "arm" "aarch64" "mips64el")) (platforms (lookup-qemu-platforms "arm" "aarch64" "mips64el"))
(guix-support? #t))) (guix-support? #t)))
@end example @end lisp
Then reconfigure your system. Then reconfigure your system.

File diff suppressed because it is too large Load Diff