mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-11 04:31:26 +00:00
Fix editUrl (#31)
Fix #9 Reviewed-on: https://gitea.com/gitea/docs/pulls/31
This commit is contained in:
@@ -364,7 +364,7 @@ provided key. You should also set the value
|
||||
`SSH_CREATE_AUTHORIZED_KEYS_FILE=false` in the `[server]` section of
|
||||
`app.ini`.
|
||||
|
||||
:::notice
|
||||
:::note
|
||||
opensshd requires the Gitea program to be owned by root and not
|
||||
writable by group or others. The program must be specified by an absolute
|
||||
path.
|
||||
|
||||
@@ -107,8 +107,10 @@ const config = {
|
||||
if (docPath.includes('awesome.md')) {
|
||||
return `https://gitea.com/gitea/awesome-gitea/src/branch/main/README.md`
|
||||
}
|
||||
let fileName = `${docPath.replace('.md', '')}.${locale}.md`;
|
||||
return `https://gitea.com/gitea/docs/tree/${version === 'current' ? 'docs': `versioned_docs/version-${version}`}/${fileName}`;
|
||||
if (locale === 'en-us') {
|
||||
return `https://gitea.com/gitea/docs/src/branch/main/${version === 'current' ? 'docs': `versioned_docs/version-${version}`}/${docPath}`;
|
||||
}
|
||||
return `https://gitea.com/gitea/docs/src/branch/main/i18n/${locale}/docusaurus-plugin-content-docs/${version === 'current' ? 'current': `version-${version}`}/${docPath}`;
|
||||
},
|
||||
versions: {
|
||||
current: {
|
||||
|
||||
Reference in New Issue
Block a user