Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync 1.6.x into main #1089

Merged
merged 220 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
50ed4c4
docs: update content, sentence structure, word choice, and code snipp…
choir241 Jun 18, 2024
581e850
docs: document all appwrite command-line commands and params
choir241 Jun 24, 2024
1f7002f
docs: add reminder for correct CLI version and link
choir241 Jun 24, 2024
f2fbc78
docs: add deploy collections with overview, init, pull, push and comm…
choir241 Jun 24, 2024
4eee250
docs: add overview collection paragraph, update word choice and sente…
choir241 Jun 25, 2024
5447c05
docs: deploy database using CLI 2.0 with overview, init, login, pull,…
choir241 Jun 25, 2024
62deb67
docs: add commands for authentication CLI 2.0
choir241 Jun 25, 2024
d9fa43e
docs: update commands for auth CLI 2.0
choir241 Jun 25, 2024
5af5e3b
docs: update comments with more detail
choir241 Jun 26, 2024
17d554f
docs: add create, login, get current account, and logout for CLI auth…
choir241 Jun 26, 2024
6f758e3
add functions page for CLI with push, pull and init, and remove authe…
choir241 Jun 26, 2024
71b185a
add teams page for CLI with push, pull and init, and remove authentic…
choir241 Jun 26, 2024
cdd8abf
remove commands outside of command table that are not push, pull or init
choir241 Jun 26, 2024
410486b
docs: add command table to buckets page
choir241 Jun 26, 2024
daabc8f
docs: update comment code snippets sentence structure and word choice…
choir241 Jun 27, 2024
2947304
update word choice and sentence structure for comment code snippets
choir241 Jun 27, 2024
f6c0e50
add topics CLI page and update commands table to use code syntax
choir241 Jun 27, 2024
f541230
docs: add project docs and update side bar navigation
choir241 Jun 27, 2024
f34a68d
docs: delete deployment page to remove redundancy from deployment doc…
choir241 Jun 28, 2024
5cf3f9f
docs: update non-interactive page with github actions
choir241 Jun 28, 2024
fb29220
docs: add table of CLI option commands to commands page
choir241 Jun 28, 2024
4c8d3ee
docs: add CLI links to collections, functions, topics, buckets, and t…
choir241 Jun 28, 2024
3079558
chore: delete appwrite.json file
choir241 Jun 28, 2024
12af27c
docs: add clarification on previous version of CLI compatability, rem…
choir241 Jun 28, 2024
f64620b
move appwrite.json after pull, move init project appwrite.json to ins…
choir241 Jun 28, 2024
69fb895
docs: udpate appwrite.json content and placement for buckets, teams a…
choir241 Jul 1, 2024
2059a99
remove CLI link from functions/deployment to reduce redundancy from f…
choir241 Jul 1, 2024
8bf2ab6
docs: expand on detail for CLI links from services
choir241 Jul 1, 2024
fb41640
docs: update href links
choir241 Jul 1, 2024
31a2048
docs: update overview word choice and sentence structure
choir241 Jul 1, 2024
cf28791
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 2, 2024
976ccb5
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 2, 2024
f210c84
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 2, 2024
3f4f70d
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 2, 2024
eefdc34
Merge pull request #1083 from appwrite/main
stnguyen90 Jul 2, 2024
7e6585b
docs: break api comment into multiline comment for clarity, fix code …
choir241 Jul 2, 2024
3977e2c
docs: add update syntax for php code snippets
choir241 Jul 2, 2024
a214bca
docs: update overview word choice and sentence structure
choir241 Jul 2, 2024
c723d78
docs: add local develop docs and contnet
choir241 Jul 2, 2024
91692f5
docs: remove 2.0 from CLI, reword introduction so the word here is no…
choir241 Jul 2, 2024
e9fe993
docs: update CLI code snippet syntax highlighting for consistency. Mo…
choir241 Jul 3, 2024
bc5f28a
docs: add init sections, remove projects cli docs, apply some changes…
choir241 Jul 3, 2024
be7b04a
docs: remove two spaces, update word choice for overwrite warning and…
choir241 Jul 3, 2024
1f3c302
docs: update overview for CLI docs to include disclaimer for install/…
choir241 Jul 3, 2024
307512d
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
13a8738
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
e1f19dc
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
80d3b45
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
8a7c8f8
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
7081b8a
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
a90d4a8
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Jul 5, 2024
73b7e83
docs: update code snippets for req.headers consistency, add section f…
choir241 Jul 5, 2024
4f1d8e5
docs: Update code snippet req.headers, update Using Appwrite in a fun…
choir241 Jul 5, 2024
9d8387e
Update src/routes/docs/products/auth/teams/+page.markdoc
choir241 Jul 5, 2024
cf666f5
Update src/routes/docs/products/functions/functions/+page.markdoc
choir241 Jul 5, 2024
9572abd
Update src/routes/docs/tooling/command-line/installation/+page.markdoc
choir241 Jul 5, 2024
3581a76
Update src/routes/docs/tooling/command-line/commands/+page.markdoc
choir241 Jul 5, 2024
ac55a0b
Update src/routes/docs/tooling/command-line/commands/+page.markdoc
choir241 Jul 5, 2024
6e1aea0
Update src/routes/docs/tooling/command-line/commands/+page.markdoc
choir241 Jul 5, 2024
4fb6543
Update src/routes/docs/tooling/command-line/commands/+page.markdoc
choir241 Jul 5, 2024
bb6cc0c
docs: move comma outside of code syntax appwrite.json, start working …
choir241 Jul 5, 2024
cf66cca
Update src/routes/docs/tooling/command-line/topics/+page.markdoc
choir241 Jul 5, 2024
5aed0b0
Update src/routes/docs/tooling/command-line/buckets/+page.markdoc
choir241 Jul 5, 2024
ca9ad30
Update src/routes/docs/tooling/command-line/buckets/+page.markdoc
choir241 Jul 5, 2024
1e8e5ef
Update src/routes/docs/tooling/command-line/buckets/+page.markdoc
choir241 Jul 5, 2024
772c661
Update src/routes/docs/tooling/command-line/topics/+page.markdoc
choir241 Jul 5, 2024
7302602
docs: update CLI sections in product/service docs to transition bette…
choir241 Jul 6, 2024
486d81c
docs: create partial for duplicate content in CLI docs, update cli co…
choir241 Jul 6, 2024
862b81c
docs: create partials for duplicate code, update word choices and sen…
choir241 Jul 6, 2024
92bb19d
docs: remove table for non-interactive table for paragraph, update wo…
choir241 Jul 6, 2024
31ce839
docs: update word choice and sentence structure, add more content for…
choir241 Jul 6, 2024
41c87de
Merge branch '1.6.x' into docs-dynamic-api-keys
choir241 Jul 8, 2024
2bd848f
docs: Add uninstall scoop commands
choir241 Jul 8, 2024
20957e2
Merge branch '1.6.x' into docs-CLI-2.0
choir241 Jul 8, 2024
7175db6
docs: add redirect url to install cli docs from cli version disclaime…
choir241 Jul 8, 2024
ae2d334
docs: update wording
choir241 Jul 8, 2024
0209c7b
update code snippets in products/functions/develop
choir241 Jul 12, 2024
bff6d5f
Merge branch 'docs-dynamic-api-keys' of https://github.com/appwrite/w…
choir241 Jul 12, 2024
91add45
update code snippets in products/functions/examples
choir241 Jul 12, 2024
87d3f08
update code snippet
choir241 Jul 12, 2024
3061b30
docs: update code snippet in docs/products/functions/develop
choir241 Jul 12, 2024
a3e9125
update python code snippets
choir241 Jul 13, 2024
1c1f7a1
docs: remove setEndpoint() from code snippet examples
choir241 Jul 15, 2024
b3f9468
docs: remove quotes wrapped around environment variables in code snip…
choir241 Jul 15, 2024
74bf167
docs: update api docs table description. Update word choice and sente…
choir241 Jul 15, 2024
699af3d
docs: remove reference notes for PR feedback
choir241 Jul 15, 2024
627e269
Merge branch 'docs-CLI-2.0' into docs-local-dev
choir241 Jul 16, 2024
e06895a
docs: add Go to function template. Add go runtime to /docs/advanced/p…
choir241 Jul 18, 2024
f2bceb8
docs: replace res.send with res.text, replace req.bodyRaw with req.bo…
choir241 Jul 19, 2024
bc43fcf
docs: Add code snippets for createExecution with scheduled functions.…
choir241 Jul 19, 2024
25bf97f
docs: start adding table for different response and request types
choir241 Jul 19, 2024
4cdb6c6
docs: update word choice and sentence structure
choir241 Jul 19, 2024
4003b25
docs: Remove remaining setEndpoint in products/functions/develop code…
choir241 Jul 20, 2024
eca5513
docs: Update word choice and sentence structure for dynamic API keys …
choir241 Jul 20, 2024
ff1e83e
docs: Add link to dynamic api keys docs section, and update content t…
choir241 Jul 20, 2024
5c1cdb3
Update src/routes/docs/products/functions/runtimes/+page.markdoc
choir241 Jul 20, 2024
30a3e45
Update src/routes/docs/products/functions/runtimes/+page.markdoc
choir241 Jul 20, 2024
8e8aec8
docs: add beta tags to Go sdk to properly reflect the current sdk. Re…
choir241 Jul 20, 2024
de7f44b
docs: Update response and request types tables
choir241 Jul 20, 2024
c00e0cc
docs: Update word choice and sentence structure for response types table
choir241 Jul 20, 2024
55a9cb3
docs: update word choice and sentence structure for a better user jou…
choir241 Jul 20, 2024
cd419f5
docs: update code snippets comment to match other comments in the res…
choir241 Jul 20, 2024
1ace832
docs: update indentation for code snippet example
choir241 Jul 20, 2024
4d848c4
docs: Remove unrelated scopes paragraph from Execute access section. …
choir241 Jul 22, 2024
b2f37c4
docs: Add go runtime to platform dropdown for sdk api code samples
choir241 Jul 22, 2024
508db21
docs: remove Go runtime instance from appwrite sdk docs
choir241 Jul 22, 2024
0f44e88
docs: add Go SDK wth links to github repos.Add go icon images for dar…
choir241 Jul 22, 2024
1492c0e
docs: start working on layout for Go quick start
choir241 Jul 23, 2024
3a83b49
docs: Change deploy to develop for file, folder, and article title na…
choir241 Jul 23, 2024
8c84e2e
docs: remove additional space
choir241 Jul 23, 2024
ae51ce1
docs: update order for platform dropdown
choir241 Jul 23, 2024
4e15e87
docs: update order for sdk list in table. Update order for code snipp…
choir241 Jul 23, 2024
60c8ffe
docs: undo order change for sdk code snippet examples
choir241 Jul 23, 2024
a2e10bc
docs: update pink version to reflect latest Appwrite pink release
choir241 Jul 23, 2024
e230bc8
docs: update comment word order for dynamic api keys using code snipp…
choir241 Jul 23, 2024
cebd859
docs: Change async from false to true for scheduled executions
choir241 Jul 24, 2024
857b6b4
Update src/routes/docs/products/functions/executions/+page.markdoc
choir241 Jul 24, 2024
d677f2a
docs: Update doc static image. Update capitalization for comments. Fi…
choir241 Jul 24, 2024
0e9e52c
Merge pull request #1136 from appwrite/docs-go-(goLang)
stnguyen90 Jul 25, 2024
0f7ba68
docs: remove duplicate sentence. Update content for function Scopes a…
choir241 Jul 25, 2024
63ea6c7
Update src/routes/docs/tooling/command-line/installation/+page.markdoc
choir241 Jul 25, 2024
1cc5cbe
Update src/routes/docs/products/functions/functions/+page.markdoc
choir241 Jul 25, 2024
0d4ec75
docs: Move collections, buckets, and topics using with CLI sections t…
choir241 Jul 25, 2024
6f0cd94
docs: Create partial for duplicate content for function CLI section. …
choir241 Jul 26, 2024
ae4bd7c
Merge branch '1.6.x' into docs-CLI-2.0
choir241 Jul 26, 2024
7c67773
update appwrite.json placeholder variables with <> and quotes
choir241 Jul 26, 2024
7f6071a
docs: update word choice and sentence structure for Scopes section
choir241 Jul 26, 2024
d813edd
Update src/routes/docs/products/functions/develop-locally/+page.markdoc
choir241 Jul 26, 2024
75f4cb7
Update src/routes/docs/products/functions/develop-locally/+page.markdoc
choir241 Jul 26, 2024
00ca154
Merge branch 'docs-CLI-2.0' into docs-local-dev
choir241 Jul 26, 2024
133c027
docs: move /functions/develop-locally under /functions/develop instea…
choir241 Jul 26, 2024
3578cdb
Merge branch '1.6.x' into docs-scheduled-execution-1.6
choir241 Jul 26, 2024
3721035
docs: move delayed executions section from functions/executions to fu…
choir241 Jul 26, 2024
9569e31
docs: Add react-native to list of enums table
choir241 Jul 26, 2024
81f4f5b
docs: remove new and beta tags from platform list
choir241 Jul 26, 2024
8c2a1c1
docs: remove new tags for better visual
choir241 Jul 26, 2024
6a1c293
docs: update word choice in develop locally
choir241 Jul 26, 2024
495c9b7
docs: update image screenshots. Update spacing.
choir241 Jul 26, 2024
6a0e880
Merge branch '1.6.x' into docs-go-dropdown
choir241 Jul 26, 2024
5e183f0
Merge pull request #1146 from appwrite/docs-go-dropdown
stnguyen90 Jul 26, 2024
1a55e20
chore: update appwrite.io/repo to 1.6.x branch
stnguyen90 Jul 26, 2024
7e06e9d
docs: update API references to include 1.6.x
stnguyen90 Jul 26, 2024
753cda8
docs: set cloud API references to 1.6.x
stnguyen90 Jul 26, 2024
e891621
docs: quick fix to lowercase given IDs
choir241 Aug 5, 2024
48cee9d
docs: quick fix to update links for /docs/tooling/command-line/instal…
choir241 Aug 5, 2024
36499cf
Merge branch '1.6.x' into docs-CLI-2.0
choir241 Aug 5, 2024
016d62e
docs: fix column for enum table in sdk docs article
choir241 Aug 5, 2024
6413e09
Merge branch '1.6.x' into docs-go-sdk
choir241 Aug 5, 2024
5171deb
Merge branch 'docs-CLI-2.0' into docs-local-dev
choir241 Aug 5, 2024
1460fcf
docs: Add hot reloading and how this benefits the user developing fun…
choir241 Aug 5, 2024
7464121
Update src/routes/docs/tooling/command-line/teams/+page.markdoc
choir241 Aug 5, 2024
23cbbff
docs: update Using appwrite in a function last sentence for correction.
choir241 Aug 5, 2024
6715538
Merge branch 'docs-CLI-2.0' into docs-local-dev
choir241 Aug 5, 2024
e6fdaae
Merge pull request #1147 from appwrite/docs-go-sdk
stnguyen90 Aug 5, 2024
bfb3bf0
docs: update wording and sentence structure for Using Appwrite in a f…
choir241 Aug 5, 2024
9a21976
docs: Change Command line interface (CLI) to Installation and update …
choir241 Aug 5, 2024
4ab8597
Merge branch 'docs-CLI-2.0' of https://github.com/appwrite/website in…
choir241 Aug 5, 2024
c6d3912
docs: quick update to change Getting started section to login, and up…
choir241 Aug 5, 2024
ef267e2
docs: update url link in partial
choir241 Aug 5, 2024
6888c8c
Update src/partials/cli-disclaimer.md
choir241 Aug 5, 2024
adedb31
Merge pull request #1079 from appwrite/docs-CLI-2.0
stnguyen90 Aug 5, 2024
f01d03b
docs: update word choice and sentence structure for better flow and c…
choir241 Aug 5, 2024
1bb9d3a
Merge branch 'docs-local-dev' of https://github.com/appwrite/website …
choir241 Aug 5, 2024
63cea92
Update src/routes/docs/products/functions/develop/+page.markdoc
choir241 Aug 5, 2024
4ce72e2
docs: move sentences from first paragraph in Using with dynamic API k…
choir241 Aug 5, 2024
be3179e
Update src/routes/docs/products/functions/executions/+page.markdoc
choir241 Aug 5, 2024
9bd031d
docs: Change order of lifecycle for execution in docs/products/functi…
choir241 Aug 5, 2024
50475df
Merge branch 'docs-scheduled-execution-1.6' of https://github.com/app…
choir241 Aug 5, 2024
c88cc93
docs: Update req.bodyText description to be more clear. Remove send d…
choir241 Aug 5, 2024
bfa5c5b
Merge pull request #1045 from appwrite/docs-dynamic-api-keys
stnguyen90 Aug 5, 2024
0aef22b
Merge branch '1.6.x' into docs-binary-1.6
stnguyen90 Aug 5, 2024
db30bb0
Merge pull request #1140 from appwrite/docs-binary-1.6
stnguyen90 Aug 5, 2024
5ce60da
docs: Replace remaining send() references with text(). Update Request…
choir241 Aug 6, 2024
67b8318
docs: Add Client SDK tab and code snippet examples with createExecuti…
choir241 Aug 6, 2024
e6f7813
docs: fix console log argument for client SDK examples. Add comment f…
choir241 Aug 6, 2024
d14bcf8
docs: Move para for intro and explain step-by-step setup. Add step 6 …
choir241 Aug 6, 2024
c6608ba
docs: start adding go appwrite sdk code snippet examples
choir241 Aug 6, 2024
420c964
Merge branch '1.6.x' into docs-go-quick-start
choir241 Aug 6, 2024
67f999d
docs: clean up code snippet formatting and update word choice and sen…
choir241 Aug 6, 2024
5d3a980
docs: re-add binary to Response types table. Fix small deno code snip…
choir241 Aug 7, 2024
518c7f9
Merge branch '1.6.x' into docs-binary-1.6
choir241 Aug 7, 2024
9215aa3
docs: update http endpoint. move react native snippet between Flutter…
choir241 Aug 7, 2024
a9a6fa0
docs: remove #server and extra space in lines 174-175
choir241 Aug 7, 2024
0c6250a
docs: update CLI commands to kebab case. Remove appwrite push functio…
choir241 Aug 7, 2024
4f070e1
docs: Add commands to create folder and go into folder for consistenc…
choir241 Aug 7, 2024
5cf92b7
docs: update CLI commands to kebab-case
choir241 Aug 7, 2024
fbef486
Merge pull request #1141 from appwrite/docs-scheduled-execution-1.6
stnguyen90 Aug 8, 2024
4c03215
Merge pull request #1175 from appwrite/docs-binary-1.6
stnguyen90 Aug 8, 2024
67db51e
Merge pull request #1189 from appwrite/docs-CLI-2.0
stnguyen90 Aug 8, 2024
178b755
Update src/routes/docs/products/functions/develop-locally/+page.markdoc
choir241 Aug 8, 2024
cbf1b68
docs: clarify and explain what adding impersonate flag does. Add ment…
choir241 Aug 8, 2024
2627900
Merge pull request #1159 from appwrite/chore-1.6.x-references
stnguyen90 Aug 8, 2024
ef2fd39
docs: Update indentation for consistency. Replace magic string with u…
choir241 Aug 8, 2024
63d980f
Merge branch '1.6.x' into docs-local-dev
choir241 Aug 8, 2024
f0cb05c
Update src/routes/docs/products/functions/develop-locally/+page.markdoc
choir241 Aug 8, 2024
9e5ce06
docs: add mock phone number section to auth/security with screenshots…
choir241 Aug 8, 2024
8a2db08
docs: add notes to local develop docs in function cli and function de…
choir241 Aug 9, 2024
daeb82a
docs: fix broken link in develop locally setup steps
choir241 Aug 9, 2024
b2bf556
docs: add note and link to mock phone number docs section in self-hos…
choir241 Aug 9, 2024
a6b825d
docs: Update quick start to match consistency with other quick starts
choir241 Aug 9, 2024
92968a1
add headers content to impersonate user section. Reword develop setne…
choir241 Aug 9, 2024
95425fe
Update src/routes/docs/quick-starts/go/+page.markdoc
choir241 Aug 9, 2024
90c1938
Update src/routes/docs/products/functions/develop-locally/+page.markdoc
choir241 Aug 9, 2024
25afb07
Merge branch 'main' into chore-sync-main-into-1.6.x
stnguyen90 Aug 9, 2024
4665d4d
docs: update screenshot images. Move mock phone sentence to the top o…
choir241 Aug 9, 2024
b19c002
docs: reword headers content for impersonate user section docs
choir241 Aug 9, 2024
ab68cfa
Merge pull request #1087 from appwrite/docs-local-dev
stnguyen90 Aug 9, 2024
1b6e511
Merge pull request #1203 from appwrite/chore-sync-main-into-1.6.x
stnguyen90 Aug 9, 2024
9e750b3
docs: remove mock phone screenshot images from files and docs. Update…
choir241 Aug 12, 2024
440d9f2
docs: remove fmt.Println errors and if statements and add underscore …
choir241 Aug 12, 2024
d995e54
Merge branch '1.6.x' into docs-mock-phone
choir241 Aug 12, 2024
d852eda
Merge pull request #1202 from appwrite/docs-mock-phone
stnguyen90 Aug 13, 2024
e7ebcc9
docs: clarify adding appwrite id dependency by adding additional cont…
choir241 Aug 13, 2024
8d7136a
chore: undo deletion of .env.example
choir241 Aug 13, 2024
a3fa888
docs: add additional context for clarity. update formatting to match …
choir241 Aug 13, 2024
ea3758f
Merge pull request #1178 from appwrite/docs-go-quick-start
stnguyen90 Aug 13, 2024
0079ccd
docs: move mock phone number section to bottom to reflect its positio…
choir241 Aug 16, 2024
e0b729c
Merge branch '1.6.x' into docs-mock-phone
choir241 Aug 16, 2024
8eac688
fix lockfile
thejessewinton Aug 19, 2024
259b5da
Merge pull request #1219 from appwrite/docs-mock-phone
choir241 Aug 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
},
"devDependencies": {
"@appwrite.io/console": "^0.6.2",
"@appwrite.io/pink": "~0.16.0",
"@appwrite.io/pink-icons": "~0.16.0",
"@appwrite.io/repo": "github:appwrite/appwrite#main",
"@internationalized/date": "^3.5.0",
"@appwrite.io/pink": "~0.26.0",
"@appwrite.io/pink-icons": "~0.26.0",
"@appwrite.io/repo": "github:appwrite/appwrite#1.6.x",
"@internationalized/date": "3.5.0",
"@melt-ui/pp": "^0.3.2",
"@melt-ui/svelte": "^0.74.4",
"@playwright/test": "^1.44.1",
Expand Down
244 changes: 190 additions & 54 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/lib/utils/code.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { LanguageFn } from 'highlight.js';
import hljs from 'highlight.js/lib/core';
import go from 'highlight.js/lib/languages/go';
import dart from 'highlight.js/lib/languages/dart';
import javascript from 'highlight.js/lib/languages/javascript';
import typescript from 'highlight.js/lib/languages/typescript';
Expand Down Expand Up @@ -56,6 +57,7 @@ const languages = {
text: plaintext,
graphql: graphql,
http: http,
go: go,
py: python,
rb: ruby,
cs: csharp,
Expand Down Expand Up @@ -86,6 +88,7 @@ const platformAliases: Record<string, keyof typeof languages> = {
[Platform.ServerKotlin]: 'kotlin',
[Platform.ServerGraphql]: 'graphql',
[Platform.ServerRest]: 'http',
[Platform.ServerGo]: 'go',
vue: 'html',
svelte: 'html'
};
Expand Down
25 changes: 19 additions & 6 deletions src/lib/utils/references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ import { writable } from 'svelte/store';
import type { Language } from './code';
import { browser } from '$app/environment';

const allVersions = ['1.5.x', '1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x', 'cloud'] as const;
const allVersions = [
'1.6.x',
'1.5.x',
'1.4.x',
'1.3.x',
'1.2.x',
'1.1.x',
'1.0.x',
'0.15.x',
'cloud'
] as const;

export type Version = (typeof allVersions)[number];

Expand All @@ -26,24 +36,25 @@ export enum Service {
export enum Platform {
ClientWeb = 'client-web',
ClientFlutter = 'client-flutter',
ClientReactNative = 'client-react-native',
ClientApple = 'client-apple',
ClientAndroidKotlin = 'client-android-kotlin',
ClientAndroidJava = 'client-android-java',
ClientReactNative = 'client-react-native',
ClientGraphql = 'client-graphql',
ClientRest = 'client-rest',
ServerNodeJs = 'server-nodejs',
ServerPython = 'server-python',
ServerDart = 'server-dart',
ServerDeno = 'server-deno',
ServerPhp = 'server-php',
ServerRuby = 'server-ruby',
ServerDotNet = 'server-dotnet',
ServerDeno = 'server-deno',
ServerGo = 'server-go',
ServerSwift = 'server-swift',
ServerKotlin = 'server-kotlin',
ServerJava = 'server-java',
ServerDotNet = 'server-dotnet',
ServerGraphql = 'server-graphql',
ServerRest = 'server-rest'
ServerRest = 'server-rest',
}

export const platformMap: Record<Language | string, string> = {
Expand All @@ -67,6 +78,7 @@ export const platformMap: Record<Language | string, string> = {
[Platform.ServerJava]: 'Java',
[Platform.ServerGraphql]: 'GraphQL',
[Platform.ServerRest]: 'REST',
[Platform.ServerGo]: 'Go',
sh: 'Shell',
js: 'JavaScript',
ts: 'TypeScript',
Expand Down Expand Up @@ -101,7 +113,8 @@ export const platformMap: Record<Language | string, string> = {
text: 'Text',
vue: 'Vue',
svelte: 'Svelte',
groovy: 'Groovy'
groovy: 'Groovy',
go: 'Go',
};

export const serviceMap: Record<Service, string> = {
Expand Down
5 changes: 5 additions & 0 deletions src/lib/utils/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ function getExamples(version: string) {
query: '?raw',
import: 'default'
});
case '1.6.x':
return import.meta.glob('$appwrite/docs/examples/1.6.x/**/*.md', {
query: '?raw',
import: 'default'
});
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/partials/cli-disclaimer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% info title="Before proceeding" %}
Ensure you [**install**](/docs/tooling/command-line/installation#getting-started) the CLI, [**log in**](/docs/tooling/command-line/installation#login) to your Appwrite account, and [**initialize**](/docs/tooling/command-line/installation#initialization) your Appwrite project.
{% /info %}
18 changes: 18 additions & 0 deletions src/partials/cli-function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
You can create functions using the CLI without needing to access the Console.

{% partial file="cli-disclaimer.md" /%}

To deploy your function with the Appwrite CLI, use the `appwrite init functions` command to create a starter function and paste your code into the generated file and folder.

```sh
appwrite init functions
```
To deploy the generated code, add any dependencies and push the function using the following command:

```sh
appwrite push functions
```

{% arrow_link href="/docs/tooling/command-line/functions#commands" %}
Learn more about the CLI functions commands
{% /arrow_link %}
1 change: 1 addition & 0 deletions src/partials/cli-push-command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use the `push` command in the folder containing your `appwrite.json` file to push the changes you made.
4 changes: 0 additions & 4 deletions src/redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
"link": "/docs/command-line",
"redirect": "/docs/tooling/command-line/installation"
},
{
"link": "/docs/command-line-deployment",
"redirect": "/docs/tooling/command-line/deployment"
},
{
"link": "/docs/command-line-commands",
"redirect": "/docs/tooling/command-line/commands"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default async ({ res }) => {
</>
);

return res.send(renderToString(html), 200, {
return res.text(renderToString(html), 200, {
"Content-Type": "text/html",
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/bun-function-resume/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ import { getStaticFile } from './utils.js';
export default async ({ req, res }) => {

if (req.method === 'GET' && req.path === '/') {
return res.send(getStaticFile('resume.html'), 200, {
return res.text(getStaticFile('resume.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/personal-chatbot-gpt-4o/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default async ({ req, res }) => {
throwIfMissing(process.env, ['OPENAI_API_KEY']);

if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ import os
def main(context):
# Why not try the Appwrite SDK?
#
# Set project and set API key
# client = (
# Client()
# .set_endpoint("https://cloud.appwrite.io/v1")
# .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
# .set_key(os.environ["APPWRITE_API_KEY"])
# .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
# .set_key(context.req.headers["x-appwrite-key"])
# )

# You can log messages to the console
Expand All @@ -138,8 +138,8 @@ def main(context):
# The `ctx.req` object contains the request data
if context.req.method == "GET":
# Send a response with the res object helpers
# `ctx.res.send()` dispatches a string back to the client
return context.res.send("Hello, World!")
# `ctx.res.text()` dispatches a string back to the client
return context.res.text("Hello, World!")

# `ctx.res.json()` is a handy helper for sending JSON
return context.res.json(
Expand Down Expand Up @@ -167,14 +167,13 @@ def main(context):
HF_API_KEY = os.environ['HF_API_KEY']
HF_ENDPOINT = os.environ['HF_ENDPOINT']
BUCKET_ID = os.environ['BUCKET_ID']
headers = {"Authorization": HF_API_KEY}
headers = {'Authorization': HF_API_KEY}

client = (
Client()
.set_endpoint("https://cloud.appwrite.io/v1")
.set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
.set_key(os.environ["APPWRITE_API_KEY"])
)
# Set project and set API key
# client = new Client()
# .set_project(os.environ['APPWRITE_FUNCTION_PROJECT_ID'])
# .set_key(context.req.headers['x-appwrite-key']);

storage = Storage(client)

# ... rest of the code
Expand Down Expand Up @@ -282,5 +281,4 @@ Visit our documentation to learn more about Appwrite, join us on Discord to be p
- [Discord](https://appwrite.io/discord)
- [Blog](/blog)
- [YouTube](https://www.youtube.com/channel/UCtBJ1v69gm8NgbCju_03Fiw)
- [GitHub](https://github.com/appwrite/appwrite)

- [GitHub](https://github.com/appwrite/appwrite)
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default async ({ req, res, log, error }) => {
throwIfMissing(process.env, ['OPENAI_API_KEY']);

if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ For example, I can write this Appwrite Function to fetch random Capybara with 0
```jsx
export default async ({ req, res, log, error }) => {
if(req.method !== 'GET') {
return res.send('Not found', 404);
return res.text('Not found', 404);
}

const response = await fetch(`https://api.giphy.com/v1/gifs/random?api_key=${process.env["GIPHY_API_KEY"]}&tag=capybara`);
Expand Down Expand Up @@ -164,7 +164,7 @@ export default async function handler({ req, res, log, error }: any) {
</>
);

return res.send(html, 200, {
return res.text(html, 200, {
"Content-Type": "text/html; charset=utf-8",
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ The links below give end-of-life schedules for each language that Appwrite suppo
* Deno
* [https://deno.com/runtime](https://deno.com/runtime)
---
* Go
* [https://go.dev/](https://go.dev/)
---
* Swift
* [https://developer.apple.com/swift](https://developer.apple.com/swift)
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { getStaticFile } from './utils.js';
export default async ({ req, res, error }) => {
if (req.method === 'GET') {
const html = getStaticFile('index.html');
return res.send(html, 200, { 'Content-Type': 'text/html; charset=utf-8' });
return res.text(html, 200, { 'Content-Type': 'text/html; charset=utf-8' });
}
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default async ({ req, res, error }) => {
]);

if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import { getStaticFile } from './utils.js';
export default async ({ req, res, error }) => {
if (req.method === 'GET') {
const html = getStaticFile('index.html');
return res.send(html, 200, { 'Content-Type': 'text/html; charset=utf-8' });
return res.text(html, 200, { 'Content-Type': 'text/html; charset=utf-8' });
}
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ from .utils import get_static_file, throw_if_missing

def main(context):
if context.req.method == "GET":
return context.res.send(
return context.res.text(
get_static_file("index.html"),
200,
{"content-type": "text/html; charset=utf-8"},
Expand All @@ -176,7 +176,7 @@ Add the methods necessary to integrate with the TensorFlow model. For now, call
```python
def main(context):
if context.req.method == "GET":
return context.res.send(
return context.res.text(
get_static_file("index.html"),
200,
{"content-type": "text/html; charset=utf-8"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import { getStaticFile } from './utils.js';

export default async ({ req, res, error }) => {
if (req.method === 'GET') {
return res.send(getStaticFile('index.html'), 200, {
return res.text(getStaticFile('index.html'), 200, {
'Content-Type': 'text/html; charset=utf-8',
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ export default async ({ req, res, log, error }) => {
// Allows using direct execution or file create event
const fileId = req.body.$id || req.body.imageId;
if (!fileId) {
return res.send('Bad request', 400);
return res.text('Bad request', 400);
}

// Only allow specific bucketId
if (
req.body.bucketId &&
req.body.bucketId != bucketId
) {
return res.send('Bad request', 400);
return res.text('Bad request', 400);
}
}
```
Expand Down
Loading
Loading