From 0162ab96453847592691a65087495976af97a8fa Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 31 Dec 2016 06:50:13 +0900 Subject: [PATCH] Move src/web/about/pages --> docs/ --- src/web/about/base.pug => docs/BASE.pug | 2 +- {src/web/about/pages => docs}/api/entities/post.pug | 2 +- {src/web/about/pages => docs}/api/entities/user.pug | 2 +- {src/web/about/pages => docs}/api/getting-started.pug | 2 +- {src/web/about/pages => docs}/api/library.pug | 2 +- {src/web/about/pages => docs}/index.pug | 2 +- {src/web/about/pages => docs}/license.pug | 2 +- {src/web/about/pages => docs}/tou.pug | 2 +- gulpfile.ts | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) rename src/web/about/base.pug => docs/BASE.pug (87%) rename {src/web/about/pages => docs}/api/entities/post.pug (99%) rename {src/web/about/pages => docs}/api/entities/user.pug (99%) rename {src/web/about/pages => docs}/api/getting-started.pug (99%) rename {src/web/about/pages => docs}/api/library.pug (93%) rename {src/web/about/pages => docs}/index.pug (84%) rename {src/web/about/pages => docs}/license.pug (91%) rename {src/web/about/pages => docs}/tou.pug (89%) diff --git a/src/web/about/base.pug b/docs/BASE.pug similarity index 87% rename from src/web/about/base.pug rename to docs/BASE.pug index 73ed35a16..d87052b6e 100644 --- a/src/web/about/base.pug +++ b/docs/BASE.pug @@ -35,7 +35,7 @@ html(lang='ja', dir='ltr') footer p.contribution | 間違いを見つけた、またはドキュメントに貢献したいですか? - a(href='https://github.com/syuilo/misskey/blob/master/src/web/about/pages/' + path + '.pug', target='_blank') Github 上でこのページを編集する + a(href='https://github.com/syuilo/misskey/blob/master/docs/' + path + '.pug', target='_blank') Github 上でこのページを編集する | か、 a(href='https://github.com/syuilo/misskey/fork', target='_blank') Github からこのサイトを Fork してプルリクエストしましょう! p.copyright (c) syuilo 2016 diff --git a/src/web/about/pages/api/entities/post.pug b/docs/api/entities/post.pug similarity index 99% rename from src/web/about/pages/api/entities/post.pug rename to docs/api/entities/post.pug index ad53be954..e505d3fcb 100644 --- a/src/web/about/pages/api/entities/post.pug +++ b/docs/api/entities/post.pug @@ -1,4 +1,4 @@ -extend ../../../base +extend ../../BASE block title | Entity: Post diff --git a/src/web/about/pages/api/entities/user.pug b/docs/api/entities/user.pug similarity index 99% rename from src/web/about/pages/api/entities/user.pug rename to docs/api/entities/user.pug index eef973fd6..f5d4be266 100644 --- a/src/web/about/pages/api/entities/user.pug +++ b/docs/api/entities/user.pug @@ -1,4 +1,4 @@ -extend ../../../base +extend ../../BASE block title | Entity: User diff --git a/src/web/about/pages/api/getting-started.pug b/docs/api/getting-started.pug similarity index 99% rename from src/web/about/pages/api/getting-started.pug rename to docs/api/getting-started.pug index 61c9a9305..8e6e6b4f4 100644 --- a/src/web/about/pages/api/getting-started.pug +++ b/docs/api/getting-started.pug @@ -1,4 +1,4 @@ -extend ../../base +extend ../BASE block title | Getting Started diff --git a/src/web/about/pages/api/library.pug b/docs/api/library.pug similarity index 93% rename from src/web/about/pages/api/library.pug rename to docs/api/library.pug index b1ed16e71..4b2943b2a 100644 --- a/src/web/about/pages/api/library.pug +++ b/docs/api/library.pug @@ -1,4 +1,4 @@ -extend ../../base +extend ../BASE block title | ライブラリ diff --git a/src/web/about/pages/index.pug b/docs/index.pug similarity index 84% rename from src/web/about/pages/index.pug rename to docs/index.pug index 1fcd36468..bae22d9c7 100644 --- a/src/web/about/pages/index.pug +++ b/docs/index.pug @@ -1,4 +1,4 @@ -extend ../base +extend ./BASE block title | About Misskey diff --git a/src/web/about/pages/license.pug b/docs/license.pug similarity index 91% rename from src/web/about/pages/license.pug rename to docs/license.pug index 2d91a00f5..229a47385 100644 --- a/src/web/about/pages/license.pug +++ b/docs/license.pug @@ -1,4 +1,4 @@ -extend ../base +extend ./BASE block title | ライセンス diff --git a/src/web/about/pages/tou.pug b/docs/tou.pug similarity index 89% rename from src/web/about/pages/tou.pug rename to docs/tou.pug index dc0c266fd..cb3ab84a4 100644 --- a/src/web/about/pages/tou.pug +++ b/docs/tou.pug @@ -1,4 +1,4 @@ -extend ../base +extend ./BASE block title | 利用規約 diff --git a/gulpfile.ts b/gulpfile.ts index 144a3733d..9afbd5796 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -90,9 +90,9 @@ gulp.task('build:about:docs', () => { const licenses = glob.sync('./node_modules/**/LICENSE*'); const licenseHtml = getLicenseHtml('./LICENSE'); const thirdpartyLicensesHtml = licenses.map(license => getLicenseSectionHtml(license)).join(''); - const pugs = glob.sync('./src/web/about/pages/**/*.pug'); + const pugs = glob.sync('./docs/**/*.pug'); const streams = pugs.map(file => { - const page = file.replace('./src/web/about/pages/', '').replace('.pug', ''); + const page = file.replace('./docs/', '').replace('.pug', ''); return gulp.src(file) .pipe(pug({ locals: Object.assign({