Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
292 changes: 0 additions & 292 deletions .github/workflows/nightly-docs-release.yml

This file was deleted.

14 changes: 2 additions & 12 deletions barretenberg/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const path = require("path");
const fs = require("fs");
const macros = require("./src/katex-macros.js");
const versions = require("./versions.json");
const nightlyVersion = versions.find((v) => v.includes("nightly"));
const stableVersion = versions.find((v) => !v.includes("nightly"));
const stableVersion = versions[0];

// To redirect /api to the static/api directory in dev mode (netlify handles it in prod)
function apiPlugin(context: any, options: any) {
Expand Down Expand Up @@ -88,18 +87,9 @@ const config: Config = {
},
],
],
// Don't show latest since nightlies are published
includeCurrentVersion: process.env.ENV === "dev",
// There should be 2 versions, nightly and stable
// Fall back to versions[0] if only one version exists (e.g., during release builds)
lastVersion: stableVersion ?? versions[0],
lastVersion: stableVersion,
versions: {
...(nightlyVersion && stableVersion && {
[nightlyVersion]: {
path: "nightly",
banner: "unreleased",
},
}),
...(process.env.ENV === "dev" && {
current: {
label: "dev",
Expand Down
Loading
Loading