Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
8579bc45
Commit
8579bc45
authored
8 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
Docs: Implement License page
parent
94948583
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gulpfile.ts
+4
-1
4 additions, 1 deletion
gulpfile.ts
src/web/about/pages/license.pug
+2
-0
2 additions, 0 deletions
src/web/about/pages/license.pug
with
6 additions
and
1 deletion
gulpfile.ts
+
4
−
1
View file @
8579bc45
...
...
@@ -2,6 +2,7 @@
* Gulp tasks
*/
import
*
as
fs
from
'
fs
'
;
import
*
as
path
from
'
path
'
;
import
*
as
gulp
from
'
gulp
'
;
import
*
as
gutil
from
'
gulp-util
'
;
...
...
@@ -63,13 +64,15 @@ gulp.task('build:ts', () =>
);
gulp
.
task
(
'
build:about:docs
'
,
()
=>
{
const
licenseHtml
=
fs
.
readFileSync
(
'
./LICENSE
'
,
'
utf-8
'
).
replace
(
/
\r\n
|
\n
/g
,
'
<br>
'
);
const
pugs
=
glob
.
sync
(
'
./src/web/about/pages/**/*.pug
'
);
const
streams
=
pugs
.
map
(
file
=>
{
const
page
=
file
.
replace
(
'
./src/web/about/pages/
'
,
''
).
replace
(
'
.pug
'
,
''
);
return
gulp
.
src
(
file
)
.
pipe
(
pug
({
locals
:
Object
.
assign
({
path
:
page
path
:
page
,
license
:
licenseHtml
},
config
)
}))
.
pipe
(
gulp
.
dest
(
'
./built/web/about/pages/
'
+
path
.
parse
(
page
).
dir
));
...
...
This diff is collapsed.
Click to expand it.
src/web/about/pages/license.pug
+
2
−
0
View file @
8579bc45
...
...
@@ -5,3 +5,5 @@ block title
block content
h1 ライセンス
div!= license
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment