diff options
Diffstat (limited to '')
| -rw-r--r-- | src/client/docs/gulpfile.ts (renamed from src/server/web/docs/gulpfile.ts) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/web/docs/gulpfile.ts b/src/client/docs/gulpfile.ts index 7b36cf6675..56bf6188c8 100644 --- a/src/server/web/docs/gulpfile.ts +++ b/src/client/docs/gulpfile.ts @@ -11,8 +11,8 @@ import * as mkdirp from 'mkdirp'; import stylus = require('gulp-stylus'); import cssnano = require('gulp-cssnano'); -import I18nReplacer from '../../../build/i18n'; -import fa from '../../../build/fa'; +import I18nReplacer from '../../build/i18n'; +import fa from '../../build/fa'; import generateVars from './vars'; require('./api/gulpfile.ts'); @@ -26,7 +26,7 @@ gulp.task('doc', [ gulp.task('doc:docs', async () => { const commonVars = await generateVars(); - glob('./src/server/web/docs/**/*.*.pug', (globErr, files) => { + glob('./src/client/docs/**/*.*.pug', (globErr, files) => { if (globErr) { console.error(globErr); return; @@ -37,7 +37,7 @@ gulp.task('doc:docs', async () => { common: commonVars, lang: lang, title: fs.readFileSync(file, 'utf-8').match(/^h1 (.+?)\r?\n/)[1], - src: `https://github.com/syuilo/misskey/tree/master/src/server/web/docs/${name}.${lang}.pug`, + src: `https://github.com/syuilo/misskey/tree/master/src/client/docs/${name}.${lang}.pug`, }; pug.renderFile(file, vars, (renderErr, content) => { if (renderErr) { @@ -45,7 +45,7 @@ gulp.task('doc:docs', async () => { return; } - pug.renderFile('./src/server/web/docs/layout.pug', Object.assign({}, vars, { + pug.renderFile('./src/client/docs/layout.pug', Object.assign({}, vars, { content }), (renderErr2, html) => { if (renderErr2) { @@ -55,7 +55,7 @@ gulp.task('doc:docs', async () => { const i18n = new I18nReplacer(lang); html = html.replace(i18n.pattern, i18n.replacement); html = fa(html); - const htmlPath = `./built/server/web/docs/${lang}/${name}.html`; + const htmlPath = `./built/client/docs/${lang}/${name}.html`; mkdirp(path.dirname(htmlPath), (mkdirErr) => { if (mkdirErr) { console.error(mkdirErr); @@ -70,8 +70,8 @@ gulp.task('doc:docs', async () => { }); gulp.task('doc:styles', () => - gulp.src('./src/server/web/docs/**/*.styl') + gulp.src('./src/client/docs/**/*.styl') .pipe(stylus()) .pipe((cssnano as any)()) - .pipe(gulp.dest('./built/server/web/docs/assets/')) + .pipe(gulp.dest('./built/client/docs/assets/')) ); |