Coder Social home page Coder Social logo

firn's Introduction

Firn

A Static Site Generator for Org Mode

GitHub release (latest by date including pre-releases)  Discord 

What’s Firn?

Firn generates a static site from org-mode files. It is a bit different from other static site generators, in that it intends to be a drop in solution for creating sites from already existing folders of org-files. Further, because org-mode has great capacity for collecting and displaying different kinds of data (links, logbooks, drawers, task keywords, tags, etc) we can make this data available when org-content is parsed into a data structure.

Currently, running the firn binary on a directory of org files performs the following:

  • Reads all .org files in the directory recursively.
  • Parses org-files into data structures with the lovely Orgize.
  • Collects all file links, tags and logbooks across all files.
  • Passes files through a template system called Tera, and renders to HTML.

How do I use it?

  • Download the latest binary from the Github Releases page.
  • Add the binary to your path, or use the -d flag to pass a directory to Firn
# navigate to a directory that has some org-files in it, then
# scaffold out a site:
firn new

# go explore what was generated:
ls -la _firn

# start a server and go looking for your files:
# if you have an org file called 'foo.org' it will become 'foo.html' etc.
firn serve

# ready to build the output?
firn build

Read the full usage documentation here.

Development & Contributing

  • Rust version 1.58.0
  • see Makefile commands.
  • You’ll need a folder of Org files to test on.

A small roadmap can be found here.

Limitations

Development Server

The development server is quite naive. There is no caching or diffing in the replacement of changed assets in the /static or /data folder. Further, live reload changes will not be triggered when you change .org files in nested directories beyond the top directory of firn. For the most part, dunnwurryaboutit.

Footnotes

Due to how the parser parses footnotes, they must look like so:

[fn:1]

<My footnote>

Not like this:

[fn:1] <My Footnote>

firn's People

Contributors

bobymcbobs avatar edmundmiller avatar elken avatar holtzermann17 avatar jarhodes314 avatar lyderichti59 avatar ratsclub avatar teesloane avatar tranzystorekk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.