Skip to content

Commit

Permalink
Assume Zed docs are not made for Zed patch releases (#2896)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored Nov 16, 2023
1 parent f8a727d commit 35f5740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/zui/src/app/core/links.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import pkg from "../../../package.json"

const currentZedTag = pkg.devDependencies.zed.split("#")[1] || "main"
const zedDocsTag = currentZedTag.startsWith("v") ? currentZedTag : "next"
const zedDocsTag = currentZedTag.startsWith("v")
? currentZedTag.replace(/\.\d+$/, ".0")
: "next"

export default {
ZED_DOCS_ROOT: `https://zed.brimdata.io/docs/${zedDocsTag}/commands/zed`,
Expand Down

0 comments on commit 35f5740

Please sign in to comment.