2024-05-06 18:33:48 +03:00
|
|
|
# Zed Docs
|
|
|
|
|
2024-05-04 01:24:04 +03:00
|
|
|
Welcome to Zed's documentation.
|
|
|
|
|
|
|
|
This is built on push to `main` and published automatically to [https://zed.dev/docs](https://zed.dev/docs).
|
|
|
|
|
|
|
|
To preview the docs locally you will need to install [mdBook](https://rust-lang.github.io/mdBook/), and then run:
|
|
|
|
|
|
|
|
```
|
|
|
|
mdbook serve docs
|
|
|
|
```
|
|
|
|
|
2024-05-06 18:33:48 +03:00
|
|
|
## Images and videos
|
|
|
|
|
|
|
|
To add images or videos to the docs, upload them to another location (e.g., zed.dev, GitHub's asset storage) and then link out to them from the docs.
|
|
|
|
|
|
|
|
Putting binary assets such as images in the Git repository will bloat the repository size over time.
|
|
|
|
|
|
|
|
## Internal notes:
|
2024-05-04 01:24:04 +03:00
|
|
|
|
|
|
|
- We have a Cloudflare router called `docs-proxy`that intercepts requests to `zed.dev/docs` and forwards them to the "docs" Cloudflare Pages project.
|
|
|
|
- CI uploads a new version to the Pages project from `.github/workflows/deploy_docs.yml` on every push to `main`.
|