Coder Social home page Coder Social logo

f-words's Introduction

f-words

f-words is an extremely basic static site generator written in F#. It was built specifically to publish markb.uk (source here).

It uses DotLiquid templates for page layout, and Markdown for content generation.

Build

You'll need the .NET Core 3.1 SDK installed. Once you have it, you can build/publish the app using VS2019, Visual Studio Code or the dotnet CLI.

Releases are also automatically published here when a new version is tagged.

Configuration

f-words currently relies on an fwords.cfg file being present in the root of the working folder. The file must contain the following key/value pairs (example values shown):

site_name: My Blog
site_url: https://myblog.com
rss_description: The latest articles from my blog.
template_path: templates
content_path: content
output_path: public

template_path is where the DotLiquid templates reside, content_path points to a folder full of Markdown content files, and output_path is the subfolder where the published HTML output will end up.

How to use

I haven't had time to write this up properly, but for now, you can hopefully work out how to structure a site project by using the markb.uk source repository as a reference.

To publish, just run fwords.exe <YOUR SITE PROJECT ROOT>.

f-words's People

Contributors

markashleybell avatar

Stargazers

 avatar

Watchers

 avatar  avatar

f-words's Issues

Get specific types to be highlighted from code block headers

This would be really nice, because it would allow highlighting of specific types on a block-by-block basis, e.g.

:::csharp[ComplicatedThing]
var myObject1 = new ComplicatedThing(
    loadChildren: true,
    maxDepth: 3,
    loadImages: true,
    allowUpdates: false,
    lockDeletion: true
);

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.