File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
packages/vuepress/vuepress-theme-titanium/components Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -108,23 +108,24 @@ export default {
108
108
if (this .$page .frontmatter .editLink === false ) {
109
109
return
110
110
}
111
+
111
112
const {
112
113
repo ,
113
114
editLinks ,
114
115
docsBranch = ' master' ,
115
- docsRepo = repo
116
- } = this .$site .themeConfig
117
- let {
118
- docsDir = ' ' ,
119
- docsDirVersioned = ' docs/website/versioned_docs'
116
+ docsRepo = repo,
117
+ docsDirVersioned = ' website/versioned_docs' ,
118
+ docsDirPages = ' website/pages'
120
119
} = this .$site .themeConfig
121
-
120
+ let { docsDir = ' ' } = this . $site . themeConfig
122
121
let path = normalize (this .$page .regularPath )
123
122
if (this .$page .version ) {
124
123
path = normalize (this .$page .originalRegularPath )
125
124
if (this .$page .version !== ' next' ) {
126
125
docsDir = docsDirVersioned
127
126
}
127
+ } else if (this .$page .unversioned === true ) {
128
+ docsDir = docsDirPages
128
129
}
129
130
if (endingSlashRE .test (path)) {
130
131
path += ' README.md'
You can’t perform that action at this time.
0 commit comments