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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/generate-search-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function stripMarkdown(content) {

function getSection(path) {
if (path === "/") return "Documentation";
if (path === "/releases" || path.startsWith("/releases/") || path === "/reference/releases") {
if (path === "/releases" || path.startsWith("/releases/")) {
return "Releases";
}
if (
Expand Down
2 changes: 1 addition & 1 deletion lib/release-components.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"id": "lexicons",
"title": "Lexicons",
"path": "/reference/releases",
"path": "/releases/lexicon",
"sourceId": "hypercerts-lexicon-changelog",
"description": "Shared record schemas, types, and permission sets."
},
Expand Down
2 changes: 1 addition & 1 deletion lib/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function renderReleaseFragment(kind, catalog) {
return `# Hypercerts Protocol ${latest.version}`;
}
if (kind === 'release-summary') {
return `The current protocol release line is **${latest.version}** (Lexicons ${latest.sourceVersion}, ${latest.date}). ${latest.cardSummary || latest.summary} Read [what changed and why](/releases/protocol) or the [Lexicon changelog](/reference/releases) for every technical change. Other components have their own versions below.`;
return `The current protocol release line is **${latest.version}** (Lexicons ${latest.sourceVersion}, ${latest.date}). ${latest.cardSummary || latest.summary} Read [what changed and why](/releases/protocol) or the [Lexicon changelog](/releases/lexicon) for every technical change. Other components have their own versions below.`;
}
if (kind === 'release-cards') {
const cards = catalog.components.map(component => `{% card-link title="${component.title}" href="${component.path}" badge="${component.label}" %}\n${component.description}\n{% /card-link %}`);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pages/releases/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ description: Reviewed summaries of what each Hypercerts Protocol release introdu

{% protocol-title /%}

The protocol major and minor version follows the [Hypercerts Lexicon releases](/reference/releases). A new major version can also come from a breaking change to the Lexicon package alone, as in 2.0, where the records did not change; each release's notes say whether existing records are affected. These notes explain the purpose and integration impact of each release; the Lexicon changelog records the detailed package changes. Component release histories have their own versions on the [Releases overview](/releases).
The protocol major and minor version follows the [Hypercerts Lexicon releases](/releases/lexicon). A new major version can also come from a breaking change to the Lexicon package alone, as in 2.0, where the records did not change; each release's notes say whether existing records are affected. These notes explain the purpose and integration impact of each release; the Lexicon changelog records the detailed package changes. Component release histories have their own versions on the [Releases overview](/releases).

{% protocol-history /%}
2 changes: 1 addition & 1 deletion test/external-docs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ test('configures the Lexicon changelog as the releases page external source', ()
trackRelease: true,
});

const pagePath = join(__dirname, '..', 'pages', 'reference', 'releases.md');
const pagePath = join(__dirname, '..', 'pages', 'releases', 'lexicon.md');
const page = readFileSync(pagePath, 'utf8');
assert.deepEqual(parseMarkdownFrontmatter(page), {
title: 'Hypercerts Lexicon releases',
Expand Down
10 changes: 10 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@
"source": "/raw/roadmap.md",
"destination": "/raw/releases.md",
"permanent": true
},
{
"source": "/reference/releases",
"destination": "/releases/lexicon",
"permanent": true
},
{
"source": "/raw/reference/releases.md",
"destination": "/raw/releases/lexicon.md",
"permanent": true
}
]
}
Loading