Skip to content

Commit 387e953

Browse files
authored
DOC-1545 Remove legacy rapidoc support (#319)
* Remove legacy rapidoc support * Remove unused script
1 parent f66a9c0 commit 387e953

File tree

15 files changed

+17
-1955
lines changed

15 files changed

+17
-1955
lines changed

README.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,13 @@ The HTML is controlled by layouts, which are Handlebars templates located in [.p
196196
A layout typically includes partials, located in [.path]_src/partials_, which are reusable template fragments.
197197
Partials may, in turn, include other partials.
198198

199-
This project currently has six layouts:
199+
This project currently has five layouts:
200200

201201
* default.hbs
202202
* 404.hbs
203203
* home.hbs
204204
* index.hbs
205205
* search.hbs
206-
* swagger.hbs
207206

208207
If a page doesn't specify a layout, the `default.hbs` layout is used.
209208

gulpfile.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const exportTasks = require('./gulp.d/lib/export-tasks')
66
const log = require('fancy-log')
77
const { exec, execSync } = require('child_process')
88
const path = require('path')
9-
const gulp = require('gulp')
109

1110
const bundleName = 'ui'
1211
const buildDir = 'build'
@@ -25,9 +24,6 @@ const glob = {
2524
js: ['gulpfile.js', 'gulp.d/**/*.js', `${srcDir}/{helpers,js}/**/*.js`],
2625
}
2726

28-
const rapidocSrc = 'node_modules/rapidoc/dist/rapidoc-min.js'
29-
const rapidocDest = path.join(srcDir, 'static')
30-
3127
/**
3228
* Compiles Handlebars partial templates by executing a Node.js script for each specified partial.
3329
*
@@ -55,16 +51,6 @@ function compileWidgets (cb) {
5551
}
5652
}
5753

58-
/**
59-
* Copies the Rapidoc JavaScript file from the source location to the static assets directory.
60-
*
61-
* @returns {Stream} A Gulp stream representing the copy operation.
62-
*/
63-
function copyRapidoc () {
64-
return gulp.src(rapidocSrc)
65-
.pipe(gulp.dest(rapidocDest))
66-
}
67-
6854
const cleanTask = createTask({
6955
name: 'clean',
7056
desc: 'Clean files and folders generated by build',
@@ -144,7 +130,7 @@ const buildWasmTask = createTask({
144130

145131
const bundleBuildTask = createTask({
146132
name: 'bundle:build',
147-
call: series(cleanTask, lintTask, buildWasmTask, bundleReactTask, compileWidgets, copyRapidoc, buildTask),
133+
call: series(cleanTask, lintTask, buildWasmTask, bundleReactTask, compileWidgets, buildTask),
148134
})
149135

150136
const bundlePackTask = createTask({
@@ -178,7 +164,7 @@ const buildPreviewPagesTask = createTask({
178164
const previewBuildTask = createTask({
179165
name: 'preview:build',
180166
desc: 'Process and stage the UI assets and generate pages for the preview',
181-
call: series(buildWasmTask, copyRapidoc, bundleReactTask, buildTask, buildPreviewPagesTask),
167+
call: series(buildWasmTask, bundleReactTask, buildTask, buildPreviewPagesTask),
182168
})
183169

184170
const previewServeTask = createTask({

0 commit comments

Comments
 (0)