From aceae36fef65ba4b08c0da5c608840fb0ecf5c4a Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 18 Jan 2020 23:53:27 +0100 Subject: [PATCH] 2020-01-18 --- docs/connection_8hpp_source.html | 2 +- docs/example01_instance_info_8cpp-example.html | 6 +++++- docs/example02_streaming_8cpp-example.html | 6 +++++- docs/example03_post_status_8cpp-example.html | 6 +++++- docs/example04_post_with_attachment_8cpp-example.html | 6 +++++- ...example05_update_notification_settings_8cpp-example.html | 6 +++++- docs/example06_update_name_8cpp-example.html | 6 +++++- docs/example07_delete_status_8cpp-example.html | 6 +++++- docs/example08_obtain_token_8cpp-example.html | 6 +++++- 9 files changed, 41 insertions(+), 9 deletions(-) diff --git a/docs/connection_8hpp_source.html b/docs/connection_8hpp_source.html index fd2a9b5..9b3d617 100644 --- a/docs/connection_8hpp_source.html +++ b/docs/connection_8hpp_source.html @@ -148,7 +148,7 @@ $(function() {
168 
178  [[nodiscard]]
179  answer_type patch(const endpoint_variant &endpoint,
-
180  const parametermap &parameters);
+
180  const parametermap &parameters);
181 
189  [[nodiscard]]
190  inline answer_type patch(const endpoint_variant &endpoint)
diff --git a/docs/example01_instance_info_8cpp-example.html b/docs/example01_instance_info_8cpp-example.html index bc1678f..6070806 100644 --- a/docs/example01_instance_info_8cpp-example.html +++ b/docs/example01_instance_info_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Print information about an instance (/api/v1/instance).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <iostream>
#include <string>
diff --git a/docs/example02_streaming_8cpp-example.html b/docs/example02_streaming_8cpp-example.html index a96356f..c27390a 100644 --- a/docs/example02_streaming_8cpp-example.html +++ b/docs/example02_streaming_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Print new public events (/api/v1/streaming/public).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <chrono>
#include <iostream>
diff --git a/docs/example03_post_status_8cpp-example.html b/docs/example03_post_status_8cpp-example.html index 206f1b0..1951650 100644 --- a/docs/example03_post_status_8cpp-example.html +++ b/docs/example03_post_status_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Post a status (/api/v1/status).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <iostream>
#include <string>
diff --git a/docs/example04_post_with_attachment_8cpp-example.html b/docs/example04_post_with_attachment_8cpp-example.html index e50d239..f6884b8 100644 --- a/docs/example04_post_with_attachment_8cpp-example.html +++ b/docs/example04_post_with_attachment_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Post a status (/api/v1/status) with an attachment (/api/v1/media).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <iostream>
#include <string>
diff --git a/docs/example05_update_notification_settings_8cpp-example.html b/docs/example05_update_notification_settings_8cpp-example.html index 25aed19..d97afe6 100644 --- a/docs/example05_update_notification_settings_8cpp-example.html +++ b/docs/example05_update_notification_settings_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Update notification settings (/api/pleroma/notification_settings).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <iostream>
#include <string>
diff --git a/docs/example06_update_name_8cpp-example.html b/docs/example06_update_name_8cpp-example.html index 8df9bd1..f95884c 100644 --- a/docs/example06_update_name_8cpp-example.html +++ b/docs/example06_update_name_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Update account display name settings (/api/v1/accounts/update_credentials).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <iostream>
#include <string>
diff --git a/docs/example07_delete_status_8cpp-example.html b/docs/example07_delete_status_8cpp-example.html index a6c6913..1a5aedc 100644 --- a/docs/example07_delete_status_8cpp-example.html +++ b/docs/example07_delete_status_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Post a status (/api/v1/status), then delete it (/api/v1/statuses/:id).
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <chrono>
#include <iostream>
diff --git a/docs/example08_obtain_token_8cpp-example.html b/docs/example08_obtain_token_8cpp-example.html index 795bc57..ea294d5 100644 --- a/docs/example08_obtain_token_8cpp-example.html +++ b/docs/example08_obtain_token_8cpp-example.html @@ -83,7 +83,11 @@ $(function() {
// Obtain an access token and verify that it works.
-
#include "mastodonpp.hpp"
+
#if __has_include("mastodonpp.hpp")
+
# include "mastodonpp.hpp" // We're building mastodonpp.
+
#else
+
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
+
#endif
#include <cstdlib>
#include <iostream>