all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 9e38cebe9fa21c022341ca2ae893efd265eb8dd4 2124 bytes (raw)
name: website/apps/development/builder.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
;;; GNU Guix web site
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of the GNU Guix web site.
;;;
;;; The GNU Guix web site is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU Affero General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; The GNU Guix web site is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU Affero General Public License for more details.
;;;
;;; You should have received a copy of the GNU Affero General Public License
;;; along with the GNU Guix web site.  If not, see <http://www.gnu.org/licenses/>.

(define-module (apps development builder)
  #:use-module (apps aux system)
  #:use-module (apps development data)
  #:use-module (apps development templates branches)
  #:use-module (haunt artifact)
  #:use-module (haunt html)
  #:use-module (haunt page)
  #:use-module (haunt utils)
  #:use-module (apps aux web)
  #:use-module (apps media utils)
  #:use-module (srfi srfi-1)
  #:export (builder))

(define (builder site posts)
  "Return the list of web resources that compose the app.

   This procedure is a Haunt builder procedure.

   SITE (<site>)
     A site object that defines all the properties of the website. See
     Haunt <site> objects for more information.

   POSTS (list of <post>)
     A list of post objects that represent articles from the blog. See
     Haunt <post> objects for more information.

   RETURN (list of <artifact> and <page>)
     A list of objects that represent the web resources of the
     application. See Haunt <artifact> and <page> objects for more
     information."
  (list (branch-list-builder)))

(define (branch-list-builder)
  "Return a Haunt artifact representing the publications page."
  (serialized-artifact (url-path-join "branches" "index.html")
                       (branch-list-t branches)
                       sxml->html))

debug log:

solving 9e38ceb ...
found 9e38ceb in https://yhetil.org/guix/20210702162904.314-1-ludo@gnu.org/

applying [1/1] https://yhetil.org/guix/20210702162904.314-1-ludo@gnu.org/
diff --git a/website/apps/development/builder.scm b/website/apps/development/builder.scm
new file mode 100644
index 0000000..9e38ceb

Checking patch website/apps/development/builder.scm...
Applied patch website/apps/development/builder.scm cleanly.

index at:
100644 9e38cebe9fa21c022341ca2ae893efd265eb8dd4	website/apps/development/builder.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.