;; -*- mode: scheme; coding: utf-8 -*- ;;;; Copyright (C) 2003 - 2015 ;;;; Free Software Foundation, Inc. ;;;; This file is part of Guile-Gnome. ;;;; Guile-Gnome is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU General Public License as published ;;;; by the Free Software Foundation, either version 3 of the License, ;;;; or (at your option) any later version. ;;;; Guile-Gnome 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 ;;;; General Public License for more details. ;;;; You should have received a copy of the GNU General Public License ;;;; along with Guile-Gnome. If not, see ;;;; . ;;;; ;;; Commentary: ;;; Code: (use-modules (template) (globals)) (define page '((h2 "Documentation") (doc "gobject" "(gnome gobject)" ". Also includes a basic tutorial, and documents the wrapset generator.") (doc "glib" "(gnome glib)") (doc "atk" "(gnome atk)") (doc "pango" "(gnome pango)") (doc "pangocairo" "(gnome pangocairo)") (doc "gdk" "(gnome gdk)") (doc "gtk" "(gnome gtk)") (doc "libglade" "(gnome glade)") (doc "gnome-vfs" "(gnome vfs)") (doc "libgnomecanvas" "(gnome canvas)") (doc "gconf" "(gnome gconf)") (doc "libgnome" "(gnome gnome)") (doc "libgnomeui" "(gnome ui)") (doc "corba" "(gnome corba)") #;(doc "clutter" "(gnome clutter)") #;(doc "clutter-glx" "(gnome clutter-glx)"))) (define (make-index) (output-html page "Guile-Gnome" "Documentation" "" #:scm-path "documentation.scm" #:transform-rules `((doc . ,(lambda (doc stem module . extra) `(div (h4 ,(string-capitalize stem)) (p "Reference for " (tt ,module) ,@(if (pair? extra) extra '(": "))) (p (@ (style "text-align: center")) (a (@ (href "docs/" ,stem "/html/index.html")) "html") " | " (a (@ (href "docs/" ,stem "/guile-gnome-" ,stem ".pdf")) "pdf") " | " (a (@ (href "docs/" ,stem "/index.html")) "other formats"))))))))