From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: org to static site? Date: Tue, 6 Jun 2017 11:12:22 +0200 Message-ID: References: <3bf40b12-954f-4d17-9436-efd8e12a7d50@gmail.com> Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1145069ead9daf05514705b3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIAY0-0005Nl-Pi for emacs-orgmode@gnu.org; Tue, 06 Jun 2017 05:13:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIAXr-0004hJ-A4 for emacs-orgmode@gnu.org; Tue, 06 Jun 2017 05:13:04 -0400 Received: from smtp2.supelec.fr ([160.228.120.31]:60612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIAXq-0004aK-Vi for emacs-orgmode@gnu.org; Tue, 06 Jun 2017 05:12:59 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id 716A180240 for ; Tue, 6 Jun 2017 11:12:45 +0200 (CEST) Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jUbmyw3TMivM for ; Tue, 6 Jun 2017 11:12:45 +0200 (CEST) Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) by smtp2.supelec.fr (Postfix) with ESMTPSA id D8F308023F for ; Tue, 6 Jun 2017 11:12:44 +0200 (CEST) Received: by mail-qt0-f172.google.com with SMTP id u12so98640437qth.0 for ; Tue, 06 Jun 2017 02:12:44 -0700 (PDT) In-Reply-To: <3bf40b12-954f-4d17-9436-efd8e12a7d50@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Scott Randby Cc: Org Mode --001a1145069ead9daf05514705b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I do the same, albeit I won't qualify my setup as 'simple'. I export all my teaching stuff, personal web page and so on from Org files, one file per course or topic. I export html files, reveal presentations, pdf files for exams or reference documents, even IPython notebooks (thanks to John Kitchin). I haven' t found an easy way to rely on ox-publish for subtree publishing with this scheme where you keep everything in the same Org file. The problem was with navigation. I use a templating system where I compute menus and body documents that are inserted in some html template. So I had to write all the functions that will do this computation and resolve cross links (not yet perfect in this are). 2017-06-04 20:26 GMT+02:00 Scott Randby : > On 05/31/2017 11:00 AM, Matt Price wrote: > > I'm trying to wean myself off of Wordpress for next year's teaching > > websites, and am wondering what solutions other people are using for > > turning a collection of org pages and/or subtrees into a static html > > site. I am leaning towards Hugo but honestly not for any sensible > > reason; I've seen other people use Jekyll, though the fact that Github > > doesn't support direct conversion from org-mode removes some of Jekyll'= s > > appeal; and I know there are a number of other solutions too. > > > > So, I would love to hear what you all recommend. > > Maybe this is too primitive, but I keep all the content in one Org file > and export the text under each top-level headline as a single HTML page. > I use some simple macros if I need to export more than one top-level > headline. I keep the CSS code in a separate file. Keeping all the > content in one file makes it really easy to add new pages and edit old > pages. I use a preamble for site navigation. > > Scott Randby > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --001a1145069ead9daf05514705b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I do the same, albeit I won't qualify my setup as '= ;simple'.
I export all my teaching stuff, personal web page and so o= n from Org files, one file per=C2=A0
course or topic. I export html fil= es, reveal presentations, pdf files for exams or reference documents,=C2=A0=
even IPython notebooks (thanks to John Kitchin).
I hav= en' t found an easy way to rely on ox-publish =C2=A0for subtree publish= ing
with this scheme where you keep everything in the same Org fi= le.
The problem was with navigation. I use a templating system
where I compute menus and body documents that are inserted in
=
some html template. So I had to write all the functions that will
do this computation and resolve cross links (not yet perfect in this = are).

=C2=A0

2017-06-04 20:26 GMT+02:00 Scott Randby <s= randby@gmail.com>:
On 05/31/2017 11:00 AM, Matt Price wrote:
> I'm trying to wean myself off of Wordpress for next year's tea= ching
> websites, and am wondering what solutions other people are using for > turning a collection of org pages and/or subtrees into a static html > site. I am leaning towards Hugo but honestly not for any sensible
> reason; I've seen other people use Jekyll, though the fact that Gi= thub
> doesn't support direct conversion from org-mode removes some of Je= kyll's
> appeal; and I know there are a number of other solutions too.
>
> So, I would love to hear what you all recommend.

Maybe this is too primitive, but I keep all the content in one Org f= ile
and export the text under each top-level headline as a single HTML page. I use some simple macros if I need to export more than one top-level
headline. I keep the CSS code in a separate file. Keeping all the
content in one file makes it really easy to add new pages and edit old
pages. I use a preamble for site navigation.

Scott Randby




--
Fabrice= Popineau
-----------------------------
SUPELEC
D= =C3=A9partement Informatique
3, rue Joliot Curie
91192 = Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standar= d : +33 (0) 169851212
------------------------------
--001a1145069ead9daf05514705b3--