From c4bc4eafc1bb534fae2b033c0199dc0f074b72dd Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 27 Apr 2020 02:46:05 +0200 Subject: [PATCH] add pandoc to makefile to generate html from markdown --- .gitignore | 2 + Makefile | 19 +- README.html | 1120 ---------------------------------------- README.md => readme.md | 17 +- 4 files changed, 34 insertions(+), 1124 deletions(-) delete mode 100644 README.html rename README.md => readme.md (54%) diff --git a/.gitignore b/.gitignore index 96d95e3..33a177b 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ build/ # visual code .vscode/ + +readme.html diff --git a/Makefile b/Makefile index d66fef8..0bac9f6 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.PHONY: cryptomain.ex crypt.ex decrypt.ex + BIN_PATH=./bin LIB_PATH=./lib OBJ_PATH=./obj @@ -6,8 +8,9 @@ EXEC=$(BIN_PATH)/cryptomain.ex SRC=main.cpp JSON_CPP=$(OBJ_PATH)/jsoncpp.o +cryptomain.ex: $(EXEC) + # merge crypt and decrypt binary into cryptomain -cryptomain.ex: $(EXEC): $(SRC) $(JSON_CPP) @echo "compilation de aes" @g++ -Wall -Wextra -ggdb -o $(EXEC) $(SRC) $(JSON_CPP) -lcrypto --std=c++14 @@ -25,12 +28,13 @@ EXEC_CRYPT=$(BIN_PATH)/crypt.ex SRC_CRYPT=mainCrypt.cpp SRC_DECRYPT=mainDecrypt.cpp -crypt.ex: +crypt.ex: $(EXEC_CRYPT) +decrypt.ex: $(EXEC_DECRYPT) + $(EXEC_CRYPT): $(SRC_CRYPT) $(JSON_CPP) aes.hpp @echo "compilation de crypt.ex" @g++ -Wall -Wextra -ggdb -o $(EXEC_CRYPT) $(SRC_CRYPT) $(JSON_CPP) -lcrypto --std=c++14 -decrypt.ex: $(EXEC_DECRYPT): $(SRC_DECRYPT) $(JSON_CPP) aes.hpp @echo "compilation de decrypt.ex" @g++ -Wall -Wextra -ggdb -o $(EXEC_DECRYPT) $(SRC_DECRYPT) $(JSON_CPP) -lcrypto --std=c++14 @@ -55,3 +59,12 @@ cleanD: @rm -f data/*.enc @rm -f data/*.dec @rm -f data/*.key + +doc: + @pandoc -s -f markdown+emoji -t html \ + --shift-heading-level-by=2 \ + --wrap=preserve \ + --toc \ + --toc-depth=2 \ + --highlight-style=tango \ + -o readme.html readme.md diff --git a/README.html b/README.html deleted file mode 100644 index 548d68e..0000000 --- a/README.html +++ /dev/null @@ -1,1120 +0,0 @@ - - -README

this repository contains 3 mains :
-- crypto.ex use for test ( take a file, crypt and decrypt this file in one step )
- products a crypted and decrypted file.

-
\ No newline at end of file diff --git a/README.md b/readme.md similarity index 54% rename from README.md rename to readme.md index 5bb820e..a5b820b 100644 --- a/README.md +++ b/readme.md @@ -1,4 +1,17 @@ -this repository contains 3 mains : +--- +author: Antoine Roux +date: 2020-04-27T02:17:42+02:00 +title: "cryptomain.ex" +subtitle: "aes crypt / decrypt" +abstract: "allow to crypt and decrypt file with aes algorithm" +description: | + this repository contain aes c++ program + this program allow to crypt and decrypt file +lang: en-GB +--- + +# this repository contains 3 mains : + - crypto.ex use for test ( take a file, crypt and decrypt this file in one step ) products a crypted and decrypted file. @@ -9,3 +22,5 @@ this repository contains 3 mains : - decrypt.ex : allow to uncrypt a file from a crypted file and a json key file. ./decrypt.ex products the uncrypted file. + +:smiley: