Code Monkey home page Code Monkey logo

nan1-ssg's People

Contributors

alexsam29 avatar anshul137 avatar lostbutton avatar neilan99 avatar rokaicker avatar

Watchers

 avatar

nan1-ssg's Issues

node_modules shouldn't be committed in git

I believe it is best practice to add the node_modules to a .gitignore file (so that it doesn't get committed in git).

I think the main 2 reasons for this are:

  • possible conflicts in different operating systems (windows, mac, linux)
  • potentially committing dev dependencies along with project dependencies

Remove current markdown support

The plan is to swap out the current implementation of markdown support to a fully supported version from an open source library.

Add lang attribute

Add a lang attribute to the root HTML element, which indicates the language for the HTML to use.

Clean up the file structure

All the .js files should be in a separate src folder. Testing files should also be in their own folder. File names are preferred as lower case (generate-html.js vs generateHTML.js).

Duplicate variables

var htmlFile = file.substring(0, file.length-4) + '.html';

In generateHTML.js Lines 156 and 157 are essentially the same variable, I think you should remove one for brevity.

The same goes for Line 163 and Line 164.

adding markdown support

I'd like to work on this to add support for converting .md to .html files, and also add the ability to parse bolded text.

Add support for `--config` with a JSON formatted Config file

Instead of having users specify all of the SSG options as command line arguments, they should be able to pass in a JSON formatted configuration file containing all options.

Ex:

nan1-ssg --config ./ssg-config.json

Example config file:

{
  "input": "./site",
  "output": "./build",
  "stylesheet": "https://cdn.jsdelivr.net/npm/water.css@2/out/water.css",
  "lang": "fr"
}

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.