Skip to content

Commit fa3e219

Browse files
authored
docs: add previous-versions section and TOC to readme (#767)
1 parent 66523cf commit fa3e219

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Official documentation for [Dify](https://dify.ai), available in English, Chinese, and Japanese.
44

5+
## Table of Contents
6+
7+
- [Contributing](#contributing)
8+
- [Viewing Previous Versions](#viewing-previous-versions)
9+
510
---
611

712
## Contributing
@@ -101,3 +106,19 @@ This repository includes Claude Code skills in `.claude/skills/` that provide wr
101106
- **Update navigation.** If you add a new page, add it to the English section of `docs.json`.
102107
- **Test locally.** Run `mintlify dev` to verify your changes render correctly before opening a PR.
103108
- **No secrets.** Never commit API keys, credentials, or `.env` files.
109+
110+
---
111+
112+
## Viewing Previous Versions
113+
114+
Our published documentation site only hosts the latest version of Dify. To view docs for an earlier release, check out the matching `release/*` branch and preview it locally with the Mintlify CLI.
115+
116+
```bash
117+
git clone https://github.com/langgenius/dify-docs.git
118+
cd dify-docs
119+
git checkout release/1.14 # replace with the version you want
120+
npm i -g mintlify
121+
mintlify dev
122+
```
123+
124+
This serves the historical docs at `http://localhost:3000`. See the [branches list](https://github.com/langgenius/dify-docs/branches/all?query=release) for available `release/*` versions.

0 commit comments

Comments
 (0)