[-- Attachment #1: Type: text/plain, Size: 580 bytes --] Hi, I wanted to ask if there is a "Plan9 way" to create simple HTML pages. Would this possibly be doable with troff, or is there for example a way to convert Markdown? Since my intention would be a very simple blog, it would also be possible to just create the pages directly in HTML using acme. Thank you very much in advance and best regards. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M76ec2d55567c9b1d6759481d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1142 bytes --]
> I wanted to ask if there is a "Plan9 way" to create simple HTML > pages. Would this possibly be doable with troff, or is there for > example a way to convert Markdown? Since my intention would be a > very simple blog, it would also be possible to just create the pages > directly in HTML using acme. I do this sort of thing using the discount markdown processor available at https://github.com/Orc/discount. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-Ma03866a5e5b0ac2020bcc8ad Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Quoth sml@firstpost.pub: […] > I wanted to ask if there is a "Plan9 way" to create simple HTML pages. Would this possibly be doable with troff, or is there for example a way to convert Markdown? Since my intention would be a very simple blog, it would also be possible to just create the pages directly in HTML using acme. […] If you don't mind installing Go the Hugo⁽¹⁾ static site generator supporting many themes⁽²⁾ is an option. Here is a version that works with Plan9 (only tested on 9front though): • http://only9fans.com/igor/hugo/HEAD/info.html …not sure if this fits your definition of 'Plan9 way' though. ⁽¹⁾…https://gohugo.io ⁽²⁾…https://themes.gohugo.io ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M02fdd8555a9ec6edc864a0f1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --] this little monster of mine could be of interest to you: https://github.com/sametsisartenep/mkweb best, -rodri On Tue, Feb 1, 2022, 9:12 AM <igor@9lab.org> wrote: > Quoth sml@firstpost.pub: > […] > > I wanted to ask if there is a "Plan9 way" to create simple HTML pages. > Would this possibly be doable with troff, or is there for example a way to > convert Markdown? Since my intention would be a very simple blog, it would > also be possible to just create the pages directly in HTML using acme. > […] > > If you don't mind installing Go the Hugo⁽¹⁾ static site generator > supporting many themes⁽²⁾ is an option. Here is a version that works > with Plan9 (only tested on 9front though): > > • http://only9fans.com/igor/hugo/HEAD/info.html > > …not sure if this fits your definition of 'Plan9 way' > though. > > ⁽¹⁾…https://gohugo.io > ⁽²⁾…https://themes.gohugo.io > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-Mdf06c321e429b400259d839c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 2951 bytes --]
I have multiple ways for different reasons: My website is generated using static fragments and page fragments. The blog however is a troff source that's converted to a static page fragment. This way I can output a nice pdf too. I made shithub.us/sirjofri/epublish which uses a markdown-like format for text sources and outputs an ebook as pdf (via troff) and epub (custom converter). You can look at the sources, they use awk to convert the texts. sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M77cde86a99b64740be9a7077 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Quoth sml@firstpost.pub: > Hi, > > I wanted to ask if there is a "Plan9 way" to create simple HTML pages. Would this possibly be doable with troff, or is there for example a way to convert Markdown? Since my intention would be a very simple blog, it would also be possible to just create the pages directly in HTML using acme. > > Thank you very much in advance and best regards. Personally, I use sam. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M141e7cee53b3d3f8f5672118 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
On 1/31/22 23:49, sml@firstpost.pub wrote: > I wanted to ask if there is a "Plan9 way" to create simple HTML pages. > Would this possibly be doable with troff, or is there for example a way > to convert Markdown? This is not Plan 9 specific, but it sounds like pandoc could help you: https://pandoc.org/ I generate my blog using a combination of Markdown files, HTML templates, pandoc, and a shell script. pandoc can also convert from roff formats, if you're keen to use that. -- Ben Hancock www.benghancock.com ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M734d74a517074a4aee433cb9 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Quoth Ben Hancock <ben@benghancock.com>: > This is not Plan 9 specific Are you implying it runs on plan 9 at all? ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-Ma2eeae58506cde465879bc7e Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Thank you so much for all the good suggestions! I‘m going to test my way through them to find the one that works best for me. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M95ce9b3ff74801c44f8d0983 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
On 2/1/22 08:20, ori@eigenstate.org wrote: > Quoth Ben Hancock <ben@benghancock.com>: >> This is not Plan 9 specific > > Are you implying it runs on plan 9 at all? You're right - I should have clarified: I don't know whether pandoc runs on Plan 9. I thought I would suggest just in case OP was looking at tools from the Plan 9 user space and could consider other options that run on other Unix-like systems. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-Maab329b056e629f0719d29ca Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #1: Type: text/plain, Size: 316 bytes --] > I don't know whether pandoc runs > on Plan 9. It is Haskell, so I suspect not. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te71ff4b45d15900f-M78a822fd2c0d5283486b02f4 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1032 bytes --]