From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UzVEMT57O1+HFAAA0tVLHw (envelope-from ) for ; Tue, 18 Aug 2020 06:54:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EAC0LD57O18+WAAA1q6Kng (envelope-from ) for ; Tue, 18 Aug 2020 06:54:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2F02B9402C2 for ; Tue, 18 Aug 2020 06:54:54 +0000 (UTC) Received: from localhost ([::1]:50962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7vWG-0000k2-Dz for larch@yhetil.org; Tue, 18 Aug 2020 02:54:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7vW2-0000ap-O8 for help-guix@gnu.org; Tue, 18 Aug 2020 02:54:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50069) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7vW0-0007Wt-Cy for help-guix@gnu.org; Tue, 18 Aug 2020 02:54:38 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4BD53160062 for ; Tue, 18 Aug 2020 08:54:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1597733672; bh=22epRCA31j56KMgKowthTh+6pD0RxIdBWCId16dj8LE=; h=From:To:Cc:Subject:Date:From; b=QIIIDAOCZzm/d+QO3j7JswjGQXKEdhjiLfpazsFsypW2XVtfO1oizNbycCP+prsvF FwybKf20BrQEBUn4BJqFKOswZruxAKR+zaZsFc3Ddw9GC7sL9A/rxInuliMmq6uMb2 0y8mcHFTBUNy+Wljd9mTGez0Yb5ioKS1B/nojUWt2Tp8FPTZoyYeRHyZME41+3w3eX 151D1ShTtYftPLiSZKIrPOabDfpXuCmbcB+zhII5YewgsHP5jF4de56ljOFL5kYlLm MeYzcXrmA1CORtBQDpi1EqQVc2CIavqeXXyXTlHdruNk1kZKXbYspGcqkkR9QGqeE+ Ew5WRpVMPQiyQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BW1qW3LCMz9rxW; Tue, 18 Aug 2020 08:54:31 +0200 (CEST) References: <87mu2t9h70.fsf@dismail.de> User-agent: mu4e 1.4.10; emacs 26.3 From: pukkamustard To: Joshua Branson Subject: Re: Customizing Haunt to work with Skribilio In-reply-to: <87mu2t9h70.fsf@dismail.de> Date: Tue, 18 Aug 2020 08:54:30 +0200 Message-ID: <86sgckxx3t.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=pukkamustard@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 02:54:32 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QIIIDAOC; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: fkjq9t/EFnan Hi Joshua, > I am trying to use the lovely haunt static site generator with > Skribilio! Cool! I've been tinkering with the same idea the last couple of=20 days. In particular using the Skribilo outline reader to build websites=20 from org-mode files with haunt. > But I am still getting an error message: > > #+BEGIN_SRC sh > joshua@dobby ~/prog/org/projects/generate-income/client-site$=20 > haunt build > building pages in 'site'... > Backtrace: > 5 (primitive-load=20 > "/gnu/store/4vvbcxrqjm8dbc1g1gk9pakqgf7=E2=80=A6") > In haunt/ui.scm: > 124:6 4 (run-haunt-command _ . _) > In haunt/ui/build.scm: > 60:4 3 (haunt-build . _) > In haunt/site.scm: > 100:19 2 (build-site #< title: "Built with Guile"=20 > domain: =E2=80=A6>) > In ice-9/ftw.scm: > 482:39 1 (loop _ _ #(2050 2907188 16877 2 1000 998 0 4096 #=20 > # =E2=80=A6) =E2=80=A6) > In unknown file: > 0 (scm-error misc-error #f "~A ~S" ("no reader=20 > availa=E2=80=A6" =E2=80=A6) =E2=80=A6) > > ERROR: In procedure scm-error: > no reader available for post: "posts/jolly-good-day.skr" > #+END_SRC > > What am I doing wrong? You need to add the `skribe-reader` to the list of readers in your=20 site configuration: ``` #:readers (list commonmark-reader skribe-reader) ``` Haunt does not use Skribilo and it is not necessary to add=20 skribilo as input when building haunt. Haunt has it's own parser for the=20 skribe format=20 (https://git.dthompson.us/haunt.git/tree/haunt/reader/skribe.scm). The problem is that haunt does not know what to do with the *.skr=20 file ("no reader available"). I've been doing some poking around into using Skribilo directly=20 from haunt. This is the basic idea: ``` (define-module (my-skribilo-reader) #:use-module (haunt reader) #:use-module (skribilo reader outline)) ;; Make a haunt reader (define haunt-outline-reader (make-reader (make-file-extension-matcher "org") (lambda (file) (let ((outline-reader (make-outline-reader))) ; This is the=20 Skribilo reader (do-some-processing-to-create-a-haunt-post (with-input-from-file file outline-reader)))))) ``` Hope that helps, -pukkamustard PS: Would you be interested in porting Skribilo to Guile 3.0? I'm=20 struggling with that and could use some help.