Add CI/CD status badge to README.md
This commit is contained in:
parent
28d9cc89ee
commit
2582bf7e2f
@ -1,7 +1,11 @@
|
|||||||
# mdml-cgi
|
# mdml-cgi
|
||||||
|
|
||||||
`mdml-cgi` is a C++ application designed to be used as a Common Gateway Interface (CGI) script by web servers. It facilitates the generation of HTML content by combining a template and a Markdown file. The project utilizes the [cmark](https://github.com/commonmark/cmark) library for Markdown parsing. The license for the cmark library can be found in the root directory.
|
`mdml-cgi` is a C++ application designed to be used as a Common Gateway Interface (CGI) script by web servers. It facilitates the generation of HTML content by combining a template and a Markdown file. The project utilizes the [cmark](https://github.com/commonmark/cmark) library for Markdown parsing. The license for the cmark library can be found in the root directory.
|
||||||
|
|
||||||
|
### CI/CD Build Status
|
||||||
|
| Arch Linux | FreeBSD 14.0 | macOS | Windows|
|
||||||
|
-------------|--------------|-------|--------|
|
||||||
|
|![Build Status](https://buildbot.beniquez.me/badges/mdml-cgi-linux-builder.svg) |![Build Status](https://buildbot.beniquez.me/badges/mdml-cgi-macos-builder.svg) | ![Build Status](https://buildbot.beniquez.me/badges/mdml-cgi-freebsd-builder.svg) | TBD |
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **Markdown to HTML:** Convert Markdown content to HTML using the powerful cmark library.
|
- **Markdown to HTML:** Convert Markdown content to HTML using the powerful cmark library.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* CGIhandler.hpp
|
/* CGIhandler.hpp
|
||||||
* Copyright © 2023 Saul D. Beniquez
|
* Copyright © 2023-2024 Saul D. Beniquez
|
||||||
* License: Mozilla Public License v. 2.0
|
* License: Mozilla Public License v. 2.0
|
||||||
*
|
*
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public License,
|
* This Source Code Form is subject to the terms of the Mozilla Public License,
|
||||||
@ -51,4 +51,4 @@ class CgiApplication
|
|||||||
|
|
||||||
}
|
}
|
||||||
// clang-format off
|
// clang-format off
|
||||||
// vim: set foldmethod=marker foldmarker=@{,@} textwidth=81 ts=8 sts=0 sw=8 noexpandtab ft=cpp.doxygen :
|
// vim: set foldmethod=syntax foldminlines=10 textwidth=80 ts=8 sts=0 sw=8 noexpandtab ft=cpp.doxygen :
|
||||||
|
48
include/CgiClientApp.hpp
Normal file
48
include/CgiClientApp.hpp
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/* CGIhandler.hpp
|
||||||
|
* Copyright © 2023-2024 Saul D. Beniquez
|
||||||
|
* License: Mozilla Public License v. 2.0
|
||||||
|
*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public License,
|
||||||
|
* v.2.0. If a copy of the MPL was not distributed with this file, You can
|
||||||
|
* obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Application.hpp"
|
||||||
|
#include "IRequestHandler.hpp"
|
||||||
|
|
||||||
|
#include "types.hpp"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
namespace mdml {
|
||||||
|
|
||||||
|
using IOCore::Application;
|
||||||
|
|
||||||
|
class IRouteHandler;
|
||||||
|
|
||||||
|
class CgiClientApp
|
||||||
|
: public Application
|
||||||
|
, public IRequestHandler {
|
||||||
|
|
||||||
|
public:
|
||||||
|
CgiClientApp(int argc, c::const_string argv[], c::const_string env[]);
|
||||||
|
~CgiClientApp() override;
|
||||||
|
|
||||||
|
// Disabled copy and assignment operators @{
|
||||||
|
CgiClientApp(const CgiClientApp&) = delete;
|
||||||
|
CgiClientApp(CgiClientApp&&) = delete;
|
||||||
|
auto operator=(const CgiClientApp&) -> CgiClientApp& = delete;
|
||||||
|
auto operator=(CgiClientApp&&) -> CgiClientApp& = delete;
|
||||||
|
// @}
|
||||||
|
|
||||||
|
auto run() -> int override;
|
||||||
|
auto processRequest() -> Result<std::string> override;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
// clang-format off
|
||||||
|
// vim: set foldmethod=syntax foldminlines=10 textwidth=80 ts=8 sts=0 sw=8 noexpandtab ft=cpp.doxygen :
|
Loading…
Reference in New Issue
Block a user