Giter VIP home page Giter VIP logo

gouda_newstyle's Introduction

Gouda newstyle script.

This is a static html generator from markdown. chmod 755 gouda.pl In folder with .md files, call like this : ./gouda.pl

Dependencies:

  • Pandoc

  • Markdown

  • Perl (install with perlbrew the version you want)

  • used perlmodules

      Modern::Perl;
      IPC::System::Simple;
      File::Slurp;
      List::Compare;
    

To install those Perl modules:

either use a tool like cpanm, or use your OS’s package management tools. For Example, on a Debian-based distribution, you can apt-get install those prereqs (they are libmodern-perl-perl libfile-slurp-unicode-perl liblist-compare-perl libipc-system-simple-perl)

You’ll also need Pandoc. Instructions for installing Pandoc are on its website. For Debian-based GNU/Linux distributions, it’s: sudo apt-get install pandoc

To install Gouda itself, just save the gouda.pl file to somewhere in your $PATH (such as ~/bin or /usr/local/bin) and make sure it’s executable (chmod +x gouda.pl), or run from folder.

  • Usage: make 3 or more .md files in a folder

  • Every file must start with a first line like so: % First line header

  • Also make index.md file, first 3 lines:

% Home
% author_name
% 2015-07-14

All other important things the gouda.pl script will ask for, if you need it.

It generates style.css, toc.conf (table of content) and all html files with toc.

UPDATED

  • Added mobile navigation menu with toc support.
  • replaced the pandoc <!DOCTYPE> declaration for html5 with perl oneliners in script gouda.pl

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.