summaryrefslogtreecommitdiff
path: root/website/posts/service-composition-in-guixsd.sxml
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-04-14 11:46:22 +0200
committerLudovic Courtès <ludo@gnu.org>2017-04-14 11:46:22 +0200
commit912b1b6efe8c6f6eef55038fcfe279d136a00d44 (patch)
tree3ef72a227b8b61df6db63b364efb01062cb48546 /website/posts/service-composition-in-guixsd.sxml
parentb0a1c906278ec6fd40f68bb27328e181bc3e4b5f (diff)
downloadguix-artwork-912b1b6efe8c6f6eef55038fcfe279d136a00d44.tar
guix-artwork-912b1b6efe8c6f6eef55038fcfe279d136a00d44.tar.gz
website: news: Syntax-highlight older posts.
* website/posts/guixsd-system-tests.sxml, website/posts/service-composition-in-guixsd.sxml: Use (pre (code (@ (class "language-scheme")) ...)) to get syntax highlighting.
Diffstat (limited to 'website/posts/service-composition-in-guixsd.sxml')
-rw-r--r--website/posts/service-composition-in-guixsd.sxml8
1 files changed, 4 insertions, 4 deletions
diff --git a/website/posts/service-composition-in-guixsd.sxml b/website/posts/service-composition-in-guixsd.sxml
index 349a396..499432a 100644
--- a/website/posts/service-composition-in-guixsd.sxml
+++ b/website/posts/service-composition-in-guixsd.sxml
@@ -101,12 +101,12 @@
(br))
(p "The API makes it easy to see how services contributed to a specific service’s configuration. For instance, the following expression shows the PAM service as extended by other declared services:"
(br))
- (div (@ (class "example"))
- (pre "(fold-services (operating-system-services os) \n #:target-type pam-root-service-type)\n"))
+ (pre (code (@ (class "language-scheme"))
+ "(fold-services (operating-system-services os) \n #:target-type pam-root-service-type)\n"))
(p "The result is a service object whose value is a list of pam-service objects. Likewise, the following expression returns the /etc service, whose value is a list of entries to be added to /etc:"
(br))
- (div (@ (class "example"))
- (pre "(fold-services (operating-system-services os) \n #:target-type etc-service-type)\n"))
+ (pre (code (@ (class "language-scheme"))
+ "(fold-services (operating-system-services os) \n #:target-type etc-service-type)\n"))
(p "This contrasts with the approach taken by "
(a (@ (href "http://nixos.org/")) "NixOS")
", GuixSD’s cousin, and described in this "