Make the index page default

This commit is contained in:
Lunny Xiao
2024-06-06 17:10:46 +08:00
parent 7c1ce71ffc
commit 089f2a0b46
8 changed files with 9 additions and 19 deletions
+1 -5
View File
@@ -108,10 +108,6 @@ const config = {
return `https://gitea.com/gitea/awesome-gitea/src/branch/main/README.md`
}
let fileName = `${docPath.replace('.md', '')}.${locale}.md`;
// intro.md has different name from upstream, need to handle this here
if (docPath.includes('intro.md')) {
fileName = `page/index.${locale}.md`;
}
return `https://github.com/go-gitea/gitea/tree/${version === 'current' ? 'main': `release/v${version}`}/docs/content/${fileName}`;
},
versions: {
@@ -193,7 +189,7 @@ const config = {
items: [
{
type: 'doc',
docId: 'intro',
docId: 'index.en-us',
position: 'left',
label: 'Docs',
},