Skip to content

Commit e7af889

Browse files
docs: upgrade guide (#913)
feat: fix Update v0.1.0.md
1 parent a4715d5 commit e7af889

6 files changed

Lines changed: 46 additions & 45 deletions

File tree

apps/docs/docs/backend/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ flowchart TD
5555
```
5656

5757
<small>
58-
The [frontend architecture](../frontend/architecture.md) and the [overall architecture](../architecture/index.md)
58+
The [frontend architecture](../frontend/architecture.md) and the [overall architecture](../architecture.md)
5959
</small>

apps/docs/docs/frontend/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ flowchart TD
8282
```
8383

8484
<small>
85-
The [backend architecture](../backend/architecture.md) and the [overall architecture](../architecture/index.md)
85+
The [backend architecture](../backend/architecture.md) and the [overall architecture](../architecture.md)
8686
</small>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
To allow for file preview using WASM, `chithi` required some breaking changes, but we've worked hard to make sure that the upgrade path was smooth as possible.
2+
3+
## Installation
4+
5+
Update your `chithi` to latest version using docker-compose.
6+
7+
Inside your docker compose directory for chithi deployment:
8+
```shell
9+
docker compose pull
10+
```
11+
12+
Then:
13+
```shell
14+
docker compose up -d
15+
```
16+
17+
18+
## Breaking changes
19+
### Chithi frontend needs COOP and COEP headers
20+
In previous version of `chithi`, we didn't do in browser convertion of files.
21+
22+
Now `chithi` supports the following transformations:
23+
24+
* SVG -> PNG (using [@resvg/resvg-wasm](https://www.npmjs.com/package/@resvg/resvg-wasm))
25+
* HEIC -> PNG (using [heic-to](https://www.npmjs.com/package/heic-to))
26+
* JXL -> PNG (using [@jsquash/jxl](https://www.npmjs.com/package/@jsquash/jxl))
27+
28+
To accomodate these with wasm threads, we have to enable [COOP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Opener-Policy) and [COEP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy) headers.
29+
30+
You can read an [article on web.dev](https://web.dev/articles/why-coop-coep) on why COOP and COEP headers are needed.
31+
32+
!!! info
33+
34+
While the site itself does not change much in meaningful way, having no COOP and COEP headers mean your fonts and other assets wont load properly.
35+
36+
That means your reverse proxy of choice must add the security headers.
37+
38+
Please see the deployment section for your reverse proxy of choice.
39+

apps/docs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "docs"
33
version = "0.0.1"
44
description = "Documentation for the next generation encrypted file sharing project"
55
readme = "README.md"
6-
requires-python = ">=3.13"
6+
requires-python = ">=3.14"
77
dependencies = ["zensical>=0.0.17"]
88

99
[dependency-groups]

apps/docs/uv.lock

Lines changed: 1 addition & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/docs/zensical.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ nav = [
7979
{ "Environment" = "cli/environment.md" },
8080
{ "License" = "cli/license.md" },
8181
] },
82+
{ "Upgrade Guides" = [
83+
{ "v0.1.0" = 'upgrade-guides/v0.1.0.md' },
84+
] },
8285
{ "Transparency" = [
8386
{ "AI" = "transparency/ai.md" },
8487
] },

0 commit comments

Comments
 (0)