|
1531 | 1531 | <script> |
1532 | 1532 | (() => { |
1533 | 1533 | const siteBase = "https://w3id.org/ldes/"; |
1534 | | - const releasesBase = `${siteBase}releases/`; |
| 1534 | + const releasesBase = "https://w3id.org/ldes/releases/"; |
1535 | 1535 |
|
1536 | 1536 | const currentPath = new URL(window.location.href).pathname; |
1537 | 1537 | const documentName = (() => { |
|
1540 | 1540 | return lastSegment; |
1541 | 1541 | })(); |
1542 | 1542 |
|
1543 | | - const documentPath = documentName === "index.html" ? "" : documentName; |
| 1543 | + let documentPath = documentName === "index.html" ? "" : documentName; |
| 1544 | + documentPath = documentPath.substring(0, documentPath.indexOf(".html")); |
| 1545 | + let latest = `${siteBase}${documentPath}`; |
| 1546 | + if (documentPath === '') { |
| 1547 | + latest += 'specification'; |
| 1548 | + } |
1544 | 1549 | const linkTargets = { |
1545 | | - latest: `${siteBase}${documentPath}`, |
| 1550 | + latest: latest, |
1546 | 1551 | archivedVersions: releasesBase, |
| 1552 | + workingDraft: `${siteBase}workingdraft/${documentPath}`, |
1547 | 1553 | }; |
1548 | 1554 |
|
1549 | 1555 | function setVersionLinks() { |
|
1557 | 1563 | currentUrl.search = ""; |
1558 | 1564 |
|
1559 | 1565 | const rows = [ |
1560 | | - createVersionRow("This version:", currentUrl.toString(), true), |
| 1566 | + createVersionRow("This version:", siteBase + currentPath.substring(0, currentPath.indexOf(".html")), true), |
1561 | 1567 | createVersionRow("Latest version:", linkTargets.latest), |
1562 | 1568 | createVersionRow("Archived versions:", linkTargets.archivedVersions), |
| 1569 | + createVersionRow("Working draft:", linkTargets.workingDraft), |
1563 | 1570 | ]; |
1564 | 1571 | metadata.prepend(...rows.flat()); |
1565 | 1572 | } |
|
1582 | 1589 |
|
1583 | 1590 | function removeVersionRows(metadata) { |
1584 | 1591 | const versionLabels = new Set([ |
1585 | | - "Previous version:", |
1586 | | - "This version:", |
1587 | | - "Next version:", |
1588 | | - "Latest version:", |
1589 | | - "Working draft:", |
1590 | | - "Archived versions:", |
| 1592 | + "This version:" |
1591 | 1593 | ]); |
1592 | 1594 |
|
1593 | 1595 | for (const term of [...metadata.querySelectorAll("dt")]) { |
|
1612 | 1614 | </script> |
1613 | 1615 | <meta content="Bikeshed version 0a3d88311, updated Mon May 4 18:07:03 2026 +0000" name="generator"> |
1614 | 1616 | <link href="https://w3id.org/ldes/server-primer" rel="canonical"> |
1615 | | - <meta content="8e4eff998e7105958d8e13698b8d29cf40e7c48b" name="revision"> |
| 1617 | + <meta content="4974c85c3fab8443acd60085542f11e5f99bd27d" name="revision"> |
1616 | 1618 | <meta content="dark light" name="color-scheme"> |
1617 | 1619 | <style>/* Boilerplate: style-autolinks */ |
1618 | 1620 | .css.css, .property.property, .descriptor.descriptor { |
|
0 commit comments