Skip to content

Commit 50ce5fd

Browse files
authored
Merge pull request #130 from lohanidamodar/feat-getting-started-section
feat-getting-started-section
2 parents 1658549 + 7f92bc8 commit 50ce5fd

File tree

14 files changed

+79
-0
lines changed

14 files changed

+79
-0
lines changed

src/SDK/SDK.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class SDK
5454
'shareVia' => '',
5555
'shareTags' => '',
5656
'warning' => '',
57+
'gettingStarted' => '',
5758
'readme' => '',
5859
'changelog' => '',
5960
'examples' => '',
@@ -186,6 +187,8 @@ public function __construct(Language $language, Spec $spec)
186187
*/
187188
public function setDefaultHeaders($headers) {
188189
$this->defaultHeaders = $headers;
190+
191+
return $this;
189192
}
190193

191194
/**
@@ -386,6 +389,17 @@ public function setWarning($message)
386389
return $this;
387390
}
388391

392+
/**
393+
* @param $message string
394+
* @return $this
395+
*/
396+
public function setGettingStarted($message)
397+
{
398+
$this->setParam('gettingStarted', $message);
399+
400+
return $this;
401+
}
402+
389403
/**
390404
* @param $text string
391405
* @return $this

templates/dart/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ You can install packages from the command line:
3131
pub get {{ language.params.packageName }}
3232
```
3333

34+
{% if sdk.gettingStarted %}
35+
36+
{{ sdk.gettingStarted|raw }}
37+
{% endif %}
38+
3439
## Contribution
3540

3641
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/deno/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
import * as sdk from "https://deno.land/x/{{ spec.title | caseDash }}/mod.ts";
2121
```
2222

23+
{% if sdk.gettingStarted %}
24+
25+
{{ sdk.gettingStarted|raw }}
26+
{% endif %}
27+
2328
## Contribution
2429

2530
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/dotnet/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ dotnet add package {{ spec.title | caseUcfirst }} --version {{ sdk.version }}
3333
```
3434

3535

36+
{% if sdk.gettingStarted %}
37+
38+
{{ sdk.gettingStarted|raw }}
39+
{% endif %}
40+
3641
## Contribution
3742

3843
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/flutter/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ You can install packages from the command line:
3131
pub get {{ language.params.packageName }}
3232
```
3333

34+
{% if sdk.gettingStarted %}
35+
36+
{{ sdk.gettingStarted|raw }}
37+
{% endif %}
38+
3439
## Contribution
3540

3641
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/go/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ To install using `go get`:
2121
go get github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}
2222
```
2323

24+
{% if sdk.gettingStarted %}
25+
26+
{{ sdk.gettingStarted|raw }}
27+
{% endif %}
28+
2429
## Contribution
2530

2631
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/java/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ You can install packages from the command line:
3434
mvn install {{ spec.title | caseDash }}
3535
```
3636

37+
{% if sdk.gettingStarted %}
38+
39+
{{ sdk.gettingStarted|raw }}
40+
{% endif %}
41+
3742
## Contribution
3843

3944
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/node/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ To install via [NPM](https://www.npmjs.com/):
2121
npm install {{ language.params.npmPackage }} --save
2222
```
2323

24+
{% if sdk.gettingStarted %}
25+
26+
{{ sdk.gettingStarted|raw }}
27+
{% endif %}
28+
2429
## Contribution
2530

2631
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/php/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ To install via [Composer](http://getcomposer.org/):
2121
composer require {{ language.params.composerVendor }}/{{ language.params.composerPackage }}
2222
```
2323

24+
{% if sdk.gettingStarted %}
25+
26+
{{ sdk.gettingStarted|raw }}
27+
{% endif %}
28+
2429
## Contribution
2530

2631
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

templates/python/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ To install via [PyPI](https://pypi.org/):
2121
pip install {{ language.params.pipPackage }}
2222
```
2323

24+
{% if sdk.gettingStarted %}
25+
26+
{{ sdk.gettingStarted|raw }}
27+
{% endif %}
28+
2429
## Contribution
2530

2631
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

0 commit comments

Comments
 (0)