Skip to content

Commit ea60df0

Browse files
committed
Merge branch 'main' of https://github.com/Nishantjain10/appwrite-website into docs-sites-integration
2 parents 9b3db87 + 3b2a3e5 commit ea60df0

File tree

10 files changed

+173
-101
lines changed

10 files changed

+173
-101
lines changed

pnpm-lock.yaml

Lines changed: 54 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/markdoc/layouts/Post.svelte

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
<script lang="ts">
2+
import { page } from '$app/state';
23
import { Media } from '$lib/UI';
34
import { FooterNav, MainFooter } from '$lib/components';
5+
import CTA from '$lib/components/BlogCta.svelte';
6+
import Article from '$lib/components/blog/article.svelte';
7+
import Breadcrumbs from '$lib/components/blog/breadcrumbs.svelte';
8+
import Newsletter from '$lib/components/blog/newsletter.svelte';
9+
import PostMeta from '$lib/components/blog/post-meta.svelte';
10+
import TableOfContents from '$lib/components/blog/table-of-contents.svelte';
411
import { Main } from '$lib/layouts';
12+
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
513
import { formatDate } from '$lib/utils/date';
614
import {
715
createBreadcrumbsSchema,
@@ -12,14 +20,6 @@
1220
import type { AuthorData, PostsData } from '$routes/blog/content';
1321
import { TITLE_SUFFIX } from '$routes/titles';
1422
import { getContext, setContext } from 'svelte';
15-
import { page } from '$app/state';
16-
import CTA from '$lib/components/BlogCta.svelte';
17-
import PostMeta from '$lib/components/blog/post-meta.svelte';
18-
import Breadcrumbs from '$lib/components/blog/breadcrumbs.svelte';
19-
import Newsletter from '$lib/components/blog/newsletter.svelte';
20-
import TableOfContents from '$lib/components/blog/table-of-contents.svelte';
21-
import Article from '$lib/components/blog/article.svelte';
22-
import type { TocItem } from '$lib/layouts/DocsArticle.svelte';
2323
import { writable } from 'svelte/store';
2424
import type { LayoutContext } from './Article.svelte';
2525
@@ -39,7 +39,9 @@
3939
| boolean;
4040
export let lastUpdated: string;
4141
42-
const posts = getContext<PostsData[]>('posts');
42+
const posts = getContext<PostsData[]>('posts')?.filter(
43+
(post) => !(post.unlisted ?? false) && !(post.draft ?? false)
44+
);
4345
const authors = getContext<AuthorData[]>('authors');
4446
const authorData = authors.find((a) => a.slug === author);
4547

src/routes/blog/[[page]]/+page.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<script lang="ts">
2-
import { tick } from 'svelte';
3-
import { page } from '$app/state';
4-
import { Main } from '$lib/layouts';
5-
import { TITLE_SUFFIX } from '$routes/titles';
6-
import { DEFAULT_HOST } from '$lib/utils/metadata';
7-
import { createDebounce } from '$lib/utils/debounce';
82
import { goto, onNavigate } from '$app/navigation';
3+
import { page } from '$app/state';
94
import { Article, FooterNav, MainFooter } from '$lib/components';
105
import { Button } from '$lib/components/ui';
6+
import { Main } from '$lib/layouts';
7+
import { createDebounce } from '$lib/utils/debounce';
8+
import { DEFAULT_HOST } from '$lib/utils/metadata';
9+
import { TITLE_SUFFIX } from '$routes/titles';
10+
import { tick } from 'svelte';
1111
1212
let { data } = $props();
1313

src/routes/blog/post/building-apps-with-bun-and-appwrite/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Installing a self-hosted version of Appwrite is pretty straight-forward, all you
7575
--volume /var/run/docker.sock:/var/run/docker.sock \
7676
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
7777
--entrypoint="install" \
78-
appwrite/appwrite:1.6.2
78+
appwrite/appwrite:1.7.2
7979
```
8080

8181
For one-click setups, check out the [installation docs](https://appwrite.io/docs/self-hosting).

src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ docker run -it --rm \
4242
--volume /var/run/docker.sock:/var/run/docker.sock \
4343
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
4444
--entrypoint="install" \
45-
appwrite/appwrite:1.6.2
45+
appwrite/appwrite:1.7.2
4646
```
4747

4848
Once that is done, [set up email delivery](https://appwrite.io/docs/advanced/self-hosting/email) on your self-hosted Appwrite instance. This can be done by visiting your `appwrite` directory and updating the `.env` file in a similar manner as follows:

src/routes/blog/post/planetscale-databases-alternative/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ docker run -it --rm \
7070
--volume /var/run/docker.sock:/var/run/docker.sock \
7171
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
7272
--entrypoint="install" \
73-
appwrite/appwrite:1.6.2
73+
appwrite/appwrite:1.7.2
7474
```
7575

7676
We have a dedicated [self-hosting guide](/docs/advanced/self-hosting) in our docs for more info.

src/routes/docs/advanced/self-hosting/+page.markdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ docker run -it --rm \
3535
--volume /var/run/docker.sock:/var/run/docker.sock \
3636
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
3737
--entrypoint="install" \
38-
appwrite/appwrite:1.6.2
38+
appwrite/appwrite:1.7.2
3939
```
4040
{% /tabsitem %}
4141

@@ -46,15 +46,15 @@ docker run -it --rm ^
4646
--volume //var/run/docker.sock:/var/run/docker.sock ^
4747
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
4848
--entrypoint="install" ^
49-
appwrite/appwrite:1.6.2
49+
appwrite/appwrite:1.7.2
5050
```
5151
## Powershell
5252
```powershell
5353
docker run -it --rm `
5454
--volume /var/run/docker.sock:/var/run/docker.sock `
5555
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw `
5656
--entrypoint="install" `
57-
appwrite/appwrite:1.6.2
57+
appwrite/appwrite:1.7.2
5858
```
5959
{% /tabsitem %}
6060
{% /tabs %}

src/routes/docs/advanced/self-hosting/update/+page.markdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ docker run -it --rm \
3939
--volume /var/run/docker.sock:/var/run/docker.sock \
4040
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
4141
--entrypoint="upgrade" \
42-
appwrite/appwrite:1.6.2
42+
appwrite/appwrite:1.7.2
4343
```
4444

4545
## CMD
@@ -49,7 +49,7 @@ docker run -it --rm ^
4949
--volume //var/run/docker.sock:/var/run/docker.sock ^
5050
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
5151
--entrypoint="upgrade" ^
52-
appwrite/appwrite:1.6.2
52+
appwrite/appwrite:1.7.2
5353
```
5454

5555
## PowerShell
@@ -59,7 +59,7 @@ docker run -it --rm `
5959
--volume /var/run/docker.sock:/var/run/docker.sock `
6060
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw `
6161
--entrypoint="upgrade" `
62-
appwrite/appwrite:1.6.2
62+
appwrite/appwrite:1.7.2
6363
```
6464

6565
This will pull the `docker-compose.yml` file for the new version and perform the installation.

0 commit comments

Comments
 (0)