Giter Club home page Giter Club logo

the-great-site-generator's People

Contributors

drew5494 avatar joshuali7536 avatar luigizaccagnini avatar

Watchers

 avatar

the-great-site-generator's Issues

Non-zero exit code

Make sure that the program exits with appropriate error codes in all cases. If there are no errors, exit with 0. Otherwise, exit with a 1.

Tool Parsing Error

What is Not Working?

The tool turns every text line into a paragraph element instead of turning text with spaces between them as paragraph elements.

How Should it Work?

     THIS IS A TEST THIS IS A TEST
     This is a test
     
     THIS IS A TEST THIS IS A TEST 

     Should be parsed to this:
     
     <p>THIS IS A TEST THIS IS A TEST This is a test</p>
     <p>THIS IS A TEST THIS IS A TEST</p>    

Don't work with paths as strings

It's dangerous to work with filenames and paths as though they are strings, and make assumptions about how they will be constructed. Especially as you move between operating systems and filesystems, the standards change.

For example, in https://github.com/drew5494/the-great-site-generator/blob/main/thegreatsitegenerator/main.cpp#L59 you assume the path separator. A better approach is to use something like https://en.cppreference.com/w/cpp/filesystem/path to extract path components and/or put them together.

Input Flag Does not work with Directories

Why Do We Need This?

It would make working with large amount of files a lot easier.

What does this enhancement include?

  • If the input is a folder, the tool should scan the entire folder looking for text files and output them in the dist folder.

Improve README with more details

The README is mostly aimed at developers who want to build the code. It should also include details for users you want to run the code. You should discuss how the program works (e.g., flags, args to pass, and their meaning), show examples, and give a sense of the kind of input/output to expect.

Markdown Feature

Hi Drew5494!

Feature

I am interested in your project and I would like to add support for Markdown (.md files) in it.

Example

If users inputs a text file, nothing will change. If a Markdown file is used as input, only the header one syntax feature will be converted into HTML.

If you would like this feature please assign me this issue and reply to let me know. Thanks!

Extract and include title/h1

A missing feature is to extract and use the title of the document, as defined by a line of text with 2 empty lines after it at the start. This should be used to populate the title and an h1 element.

Cross-platform build

Working with C++ is a great way to target multiple operating systems and platforms. Doing so requires you to have a build system that works across various systems. Currently there is no build system, and you give a manual command to compile the code.

A better solution is to use something like CMake or the like. This can be integrated with Visual Studio and other IDEs later on.

README Does not Contain Tool Features or Examples

The README does not contain information on the tools features or examples. If there was more information on what can be done with tool and some examples of how to use these features, it would make the tool easier to use.

Support for Languages

Add support for multiple languages.

How Should it Work?

User should be able to specify language for html.

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.