/bash_site

Collection of command line tools for rendering sites such as blogs, diaries, or course material using libre / open tools such as bash and Libreoffice.

Primary LanguageShellCreative Commons Zero v1.0 UniversalCC0-1.0

Bash Site Generator

The Bash Site Generator is a piece of software to help in the creation of courses which will be rendered as Markdown files, including an index, etc.

The generator is a collection of scripts that can be executed step by step to:

  1. create a series of localised templates to pages
  2. automatically fill in a predefined amount of pages to compose a site
  3. generate an index file to help navigating the final site
  4. generate a navigation bar in every page with Next and Previous links
  5. store the whole site as a spreadsheet for easier editing
  6. render the site from the spreadsheet as a series of markdown files
  7. automatically create empty code files for every code block with the right titles for you to fill in
  8. visualise the site as part of Github pages
  9. includes block for video, images, code, plain text, HTML, and licenses
  10. code blocks come with color coding for: C, C++, Processing, JavaScript, Python

Super simple example

First, open a terminal window, clone the repo, and navigate to the build folder.

There will be a lot of data pushed out to the CLI, check whether there are any errors.

In this example, we are using a simplified template using just an introduction and a video field (plus license, name, and index fields). Use less [path] to see the contents of any of the pages.

The code will also render an index page with links to all of the pages in the site.

Why Bash

Bash is a very powerful and simple command line scripting mechanism.

Access the docs

The documentation to the Bash Site Generator has been made with the Bash Site Generator. Check:

THE SITE

THE INDEX FILE

Build your own site

The content's scaffolding is created by running the build process. Check:

THE BUILD FILE

Updates

See THE LOGS FILE for a full day-to-day update of the creation of this project.

Things I would like to add

Do you wanna know what I have in mind for this project? Read about it in my TODO LIST

Current version

pre-alpha a.k.a. Twosday edition published on 22022022

License

Do you need one? Yepp, I got you covered, I used CC0.