File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ export default {
55
55
type : 'string' ,
56
56
describe : 'Where to build the documentation' ,
57
57
default : userConfig . docs . directory
58
+ } ,
59
+ cname : {
60
+ type : 'string' ,
61
+ describe : 'A custom domain pointed at the gh-pages branch' ,
62
+ default : userConfig . docs . cname
58
63
}
59
64
} )
60
65
} ,
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ async function findMonorepoEntryPoints () {
120
120
* @property {string } PublishDocsConfig.email
121
121
* @property {string } PublishDocsConfig.message
122
122
* @property {string } PublishDocsConfig.directory
123
+ * @property {string } [PublishDocsConfig.cname]
123
124
*/
124
125
125
126
/**
@@ -138,7 +139,8 @@ const publishDocs = async (config) => {
138
139
user : {
139
140
name : config . user ,
140
141
email : config . email
141
- }
142
+ } ,
143
+ cname : config . cname
142
144
}
143
145
)
144
146
}
Original file line number Diff line number Diff line change @@ -170,6 +170,10 @@ interface DocsOptions {
170
170
* Where to build the documentation
171
171
*/
172
172
directory : string
173
+ /**
174
+ * If set a CNAME file will be written with a custom domain
175
+ */
176
+ cname ?: string
173
177
}
174
178
175
179
interface DocsVerifierOptions {
You can’t perform that action at this time.
0 commit comments