From 4f0ee8ecb2aeb43c711a2e191ed5b8df71f5316f Mon Sep 17 00:00:00 2001 From: Lorenzo Montanari Date: Sat, 13 Nov 2021 10:57:49 +0100 Subject: [PATCH 01/10] Fixed some formatting issues --- .../configuration/app-configuration-overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/configuration/app-configuration-overview.md b/daprdocs/content/en/developing-applications/building-blocks/configuration/app-configuration-overview.md index a368c615b..5fd34c9bb 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/configuration/app-configuration-overview.md +++ b/daprdocs/content/en/developing-applications/building-blocks/configuration/app-configuration-overview.md @@ -8,9 +8,9 @@ description: "Use Dapr to get and watch application configuration" Consuming application configuration is a common task when writing applications and frequently configuration stores are used to manage this configuration data. A configuration item is often dynamic in nature and is tightly coupled to the needs of the application that consumes it. For example, common uses for application configuration include names of secrets that need to be retrieved, different identifiers, partition or consumer IDs, names of databased to connect to etc. These configuration items are typically stored as key-value items in a database. -Dapr provides a [State Management API]({{}})) that is based on key-value stores. However, application configuration can be changed by either developers or operators at runtime and the developer needs to be notified of these changes in order to take the required action and load the new configuration. Also the configuration data may want to be read only. Dapr's Configuration API allows developers to consume configuration items that are returned as key/value pair and subscribe to changes whenever a configuration item changes. +Dapr provides a [State Management API]({{}}) that is based on key-value stores. However, application configuration can be changed by either developers or operators at runtime and the developer needs to be notified of these changes in order to take the required action and load the new configuration. Also the configuration data may want to be read only. Dapr's Configuration API allows developers to consume configuration items that are returned as key/value pair and subscribe to changes whenever a configuration item changes. -*This API is currently in `Alpha state` and only available on gRPC. An HTTP1.1 supported version with this URL `/v1.0/configuration` will be available before the API becomes stable. * +*This API is currently in `Alpha state` and only available on gRPC. An HTTP1.1 supported version with this URL `/v1.0/configuration` will be available before the API becomes stable.* ## References From 72460823820495c56bf77262eea4efa2c51e86a3 Mon Sep 17 00:00:00 2001 From: Charlie Stanley Date: Wed, 17 Nov 2021 13:42:20 -0800 Subject: [PATCH 02/10] Update pubsub-raw.md Publisher example invalid dapr/python-sdk#299 --- .../building-blocks/pubsub/pubsub-raw.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md index 859ac8470..7a66aabdb 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md @@ -51,7 +51,7 @@ with DaprClient() as d: topic='TOPIC_A', data=json.dumps(req_data), metadata=( - ('rawPayload', 'true') + ('rawPayload', 'true'), ) ) # Print the request From 2a84d6844fb8eaefd728c4c2240dd2c133a73982 Mon Sep 17 00:00:00 2001 From: Charlie Stanley Date: Wed, 17 Nov 2021 14:07:59 -0800 Subject: [PATCH 03/10] Update pubsub-raw.md --- .../building-blocks/pubsub/pubsub-raw.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md index 7a66aabdb..20eaae56b 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md @@ -161,7 +161,7 @@ spec: route: /dsstatus pubsubname: pubsub metadata: - rawPayload: "true" + rawpayload: "true" scopes: - app1 - app2 From da08b1d0319ad2cbe6cca8ef43ca50ccf0b51948 Mon Sep 17 00:00:00 2001 From: Charlie Stanley Date: Wed, 17 Nov 2021 14:08:53 -0800 Subject: [PATCH 04/10] Update pubsub-raw.md --- .../building-blocks/pubsub/pubsub-raw.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md index 20eaae56b..7a66aabdb 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md @@ -161,7 +161,7 @@ spec: route: /dsstatus pubsubname: pubsub metadata: - rawpayload: "true" + rawPayload: "true" scopes: - app1 - app2 From 7afbc5dc06db3ef07738c52bfa9619d0b03ad763 Mon Sep 17 00:00:00 2001 From: Charlie Stanley Date: Wed, 17 Nov 2021 14:09:47 -0800 Subject: [PATCH 05/10] Update pubsub-raw.md --- .../building-blocks/pubsub/pubsub-raw.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md index 7a66aabdb..7a7ac3bf2 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md @@ -51,7 +51,7 @@ with DaprClient() as d: topic='TOPIC_A', data=json.dumps(req_data), metadata=( - ('rawPayload', 'true'), + ('rawpayload', 'true'), ) ) # Print the request From 05b67a43114850667ee09c92a26143b8de0f09e2 Mon Sep 17 00:00:00 2001 From: Charlie Stanley Date: Wed, 17 Nov 2021 19:28:43 -0800 Subject: [PATCH 06/10] Update pubsub-raw.md --- .../building-blocks/pubsub/pubsub-raw.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md index 7a7ac3bf2..c0a1a8d66 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md @@ -50,9 +50,7 @@ with DaprClient() as d: pubsub_name='pubsub', topic='TOPIC_A', data=json.dumps(req_data), - metadata=( - ('rawpayload', 'true'), - ) + publish_metadata={'rawpayload': 'true'} ) # Print the request print(req_data, flush=True) From e3aca4c5146dc21c443efe3af71381866bd63955 Mon Sep 17 00:00:00 2001 From: Charlie Stanley Date: Wed, 17 Nov 2021 19:29:46 -0800 Subject: [PATCH 07/10] Update pubsub-raw.md --- .../building-blocks/pubsub/pubsub-raw.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md index c0a1a8d66..ed73fe900 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md +++ b/daprdocs/content/en/developing-applications/building-blocks/pubsub/pubsub-raw.md @@ -50,7 +50,7 @@ with DaprClient() as d: pubsub_name='pubsub', topic='TOPIC_A', data=json.dumps(req_data), - publish_metadata={'rawpayload': 'true'} + publish_metadata={'rawPayload': 'true'} ) # Print the request print(req_data, flush=True) From 78edebf656dae3ac56bce3affdf6a8fc01f50413 Mon Sep 17 00:00:00 2001 From: Ricardo Niepel Date: Thu, 18 Nov 2021 17:56:35 +0100 Subject: [PATCH 08/10] Fixing link "Using namespaces with pub/sub" --- daprdocs/content/en/operations/components/component-scopes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/operations/components/component-scopes.md b/daprdocs/content/en/operations/components/component-scopes.md index 29834b032..e2de36179 100644 --- a/daprdocs/content/en/operations/components/component-scopes.md +++ b/daprdocs/content/en/operations/components/component-scopes.md @@ -91,7 +91,7 @@ curl -i -d '{ "message": "hello" }' \ ``` ## Using namespaces with pub/sub -Read [Pub/Sub and namespaces]({{< ref "component-scopes.md" >}}) for more information on scoping components. +Read [Configure Pub/Sub components with multiple namespaces]({{< ref "pubsub-namespaces.md" >}}) for more information on using namespaces with pub/sub. ## Application access to components with scopes @@ -127,4 +127,4 @@ scopes: - [Configure Pub/Sub components with multiple namespaces]({{< ref "pubsub-namespaces.md" >}}) - [Use secret scoping]({{< ref "secrets-scopes.md" >}}) -- [Limit the secrets that can be read from secret stores]({{< ref "secret-scope.md" >}}) \ No newline at end of file +- [Limit the secrets that can be read from secret stores]({{< ref "secret-scope.md" >}}) From 408a853d78ba7114afdf9d5d56c617fe8357e937 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Thu, 18 Nov 2021 11:03:27 -0800 Subject: [PATCH 09/10] Fix mobile rendering of sidebar tree --- daprdocs/assets/scss/_sidebar-tree.scss | 26 +++++++++--- daprdocs/layouts/partials/sidebar-tree.html | 47 --------------------- daprdocs/themes/docsy | 2 +- 3 files changed, 21 insertions(+), 54 deletions(-) delete mode 100644 daprdocs/layouts/partials/sidebar-tree.html diff --git a/daprdocs/assets/scss/_sidebar-tree.scss b/daprdocs/assets/scss/_sidebar-tree.scss index 025114590..cd8e4f69d 100644 --- a/daprdocs/assets/scss/_sidebar-tree.scss +++ b/daprdocs/assets/scss/_sidebar-tree.scss @@ -30,8 +30,8 @@ } @include media-breakpoint-up(md) { - & > ul { - padding-left: .5rem; + & .ul-1 ul { + padding-left: 1.5em; } } @@ -85,7 +85,22 @@ & > .td-sidebar-nav__section { padding-top: .5rem; - padding-left: 0rem; + padding-left: 1.5rem; + } + + li i { // Layout of icons + padding-right: 0.5em; + &:before{ + display: inline-block; + text-align: center; + min-width: 1em; + } + } + + .td-sidebar-link.tree-root{ + font-weight: $font-weight-bold; + color: $td-sidebar-tree-root-color; + margin-bottom: 1rem; } } @@ -93,8 +108,7 @@ @include media-breakpoint-up(md) { padding-top: 4rem; background-color: $td-sidebar-bg-color; - padding-right: .5rem; - padding-left: .5rem; + padding-right: 1rem; border-right: 1px solid $td-sidebar-border-color; } @@ -144,4 +158,4 @@ #content-desktop {display: none;} #content-mobile {display: block;} } -} \ No newline at end of file +} diff --git a/daprdocs/layouts/partials/sidebar-tree.html b/daprdocs/layouts/partials/sidebar-tree.html deleted file mode 100644 index 6f155591c..000000000 --- a/daprdocs/layouts/partials/sidebar-tree.html +++ /dev/null @@ -1,47 +0,0 @@ -{{/* We cache this partial for bigger sites and set the active class client side. */}} -{{ $shouldDelayActive := ge (len .Site.Pages) 2000 }} -
- {{ if not .Site.Params.ui.sidebar_search_disable }} - - {{ end }} - -
-{{ define "section-tree-nav-section" }} -{{ $s := .section }} -{{ $p := .page }} -{{ $shouldDelayActive := .delayActive }} -{{ $active := eq $p.CurrentSection $s }} -{{ $show := or (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsDescendant $s) }} -{{ $sid := $s.RelPermalink | anchorize }} -
    -
  • - {{ $s.LinkTitle }} -
  • -
      -
    • - {{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }} - {{ $pages := $pages | first 50 }} - {{ range $pages }} - {{ if and (.IsPage) (not .Params.nomenu) }} - {{ $mid := printf "m-%s" (.RelPermalink | anchorize) }} - {{ $active := eq . $p }} - {{ .LinkTitle }} - {{ else if not .Params.toc_hide }} - {{ template "section-tree-nav-section" (dict "page" $p "section" .) }} - {{ end }} - {{ end }} -
    • -
    -
-{{ end }} \ No newline at end of file diff --git a/daprdocs/themes/docsy b/daprdocs/themes/docsy index c36be07b2..43361e98f 160000 --- a/daprdocs/themes/docsy +++ b/daprdocs/themes/docsy @@ -1 +1 @@ -Subproject commit c36be07b2dcb9aa5aa01bad6ed0f8e111dd0452c +Subproject commit 43361e98f128082158c479ecb94008f29dc8f4e0 From c9767a3f68726c5c43c286a36139db14fc8a1833 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Thu, 18 Nov 2021 11:04:34 -0800 Subject: [PATCH 10/10] Update footer margins --- daprdocs/layouts/partials/footer.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daprdocs/layouts/partials/footer.html b/daprdocs/layouts/partials/footer.html index ea35b9dd9..e159a171d 100644 --- a/daprdocs/layouts/partials/footer.html +++ b/daprdocs/layouts/partials/footer.html @@ -1,15 +1,15 @@ {{ $links := .Site.Params.links }}