GithubHelp home page GithubHelp logo

irxess / makimono-generator Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 721 KB

Generate static webpages from YAML files for a foodblog

Python 17.58% JavaScript 6.70% PowerShell 2.48% Less 10.24% Jinja 63.00%
recipe-website food-blog static-site-generator jinja2 food cooking-recipes baking-recipes python lesscss yaml

makimono-generator's Introduction

Makimono

Generate static webpages from YAML files for a foodblog.

You can find it at https://makimo.no/

Setup

Make sure python (at least v 3.7) and the neccessary python packages are installed:

Windows

Using python's virtual environment

Official docs per 2020-02-15 for venv can be found here: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

To set up the virtual environment:

python -m venv path/to/repo-directory/

To start the virtual environment:

./Scripts/activate

After you are done working with the project, you can exit the virtual environment by running:

deactivate

To install the packages specified in the requirements-file:

pip install -r requirements.txt

When not using virtual environments

(Might have to run from shell started as admin due to lack of suitable sudo functionality.)

python -m pip install pyyaml jinja2 lesscpy pillow

Other OSs (tested on Linux)

Using python's virtual environment

To set up the virtual environment:

python -m venv venv_name

To start the virtual environment:

source venv_name/bin/activate

To install the packages specified in the requirements-file:

pip install -r requirements.txt

After you are done working with the project, you can exit the virtual environment by running:

deactivate

When not using virtual environments

pip install pyyaml jinja2 lesscpy pillow

Generating the content

Run generate.py:

python generate.py

This will create a 'publish'-folder, which can be used as root for the published site.

Note that if you are using virtual environments, this should be executed while the virtual environment is active.

Images

Note that the images referenced in the recipe files have to be places in the publish/images/ folder. You can create the publish/images/ directory before you do the first generating. The reason for this is that we do not want to bloat the git repository with binaries, and you will need to sort out the storage when you push the generated content anywhere anyways.

Beware that the referenced images have to be present before you run the generation, otherwise the thumbnail generating code will fail.

makimono-generator's People

Contributors

irxess avatar simonra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rice-b

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.