From a915d45f7308c2e4747d803cbe6265eccf02840a Mon Sep 17 00:00:00 2001 From: Cameron Dershem Date: Tue, 2 Jul 2019 15:14:21 -0400 Subject: [PATCH] Removes global 1.0 warning and only ads it to specific pages. --- content/docs/databases.md | 8 ++++++++ content/docs/sentry.md | 5 +++++ layouts/partials/header.html | 8 -------- layouts/shortcodes/alert.html | 3 +++ 4 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 layouts/shortcodes/alert.html diff --git a/content/docs/databases.md b/content/docs/databases.md index a453a65..889950e 100644 --- a/content/docs/databases.md +++ b/content/docs/databases.md @@ -6,6 +6,14 @@ weight: 1010 # Diesel +{{% alert %}} +NOTE: The `actix-web` 1.0 version of this section is still +[being updated](https://github.com/cldershem/actix-website/tree/update1.0-db). Checkout +this [example](https://github.com/actix/examples/tree/master/async_db) until then. +{{% /alert %}} + +[being updated](https://github.com/cldershem/actix-website/tree/update1.0-db). + At the moment, Diesel 1.0 does not support asynchronous operations, but it's possible to use the `actix` synchronous actor system as a database interface api. diff --git a/content/docs/sentry.md b/content/docs/sentry.md index 813ddca..7e3870b 100644 --- a/content/docs/sentry.md +++ b/content/docs/sentry.md @@ -6,6 +6,11 @@ weight: 1020 # Sentry Crash Reporting +{{% alert %}} +NOTE: Sentry currently does not work with `actix-web` 1.0. Please checkout this +[issue](https://github.com/getsentry/sentry-rust/issues/143) for more details. +{{% /alert %}} + [Sentry][sentrysite] is a crash reporting system that supports the failure crate which is the base of the actix error reporting. With a middleware it's possible to automatically report server errors to Sentry. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f3139ac..f7e6e87 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -54,12 +54,4 @@ - diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html new file mode 100644 index 0000000..080287c --- /dev/null +++ b/layouts/shortcodes/alert.html @@ -0,0 +1,3 @@ +