GithubHelp home page GithubHelp logo

drew5494 / octo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luigizaccagnini/octo

0.0 0.0 0.0 139 KB

A tool that allows you to generate static sites based off of text data.

License: GNU General Public License v3.0

JavaScript 100.00%

octo's Introduction

Octo

A tool that allows you to generate static sites based off of text data.

Tool Setup

Global

This builds Octo so you can access it anywhere on your computer using the octo command. If you don't want to install Octo globally, you can follow the non-global setup.

  • Clone the repository
  • cd into the folder
  • run npm i to install all dependencies
  • run npm install -g .

Non-Global

  • Clone the repository
  • cd into the folder
  • run npm i to install all dependencies
  • cd into the bin
  • run node app

Features

Input

The -i or --input flag means the input path. This will look for all texts files with the given path. You can give a .txt file as input or a directory. This is a required field for the program to work. Any files/directories with spaces should be entered with quotes octo -i "Sherlock Holmes Selected Stories/test.txt". Only text files work with this program.

Examples

File Input

This will take the content from the text file and output a HTML file.

    octo -i test.txt
Directory Input

This will go though a directory named test and look for all nested .txt files.

    octo -i test

Output

The output allows the user to specify the path where the files/directories can be exported. This is not a required field and will default to './dist' if no option is given.

Examples

The -o or --output flag means the output path. This will create a folder called htmlFiles outside of the current directory.

    octo -i test.txt -o ../hmtlFiles

Recursive File Searching

If a input is a directory, Octo will recursively go through all the child directories and convert all the text files into HTML.

octo's People

Contributors

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