DEV Community

Cover image for OSD600- Siteit is not a citation tool
TD
TD

Posted on • Edited on

OSD600- Siteit is not a citation tool

Siteit might sound like a tool that generates citations for you, but it is not.

What is Siteit?

Siteit is an open-source command-line tool that converts text files into HTML files.

Steps to Install

  • Access Siteit on GitHub by clicking here.

  • Use git to clone the repo to local machine.

  • Navigate to the cloned directory using command-line and execute the following commands:

npm install

npm link

Enter fullscreen mode Exit fullscreen mode
  • Now test out the tool:
siteit -h

Enter fullscreen mode Exit fullscreen mode

Using siteit with -h or --help option displays the usage manual. If an error message, is displayed instead try running siteit as follows:

node ./index.js -h
Enter fullscreen mode Exit fullscreen mode

Running either siteit -h or node ./index.js should yield the following result:

SiteIt - USAGE MANUAL

    usage:   
             siteit [flag]
             siteit [flag] [source_file]
             siteit [flag] [source_directory]

    example: 
             siteit -v
             siteit -i source_file.txt
             siteit -i ./source_directory

Common SiteIt Flag Options
----------------------------------------------------------------------

    --version | -v     Outputs tool name and version information

    --help    | -h     Outputs Siteit command usage manual 

    --input   | -i    Accepts a source file or a directory containing 
                       files as input, and outputs an HTML file for 
                       each file supplied

----------------------------------------------------------------------
                        *** END OF MANUAL ***                   

Enter fullscreen mode Exit fullscreen mode
  • The --input option is the one that accepts a file or a directory containing .txt files as a parameter and converts them into static webpages. The generated files can be viewed in the application's dist directory. If the source is a directory, an index.html file will be available with links to all the newly generated HTML pages.

Click here to see the resulting static website.

More information on tool usage is available on GitHub.

PS

This is the first release of Siteit.
Stay tuned, as more features will be added in subsequent releases.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay