From dda1c77d6ea178bf3fd98b93df7454859e7117dc Mon Sep 17 00:00:00 2001 From: Wen Yu Ge Date: Tue, 31 May 2022 14:52:54 -0400 Subject: [PATCH 1/2] install dependency section of functions guide is missing headings --- app/views/docs/functions.phtml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/docs/functions.phtml b/app/views/docs/functions.phtml index dbcd55b33..5622f5277 100644 --- a/app/views/docs/functions.phtml +++ b/app/views/docs/functions.phtml @@ -62,7 +62,7 @@ $runtimes = $this->getParam('runtimes', []); }); }; - Installing Dependencies +

Installing Dependencies

Include a package.json along with your function, and Appwrite handles the rest! The best practice is to make sure node_modules folder is not part of your tarball.

@@ -94,7 +94,7 @@ return function ($req, $res) { ]); }; - Installing Dependencies +

Installing Dependencies

Include a composer.json file in your function, make sure to require autoload.php from vendor folder, and Appwrite will handle the rest!. The best practice is to make sure vendor directory is not part of your tarball.

@@ -124,7 +124,7 @@ def main(req, res): 'trigger': trigger, }) - Installing Dependencies +

Installing Dependencies

Include a requirements.txt file in your function, Appwrite will handle the rest!

@@ -154,7 +154,7 @@ def main(req, res): }) end - Installing Dependencies +

Installing Dependencies

Include a Gemfile in your function, Appwrite handles the rest!

@@ -184,7 +184,7 @@ end }); }; - Installing Dependencies +

Installing Dependencies

No special steps are required for Deno, Appwrite handles everything!

@@ -217,7 +217,7 @@ Future <void> start(final req, final res) async { }); } - Installing Dependencies +

Installing Dependencies

Include a pubspec.yaml file with your function, Appwrite handles the rest!

@@ -247,7 +247,7 @@ Future <void> start(final req, final res) async { }

With Swift, your entrypoint can be empty since Appwrite automatically infers it from the location of your main() function. Just ensure that your cloud function has a single declaration of main() across your source files.

- Installing Dependencies +

Installing Dependencies

Include a Package.swift file with your function, Appwrite handles the rest!

From d0ed98efdf4bc4a4c5907d5a11e9748687b8d637 Mon Sep 17 00:00:00 2001 From: Wen Yu Ge Date: Wed, 1 Jun 2022 12:55:28 -0400 Subject: [PATCH 2/2] turn h3 into bold for subheadings --- app/views/docs/functions.phtml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/docs/functions.phtml b/app/views/docs/functions.phtml index 5622f5277..372217317 100644 --- a/app/views/docs/functions.phtml +++ b/app/views/docs/functions.phtml @@ -62,7 +62,7 @@ $runtimes = $this->getParam('runtimes', []); }); }; -

Installing Dependencies

+

Installing Dependencies

Include a package.json along with your function, and Appwrite handles the rest! The best practice is to make sure node_modules folder is not part of your tarball.

@@ -94,7 +94,7 @@ return function ($req, $res) { ]); }; -

Installing Dependencies

+

Installing Dependencies

Include a composer.json file in your function, make sure to require autoload.php from vendor folder, and Appwrite will handle the rest!. The best practice is to make sure vendor directory is not part of your tarball.

@@ -124,7 +124,7 @@ def main(req, res): 'trigger': trigger, }) -

Installing Dependencies

+

Installing Dependencies

Include a requirements.txt file in your function, Appwrite will handle the rest!

@@ -154,7 +154,7 @@ def main(req, res): }) end -

Installing Dependencies

+

Installing Dependencies

Include a Gemfile in your function, Appwrite handles the rest!

@@ -184,7 +184,7 @@ end }); }; -

Installing Dependencies

+

Installing Dependencies

No special steps are required for Deno, Appwrite handles everything!

@@ -217,7 +217,7 @@ Future <void> start(final req, final res) async { }); } -

Installing Dependencies

+

Installing Dependencies

Include a pubspec.yaml file with your function, Appwrite handles the rest!

@@ -247,7 +247,7 @@ Future <void> start(final req, final res) async { }

With Swift, your entrypoint can be empty since Appwrite automatically infers it from the location of your main() function. Just ensure that your cloud function has a single declaration of main() across your source files.

-

Installing Dependencies

+

Installing Dependencies

Include a Package.swift file with your function, Appwrite handles the rest!