File tree Expand file tree Collapse file tree 1 file changed +30
-19
lines changed
Expand file tree Collapse file tree 1 file changed +30
-19
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,13 @@ const config = {
245245 exclude : [
246246 '**/06-troubleshooting/**' ,
247247 '**/07-system-internals/**' ,
248- ]
248+ ] ,
249+ versions : {
250+ current : {
251+ label : 'Next' ,
252+ banner : 'unreleased' ,
253+ } ,
254+ } ,
249255 } ,
250256 blog : {
251257 showReadingTime : true ,
@@ -324,24 +330,9 @@ const config = {
324330 } ,
325331 items : [
326332 {
327- label : 'Docs' ,
328- position : 'left' ,
329- items : [
330- {
331- label : 'Latest Docs' ,
332- to : 'docs' ,
333- } ,
334- {
335- label : 'Docs 2.0.0 (Archived)' ,
336- href : '/docs/2.0.0/' ,
337- target : '_blank'
338- } ,
339- {
340- label : 'Docs 1.4.1 (Archived)' ,
341- href : '/docs/1.4.1/' ,
342- target : '_blank'
343- } ,
344- ] ,
333+ label : 'Docs' , // 'User documentation' link
334+ to : 'docs/next' , // Links to the 'Next' version
335+ position : 'left' , // Keep it on the left
345336 } ,
346337 {
347338 to : 'download' ,
@@ -395,6 +386,26 @@ const config = {
395386 // type: 'localeDropdown',
396387 // position: 'right',
397388 // },
389+ {
390+ type : 'docsVersionDropdown' , // User doc version select on the right
391+ position : 'right' ,
392+ dropdownItemsAfter : [
393+ {
394+ type : 'html' ,
395+ value : '<hr class="dropdown-separator">' ,
396+ } ,
397+ {
398+ label : 'Docs 2.0.0 (Archived)' ,
399+ href : '/docs/2.0.0/' ,
400+ target : '_blank' ,
401+ } ,
402+ {
403+ label : 'Docs 1.4.1 (Archived)' ,
404+ href : '/docs/1.4.1/' ,
405+ target : '_blank' ,
406+ } ,
407+ ] ,
408+ } ,
398409 {
399410 href : 'https://github.com/apache/ozone' ,
400411 position : 'right' ,
You can’t perform that action at this time.
0 commit comments