Skip to content

Commit 85d629a

Browse files
CopilotSnooz82
andauthored
fix: correct versioned_docs path in release workflow, hide version badge, use doc-type navbar items
Agent-Logs-Url: https://github.com/robotframework/robotframework-RFCP-syllabus/sessions/d026ff9e-b0e5-4e58-9969-750936ad6311 Co-authored-by: Snooz82 <41592183+Snooz82@users.noreply.github.com>
1 parent 57df15c commit 85d629a

3 files changed

Lines changed: 24 additions & 9 deletions

File tree

.github/workflows/release-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
shell: bash
2323
run: |
2424
RELEASE_TAG="${{ github.event.release.tag_name }}"
25-
DOCS_DIR="website/versioned_docs/${RELEASE_TAG}"
25+
# Strip a leading 'v' from the tag (e.g. v1.0.1 → 1.0.1)
26+
VERSION="${RELEASE_TAG#v}"
27+
DOCS_DIR="website/versioned_docs/version-${VERSION}"
2628
2729
if [[ ! -d "${DOCS_DIR}" ]]; then
2830
echo "::error::Missing docs snapshot for release tag '${RELEASE_TAG}'."

website/docusaurus.config.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,43 +69,51 @@ const config: Config = {
6969
},
7070
items: [
7171
{
72+
type: 'doc',
73+
docId: 'overview',
7274
label: 'Introduction',
73-
to: '/docs/overview',
7475
position: 'left',
7576
},
7677
{
78+
type: 'doc',
79+
docId: 'chapter-01/overview',
7780
label: 'Chapter 1',
78-
to: '/docs/chapter-01/overview',
7981
position: 'left',
8082
},
8183
{
84+
type: 'doc',
85+
docId: 'chapter-02/overview',
8286
label: 'Chapter 2',
83-
to: '/docs/chapter-02/overview',
8487
position: 'left',
8588
},
8689
{
90+
type: 'doc',
91+
docId: 'chapter-03/overview',
8792
label: 'Chapter 3',
88-
to: '/docs/chapter-03/overview',
8993
position: 'left',
9094
},
9195
{
96+
type: 'doc',
97+
docId: 'chapter-04/overview',
9298
label: 'Chapter 4',
93-
to: '/docs/chapter-04/overview',
9499
position: 'left',
95100
},
96101
{
102+
type: 'doc',
103+
docId: 'chapter-05/overview',
97104
label: 'Chapter 5',
98-
to: '/docs/chapter-05/overview',
99105
position: 'left',
100106
},
101107
{
108+
type: 'doc',
109+
docId: 'example-exam/Example-exam',
102110
label: 'Example Exam',
103-
to: '/docs/example-exam',
104111
position: 'left',
105112
},
106113
{
114+
type: 'doc',
115+
docId: 'learning_objectives',
107116
label: 'LOs',
108-
to: '/docs/learning_objectives',
109117
position: 'left',
110118
},
111119
{

website/src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,4 +582,9 @@ h5,
582582
h6 {
583583
font-family: var(--ifm-font-family-heading);
584584
letter-spacing: -0.11em;
585+
}
586+
587+
/* Hide the per-page version badge; the navbar version dropdown is sufficient */
588+
.theme-doc-version-badge {
589+
display: none;
585590
}

0 commit comments

Comments
 (0)