Skip to content

Commit f1bca4f

Browse files
committed
Update markdown files to be compatible with the latest Hugo
Signed-off-by: Marc Duiker <[email protected]>
1 parent 663d800 commit f1bca4f

File tree

6 files changed

+46
-46
lines changed

6 files changed

+46
-46
lines changed

daprdocs/content/en/php-sdk-docs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ Congratulations, you've created your first Dapr service! I'm excited to see what
113113
## More Information
114114

115115
- [Packagist](https://packagist.org/packages/dapr/php-sdk)
116-
- [Dapr SDK serialization]({{< ref sdk-serialization.md >}})
116+
- [Dapr SDK serialization]({{% ref sdk-serialization.md %}})

daprdocs/content/en/php-sdk-docs/php-actors/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ no_list: true
88
---
99

1010
If you're new to the actor pattern, the best place to learn about the actor pattern is in
11-
the [Actor Overview.]({{< ref actors-overview.md >}})
11+
the [Actor Overview.]({{% ref actors-overview.md %}})
1212

1313
In the PHP SDK, there are two sides to an actor, the Client, and the Actor (aka, the Runtime). As a client of an actor,
1414
you'll interact with a remote actor via the `ActorProxy` class. This class generates a proxy class on-the-fly using one
@@ -109,9 +109,9 @@ class CountState extends \Dapr\Actors\ActorState {
109109

110110
Dapr expects to know what actors a service may host at startup. You need to add it to the configuration:
111111

112-
{{< tabs "Production" "Development" >}}
112+
{{< tabpane text=true >}}
113113

114-
{{% codetab %}}
114+
{{% tab header="Production" %}}
115115

116116
If you want to take advantage of pre-compiled dependency injection, you need to use a factory:
117117

@@ -137,8 +137,8 @@ $app = \Dapr\App::create(
137137
$app->start();
138138
```
139139

140-
{{% /codetab %}}
141-
{{% codetab %}}
140+
{{% /tab %}}
141+
{{% tab header="Development" %}}
142142

143143
```php
144144
<?php
@@ -160,5 +160,5 @@ $app = \Dapr\App::create(configure: fn(\DI\ContainerBuilder $builder) => $builde
160160
$app->start();
161161
```
162162

163-
{{% /codetab %}}
164-
{{< /tabs >}}
163+
{{% /tab %}}
164+
{{< /tabpane >}}

daprdocs/content/en/php-sdk-docs/php-actors/php-actor-reference.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ weigh during development and in production.
2222

2323
It can be set with `dapr.actors.proxy.generation` configuration key.
2424

25-
{{< tabs "GENERATED" "GENERATED_CACHED" "ONLY_EXISTING" "DYNAMIC" >}}
26-
{{% codetab %}}
25+
{{< tabpane text=true >}}
26+
{{% tab header="GENERATED" %}}
2727

2828
This is the default mode. In this mode, a class is generated and `eval`'d on every request. It's mostly for development
2929
and shouldn't be used in production.
3030

31-
{{% /codetab %}}
32-
{{% codetab %}}
31+
{{% /tab %}}
32+
{{% tab header="GENERATED_CACHED" %}}
3333

3434
This is the same as `ProxyModes::GENERATED` except the class is stored in a tmp file so it doesn't need to be
3535
regenerated on every request. It doesn't know when to update the cached class, so using it in development is discouraged
3636
but is offered for when manually generating the files isn't possible.
3737

38-
{{% /codetab %}}
39-
{{% codetab %}}
38+
{{% /tab %}}
39+
{{% tab header="ONLY_EXISTING" %}}
4040

4141
In this mode, an exception is thrown if the proxy class doesn't exist. This is useful for when you don't want to
4242
generate code in production. You'll have to make sure the class is generated and pre-/autoloaded.
@@ -104,15 +104,15 @@ return [
104104
];
105105
```
106106

107-
{{% /codetab %}}
108-
{{% codetab %}}
107+
{{% /tab %}}
108+
{{% tab header="DYNAMIC" %}}
109109

110110
In this mode, the proxy satisfies the interface contract, however, it does not actually implement the interface itself
111111
(meaning `instanceof` will be `false`). This mode takes advantage of a few quirks in PHP to work and exists for cases
112112
where code cannot be `eval`'d or generated.
113113

114-
{{% /codetab %}}
115-
{{< /tabs >}}
114+
{{% /tab %}}
115+
{{< /tabpane >}}
116116

117117
### Requests
118118

daprdocs/content/en/php-sdk-docs/php-app/php-unit-testing.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ With actors, there are two things we're interested in while the actor is under t
1717
1. The returned result based on an initial state
1818
2. The resulting state based on the initial state
1919

20-
{{< tabs "integration test with TestClient" "unit test" >}}
20+
{{< tabpane text=true >}}
2121

22-
{{% codetab %}}
22+
{{% tab header="integration test with TestClient" %}}
2323

2424
Here's an example test a very simple actor that updates its state and returns a specific value:
2525

@@ -112,8 +112,8 @@ class TheTest extends \PHPUnit\Framework\TestCase
112112
}
113113
```
114114

115-
{{% /codetab %}}
116-
{{% codetab %}}
115+
{{% /tab %}}
116+
{{% tab header="unit test" %}}
117117

118118
```php
119119
<?php
@@ -162,18 +162,18 @@ class TheTest extends \PHPUnit\Framework\TestCase
162162
}
163163
```
164164

165-
{{% /codetab %}}
165+
{{% /tab %}}
166166

167-
{{< /tabs >}}
167+
{{< /tabpane >}}
168168

169169
## Testing Transactions
170170

171171
When building on transactions, you'll likely want to test how a failed transaction is handled. In order to do that, you
172172
need to inject failures and ensure the transaction matches what you expect.
173173

174-
{{< tabs "integration test with TestClient" "unit test" >}}
174+
{{< tabpane text=true >}}
175175

176-
{{% codetab %}}
176+
{{% tab header="integration test with TestClient" %}}
177177

178178
```php
179179
<?php
@@ -214,7 +214,7 @@ class TheTest extends \PHPUnit\Framework\TestCase {
214214
public function testTransactionFailure() {
215215
$client = $this->getClient();
216216

217-
// create a response from {{< ref state_api >}}
217+
// create a response from {{% ref state_api %}}
218218
$client->register_post('/state/statestore/bulk', code: 200, response_data: [
219219
[
220220
'key' => 'value',
@@ -247,8 +247,8 @@ class TheTest extends \PHPUnit\Framework\TestCase {
247247
}
248248
```
249249

250-
{{% /codetab %}}
251-
{{% codetab %}}
250+
{{% /tab %}}
251+
{{% tab header="unit test" %}}
252252

253253
```php
254254
<?php
@@ -280,6 +280,6 @@ class TheTest extends \PHPUnit\Framework\TestCase {
280280
}
281281
```
282282

283-
{{% /codetab %}}
283+
{{% /tab %}}
284284

285-
{{< /tabs >}}
285+
{{< /tabpane >}}

daprdocs/content/en/php-sdk-docs/php-pubsub/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ $app->post('/publish', function(\Dapr\Client\DaprClient $daprClient) {
1717
});
1818
```
1919

20-
For more information about publish/subscribe, check out [the howto]({{< ref howto-publish-subscribe.md >}}).
20+
For more information about publish/subscribe, check out [the howto]({{% ref howto-publish-subscribe.md %}}).
2121

2222
## Data content type
2323

2424
The PHP SDK allows setting the data content type either when constructing a custom cloud event, or when publishing raw
2525
data.
2626

27-
{{< tabs CloudEvent "Raw" >}}
27+
{{< tabpane text=true >}}
2828

29-
{{% codetab %}}
29+
{{% tab header="CloudEvent" %}}
3030

3131
```php
3232
<?php
@@ -35,8 +35,8 @@ $event->data = $xml;
3535
$event->data_content_type = 'application/xml';
3636
```
3737

38-
{{% /codetab %}}
39-
{{% codetab %}}
38+
{{% /tab %}}
39+
{{% tab header="Raw" %}}
4040

4141
```php
4242
<?php
@@ -52,9 +52,9 @@ Only `application/octet-steam` is supported for binary data.
5252

5353
{{% /alert %}}
5454

55-
{{% /codetab %}}
55+
{{% /tab %}}
5656

57-
{{< /tabs >}}
57+
{{< /tabpane >}}
5858

5959
## Receiving cloud events
6060

daprdocs/content/en/php-sdk-docs/php-state/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ no_list: true
88
---
99

1010
Dapr offers a great modular approach to using state in your application. The best way to learn the basics is to visit
11-
[the howto]({{< ref howto-get-save-state.md >}}).
11+
[the howto]({{% ref howto-get-save-state.md %}}).
1212

1313
## Metadata
1414

@@ -26,7 +26,7 @@ $app->run(
2626
$app->run(fn(\Dapr\Client\DaprClient $daprClient) => $daprClient->saveState(storeName: 'statestore', key: 'key', value: 'value', metadata: ['port' => '112']))
2727
```
2828

29-
This is an example of how you might pass the port metadata to [Cassandra]({{< ref setup-cassandra.md >}}).
29+
This is an example of how you might pass the port metadata to [Cassandra]({{% ref setup-cassandra.md %}}).
3030

3131
Every state operation allows passing metadata.
3232

@@ -58,9 +58,9 @@ the load on the state store at the expense of performance. The default is `10`.
5858
Hardcoded key names are useful, but why not make state objects more reusable? When committing a transaction or saving an
5959
object to state, you can pass a prefix that is applied to every key in the object.
6060

61-
{{< tabs "Transaction prefix" "StateManager prefix" >}}
61+
{{< tabpane text=true >}}
6262

63-
{{% codetab %}}
63+
{{% tab header="Transaction prefix" %}}
6464

6565
```php
6666
<?php
@@ -76,8 +76,8 @@ $app->run(function (TransactionObject $object ) {
7676
});
7777
```
7878

79-
{{% /codetab %}}
80-
{{% codetab %}}
79+
{{% /tab %}}
80+
{{% tab header="StateManager prefix" %}}
8181

8282
```php
8383
<?php
@@ -94,6 +94,6 @@ $app->run(function(\Dapr\State\StateManager $stateManager) {
9494
});
9595
```
9696

97-
{{% /codetab %}}
97+
{{% /tab %}}
9898

99-
{{< /tabs >}}
99+
{{< /tabpane >}}

0 commit comments

Comments
 (0)