diff --git a/.drone.yml b/.drone.yml index a649d5057..fa19175ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: commands: - export DEBIAN_FRONTEND=noninteractive - - export TRAVIS_BRANCH=$DRONE_SOURCE_BRANCH + - export TRAVIS_BRANCH=$DRONE_BRANCH - export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER - apt-get -y update - apt-get -y install libboost-all-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git diff --git a/LICENSE b/LICENSE index 046b8fc1b..9b0cb0f68 100644 --- a/LICENSE +++ b/LICENSE @@ -27,4 +27,4 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -The Crow logo used is under Copyright (c) 2021, Farook Al-Sammarraie (The-EDev), All rights reserved. +The Crow logo and other graphic material (excluding third party logos) used are under Copyright (c) 2021, Farook Al-Sammarraie (The-EDev), All rights reserved. diff --git a/README.md b/README.md index 9147b14eb..28b1f1e26 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ +
diff --git a/docs/assets/crowlogo_main_color.svg b/docs/assets/crowlogo_main_color.svg new file mode 100644 index 000000000..5929a8b91 --- /dev/null +++ b/docs/assets/crowlogo_main_color.svg @@ -0,0 +1,90 @@ + + diff --git a/docs/assets/fast_icon.svg b/docs/assets/fast_icon.svg new file mode 100644 index 000000000..3c87ba259 --- /dev/null +++ b/docs/assets/fast_icon.svg @@ -0,0 +1,105 @@ + + + + diff --git a/docs/assets/header_icon.svg b/docs/assets/header_icon.svg new file mode 100644 index 000000000..f82df10fd --- /dev/null +++ b/docs/assets/header_icon.svg @@ -0,0 +1,67 @@ + + + + diff --git a/docs/assets/og_img.png b/docs/assets/og_img.png new file mode 100644 index 000000000..36574ddad Binary files /dev/null and b/docs/assets/og_img.png differ diff --git a/docs/assets/pkg_logos/arch.png b/docs/assets/pkg_logos/arch.png new file mode 100644 index 000000000..8fd851d44 Binary files /dev/null and b/docs/assets/pkg_logos/arch.png differ diff --git a/docs/assets/pkg_logos/conan.png b/docs/assets/pkg_logos/conan.png new file mode 100644 index 000000000..b0ec063e1 Binary files /dev/null and b/docs/assets/pkg_logos/conan.png differ diff --git a/docs/assets/pkg_logos/github.png b/docs/assets/pkg_logos/github.png new file mode 100644 index 000000000..402191e09 Binary files /dev/null and b/docs/assets/pkg_logos/github.png differ diff --git a/docs/assets/pkg_logos/ubuntu.png b/docs/assets/pkg_logos/ubuntu.png new file mode 100644 index 000000000..5ef25b7c0 Binary files /dev/null and b/docs/assets/pkg_logos/ubuntu.png differ diff --git a/docs/assets/pkg_logos/vcpkg.png b/docs/assets/pkg_logos/vcpkg.png new file mode 100644 index 000000000..899ab89ff Binary files /dev/null and b/docs/assets/pkg_logos/vcpkg.png differ diff --git a/docs/assets/typesafe_icon.svg b/docs/assets/typesafe_icon.svg new file mode 100644 index 000000000..582213166 --- /dev/null +++ b/docs/assets/typesafe_icon.svg @@ -0,0 +1,67 @@ + + + + diff --git a/docs/assets/websocket_icon.svg b/docs/assets/websocket_icon.svg new file mode 100644 index 000000000..83d54206a --- /dev/null +++ b/docs/assets/websocket_icon.svg @@ -0,0 +1,48 @@ + + + + diff --git a/docs/guides/compression.md b/docs/guides/compression.md index 89b8e80de..d614a3a9b 100644 --- a/docs/guides/compression.md +++ b/docs/guides/compression.md @@ -1,3 +1,4 @@ +**Introduced in: `v0.3`**Blazingly Fast
+Header Only
+Typesafe handlers
+Websocket Support
+#define CROW_MAIN
+#include "crow.h"
+
+int main()
+{
+ crow::SimpleApp app;
+
+ CROW_ROUTE(app, "/")([](){
+ return "Hello world";
+ });
+
+ app.port(18080).run();
+}
+
CROW_ROUTE(app, "/json")
+([]{
+ crow::json::wvalue x;
+ x["message"] = "Hello, World!";
+ return x;
+});
+
CROW_ROUTE(app,"/hello/<int>")
+([](int count){
+ return crow::response(std::to_string(count));
+});
+