Giter VIP home page Giter VIP logo

mkhtml's Introduction

commision_unix

mkhtml

mkhtml is an html document generator that works with gpt
YouTube: https://youtu.be/ULvErLMKrTo

Programming Language and Tools

Programming Language: C, Bash
Compiler: GNU GCC
Build Tool: CMake

Dependencies

Libcurl
CMake (MIN 3.15)

Installation

Step 1: Download the Source codes

https://github.com/MertGunduz/mkhtml

Step 2: Change permissions of INSTALL.sh

chmod 755 INSTALL.sh

running this command will change the permission of the INSTALL.sh

Step 3: Run INSTALL.sh

./INSTALL.sh

running this bash file will build the application and create the folders.

Note: it can ask for sudo permission

Step 4: Test Application

try running

mkhtml -h

if there are some output related to mkhtml then it means it is successfully builded

How to use

Generating HTML Files

mkhtml -G [DATA]
mkhtml --generate [DATA]

sends a request to openai api and generates the html file with the selected style

Setting API Key

mkhtml -k [DATA]
mkhtml --key [DATA]

sets the openai api key

Setting CSS Style

mkhtml -c [CSS-DATA]
mkhtml --css [CSS-DATA]

sets the css style

Outputting Website URL

mkhtml -w
mkhtml --website

outputs the website url

Outputting Github URL

mkhtml -g
mkhtml --github

outputs the github url

Outputting Configurations

mkhtml -s
mkhtml --settings

outputs the configurations

Outputting Version

mkhtml -v
mkhtml --version

outputs the mkhtml version

Outputting Help Menu

mkhtml -h
mkhtml --help

outputs the help menu

mkhtml's People

Contributors

furokop avatar mertgunduz avatar nt-kleamm avatar rremii avatar slothshino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mkhtml's Issues

mkhtml.c main method will be switched to function pointer array

Hello contributor,

mkhtml.c file is a bit complicated and hard to read, we have to make it easier to read.

In order to have that clean code, we have to redo the main function as a function pointer array.

File Location: src/app/mkhtml.c

Thanks,
Mehmet Mert

need cartoonish stylesheet

Hello contributor,

we are using stylesheets (cssgenerators folder) as a boilerplate generation tool for html outputs.

And we need a cartoonish looking stylesheet for this tags, you can use this code snippet as a blank stylesheet:

<style>
    html {

    }

    body {

    }

    h1 {

    }

    h2 {

    }

    h3 {

    }

    h4 {

    }

    h5 {

    }

    h6 {

    }

    p {

    }

    ol, ul {

    }

    li {

    }

    table {

    }

    th {

    }

    td {

    }
</style>

need elegant looking stylesheet

Hello contributor,

we are using stylesheets (cssgenerators folder) as a boilerplate generation tool for html outputs.

And we need a elegant looking stylesheet for this tags, you can use this code snippet as a blank stylesheet:

<style>
    html {

    }

    body {

    }

    h1 {

    }

    h2 {

    }

    h3 {

    }

    h4 {

    }

    h5 {

    }

    h6 {

    }

    p {

    }

    ol, ul {

    }

    li {

    }

    table {

    }

    th {

    }

    td {

    }
</style>

cmake improvements needed

Hello contributor,

cmake files are bit weak and we have to improve them by adding gcc options and some check systems.

Thanks,
Mehmet Mert

new css style needed

Hello contributor,

we are using stylesheets (cssgenerators folder) as a boilerplate generation tool for html outputs.

And we need a random stylesheet for this tags, you can use this code snippet as a blank stylesheet:

<style>
    html {

    }

    body {

    }

    h1 {

    }

    h2 {

    }

    h3 {

    }

    h4 {

    }

    h5 {

    }

    h6 {

    }

    p {

    }

    ol, ul {

    }

    li {

    }

    table {

    }

    th {

    }

    td {

    }
</style>

Improvements on elegant_mkstyle.txt

Hello contributor,

We are generating html documents and inserting our boilerplate stylesheets to our output files.

We need some improvements on elegant_mkstyle.txt

Folder: cssgenerators/elegant_mkstyle.txt

open graph generation system for mkhtml

Hello contributor,

We want to implement the open graph generation system for mkhtml in order to have SEO-optimized web-pages.

Just like the css generation system of mkhtml, we are planning to implement a open-graph generation system.

Thanks,
Mehmet Mert

cmake installation needed (current method is bash script)

Hello contributor,

We are handling the installation process by using bash script which is a bit complicated for basic users. And it is impossible to create a snap package with a bash script.

We are willing to make the installation process by using cmake, to make this we need to handle the dependencies (libcurl) as well with conan c/cpp package manager.

Thanks,
Mehmet Mert

need hacker scene looking stylesheet

Hello contributor,

we are using stylesheets (cssgenerators folder) as a boilerplate generation tool for html outputs.

And we need a elegant looking stylesheet for this tags, you can use this code snippet as a blank stylesheet:

<style>
    html {

    }

    body {

    }

    h1 {

    }

    h2 {

    }

    h3 {

    }

    h4 {

    }

    h5 {

    }

    h6 {

    }

    p {

    }

    ol, ul {

    }

    li {

    }

    table {

    }

    th {

    }

    td {

    }
</style>

css writing to a file function should be added (addcss.c)

A file writing function needed:

  1. The function should read the file until tag
<!DOCTYPE html>
<html>
<head>
  1. After reading, the function should write that part to a file
  2. After writing the function should check the style parameter and the wanted css style.
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: linen;
}

h1 {
  color: maroon;
  margin-left: 40px;
}
</style>
  1. After writing css, the file should write the remained part of the html file to the HTML file.
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: linen;
}

h1 {
  color: maroon;
  margin-left: 40px;
}
</style>
	<title>C Programming Language</title>
	<link rel="stylesheet" href="style.css">
</head>
<body>
	<h1>C Programming Language</h1>
	<p>C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, and therefore it has found lasting use in applications that had formerly been coded in assembly language. Such applications include operating systems and various application software for computers, from supercomputers to embedded systems.</p>
	<h2>History</h2>
	<p>C was originally developed by Dennis Ritchie between 1969 and 1973 at AT&T Bell Labs. It was used to re-implement the Unix operating system, and has become one of the most widely used programming languages of all time. C has been standardized by the American National Standards Institute (ANSI) since 1989 and by the International Organization for Standardization (ISO).</p>
	<h2>Features</h2>
	<p>C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C is a structured programming language, which means that it is built upon a collection of well-defined programming constructs. It also supports the use of pointers, which allows for efficient manipulation of memory. C is a compiled language, which means that it is translated from source code into machine code before it can be executed.</p>
	<h2>Advantages</h2>
	<ul>
		<li>C is a powerful language that can be used to create efficient and reliable software.</li>
		<li>C is a portable language, which means that programs written in C can be compiled and run on any platform.</li>
		<li>C is a relatively simple language, which makes it easy to learn and use.</li>
		<li>C is an efficient language, which means that programs written in C can be executed quickly.</li>
		<li>C is a flexible language, which means that it can be used to create a wide variety of software.</li>
	</ul>
	<h2>Disadvantages</h2>
	<ul>
		<li>C is a low-level language, which means that it is not as easy to use as higher-level languages such as Java or Python.</li>
		<li>C is a statically typed language, which means that errors can be difficult to debug.</li>
		<li>C does not have built-in support for object-oriented programming, which means that programs written in C can be difficult to maintain.</li>
	</ul>
	<h2>Conclusion</h2>
	<p>C is a powerful and widely used programming language. It is a low-level language, which means that it is not as easy to use as higher-level languages such as Java or Python. However, it is a flexible language, which means that it can be used to create a wide variety of software. C is also an efficient language, which means that programs written in C can be executed quickly.</p>
</body>
</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.