File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}'."
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change 582582h6 {
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}
You can’t perform that action at this time.
0 commit comments