File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ const LOCALE_FULL_CODE = {
17
17
18
18
const PROJECT_NAME = 'pnpm.io'
19
19
20
+ const lastDocsVersion = '10.x' ;
21
+
20
22
function makeEditUrl ( locale , path1 , path2 ) {
21
23
// Link to Crowdin for non-English docs
22
24
if ( locale !== DEFAULT_LOCALE ) {
23
25
return `https://translate.pnpm.io/project/pnpm/${ LOCALE_FULL_CODE [ locale ] || locale } ` ;
24
26
}
25
- if ( path1 === ' versioned_docs/version-9.x' ) {
27
+ if ( path1 === ` versioned_docs/version-${ lastDocsVersion } ` ) {
26
28
return `https://github.com/pnpm/${ PROJECT_NAME } /edit/main/docs/${ path2 } ` ;
27
29
}
28
30
// Link to GitHub for English docs
@@ -59,7 +61,7 @@ module.exports={
59
61
"path" : "./docs" ,
60
62
"routeBasePath" : "/" ,
61
63
"sidebarPath" : path . join ( __dirname , "sidebars.json" ) ,
62
- lastVersion : '10.x' ,
64
+ lastVersion : lastDocsVersion ,
63
65
} ,
64
66
"gtag" : {
65
67
trackingID : "UA-91385296-1" ,
You can’t perform that action at this time.
0 commit comments