Skip to content

kiennguyenchi/potato-generator

Repository files navigation

Potato Generator

This is a C++ Static Site Generator (SSG) tool.

Author

Chi Kien Nguyen

Features

  • With a folder input, the tool creates a main HTML page containing links to each site.
  • With a text file input, the tool creates a single HTML page.
  • The tool generates h1 tag for title of each site.
  • The tool uses stylesheet for better format on websites.
  • The tool also supports to convert Markdown file.

System Requirements

  • C++17 Compiler (Visual Studio Code)
  • MINGW (Optional)

How To Run

Compiling

g++ pgprogram.cpp HTMLFile.h HTMLFile.cpp MainPage.h MainPage.cpp -o pgprogram --std=c++17

Without specified arguments

On CMD, enter command pgprogram fname. (Where fname is the name of a file/folder)

With specified arguments:

Option 1 Option 2 Functionality
--input -i Specify input argument with file/folder name
--help -h See the instructions how to run program
--version -v See the updated version of the program

Examples

Run the program with --help, -h, --version and -v

Run the program with --input, -i, and no arguments

Install package

  • Install Conan and CMake
  • Install package by Conan command
conan install potato-generator --remote=gitlab
  • Add remote
conan remote add gitlab https://gitlab.com/api/v4/projects/31616511/packages/conan

Generated Websites

Websites

License

MIT License

About

C++ Static Site Generator - Potato Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages