-
默认url修改的是main分支,请问如何切换到其他分支呢? |
Beta Was this translation helpful? Give feedback.
Answered by
ChenSino
Aug 2, 2022
Replies: 3 comments 1 reply
-
找到了,在 export interface HopeThemeDocsLocaleOptions {
/**
* Pattern of edit link, we provide built-in support for GitHub, Gitlab, Gitee, Bitbucket
*
* 编辑链接的匹配,我们已经为 GitHub、Gitlab、Gitee 和 Bitbucket 提供了内置支持
*
* @example ':repo/edit/:branch/:path'
*/
editLinkPattern?: string;
/**
* The repo of your docs
*
* 文档仓库
*
* @default themeConfig.repo
*/
docsRepo?: string;
/**
* The branch of your docs
*
* 文档所在分支
*
* @default 'main'
*/
docsBranch?: string;
/**
* Docs dir location in repo
*
* 文档在仓库中的目录
*
* @default ''
*/
docsDir?: string;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChenSino
-
要给作者点个赞,注释写的很详细 |
Beta Was this translation helpful? Give feedback.
0 replies
-
也许你应该仔细看看文档或者用用文档搜索 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
找到了,在
HopeThemeDocsLocaleOptions
有个docsBranch
可以用。