Code Monkey home page Code Monkey logo

web-gen's Introduction

web-gen

A Simple and efficient Static website generator written in python.

Screenshot

Use case

I have found other static website generating tools like Jekyll or Pelican to be too complex and cumbersome to use. So I have developed this tool as a simple to use and modify static website generator.

Features

  • A simple markdown to html converter.

Current supported markdown conversions:

  • Headings
  • Emphasized text(bold, italics, strikethrough)
  • Links

Usage

Demos are included.

  1. Open web_gen.py and set the variables listed in the configuration section.

Note: You could use any html file as template. The script replaces {{content}} with the markdown content.
The script also sets the first H1 Heading as the title. For that to function, be sure to set the html title as {{title}}.
Using {{url}} in your markdown files replaces it with the url defined in the configuration section.

  1. Run the script with python3 web_gen.py.
  2. The generated html files can be found in the designated folder.

web-gen's People

Contributors

leakbang 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.