Giter Site home page Giter Site logo

static-site-generator's Introduction

Hi there, I'm Trang Nguyen (Tracy)

I'm a Computer Programming Student!

Connect with me:

WhatsApp Telegram

Don't hesitate to get in touch!


🥅 Achievement

President’s Honour List – Fall 2020


🛠️ Skills

Languages

Java typescript javascript C++

Back-End Development

Spring Boot

Front-End Development

Angular html css bootstrap Figma

Database

mysql Oracle

Version Control

Git GitHub

Deployed on

AWS Google Cloud Heroku Netlify

Testing

JUnit Jupiter Mockito

Platform

Ubuntu Windows


snake gif


📝 Blogs

Geek Culture

Chatrooms with history conversations, user’s online status, notification of unread messages using Spring Boot, Angular, MySQL

Optimization... optimization everywhere

Push Notification for Order Placed Using Observable Design Pattern with Spring Boot, WebSocket, Angular

Profile's view


static-site-generator's People

Contributors

andrewnt219 avatar trangntt-016 avatar

Stargazers

 avatar

Watchers

 avatar

static-site-generator's Issues

Add support for config.json

Describe the feature

Hi @trangntt-016, I want to add support for reading in a config.json as an alternative to CLI arguments (e.g. --input, --lang,...).

ssg --config ./ssg-config.json
{
  "input": "./docs",
  "output": "./web",
  "future-feature": "should be ignored for now"
}

Describe the solution

For supporting --config, I'll add another @CommandLine.Option. If the --config flag is used, ignore other flags.

I'm going to init the value of JssgApplication with pairs from the JSON file. That way, all the logic for parsing the file can be the same. To parse the JSON config, I'll have to add org.json or GSON as a dependency.

Create a page for docs (md files)

This feature displays a list of documentation for .md files

  • Any -i for .md will be placed in ./docs 
  • index.html will render a new link Pages (which includes the generated stories from text files and Docs (which includes the generated documents from .md files)

Approach:

  • Modify the current index.html to have another link to the docs
  • Create a new path ./docs to store .md files

Text processing

The file is reading line by line and then transfer to the paragraphs by parsing it into StringBuilder first. Suggestion: for the later development, could it be more precise?

Add an optional -l, --lang, and/or \l flag, which indicates the language to use

Add an optional -l, --lang, and/or \l flag, which indicates the language to use when generating the lang attribute on the root element. For example, --lang fr would mean that the HTML documents are in French, and would include , while -l pt-BR would mean the text is using Brazilian Portuguese: . By default, use en-CA for Canadian English.

Full markdown support

This feature helps to compose the interactive documentations with ease

  • .md will be converted to .html with full features (< h1 >, < ul > , < li >,< strong >, < em > , etc.)
  • Syntax Highlighting for code blocks

Approaches:

  • Install Java library (txtMakr) to convert .md to .html
  • Write function to read the code block (some codes) and convert them to some codes
  • Refactor current codes

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.