Skip to content

Commit 41b0c1c

Browse files
committed
Remove 'redocVersion' option
1 parent 8b94809 commit 41b0c1c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

generators/app/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module.exports = yeoman.Base.extend({
4343
updateNotifier({pkg}).notify();
4444

4545
const defaults = {
46-
redocVersion: 'v1.x.x',
4746
splitSpec: false,
4847
samples: true,
4948
installSwaggerUI: true
@@ -87,11 +86,6 @@ module.exports = yeoman.Base.extend({
8786
default: function () {
8887
return _.get(swagger, 'title') || defaults.name || this.appname;
8988
}
90-
}, {
91-
type: 'input',
92-
name: 'redocVersion',
93-
message: 'ReDoc version to use (e.g. v1.1.2, latest, v1.x.x)',
94-
default: defaults.redocVersion
9589
}, {
9690
type: 'input',
9791
name: 'repo',

generators/app/templates/_web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<body>
2020
<redoc spec-url="./swagger.json">
2121
</redoc>
22-
<script src="//rebilly.github.io/ReDoc/releases/<%= redocVersion %>/redoc.min.js"> </script>
22+
<script src="//rebilly.github.io/ReDoc/releases/v1.x.x/redoc.min.js"> </script>
2323
</body>
2424
</html>

0 commit comments

Comments
 (0)