Commit 854e080c by Jun Matsushita

Fixes and attempting Gitlab CI build

parent 6200bd50
Pipeline #15 failed with stage
in 0 seconds
secrets.sh
_site
_tmp
metalsmith.tmp.json
node_modules
\ No newline at end of file
......@@ -13,15 +13,17 @@ stages:
before_script:
- npm i pm2 http-server contentascode/broken-link-checker -g
- "rvm install $(sed 's/ruby-//g' .ruby-version)"
- bundle install
- apt-get update pandoc
- apt-get install -y pandoc
- npm i docsmith -g
- npm i
jekyll-build:
contentascode-build:
stage: build
tags:
- docker
script:
- npm build
- content build
test-links:
stage: test
......
impact @ 88a4020a
Subproject commit e0996b07d28ba1b34172c4c66e338dfddd470882
Subproject commit 88a4020a87771fdf1c4698b1c742c3ccf626c617
{
"source": "content",
"source": "_tmp",
"destination": "_site/openintegrity.org",
"metadata": {},
"frontmatter": false,
......
{
"source": "content",
"destination": "_site/openintegrity.org",
"metadata": {},
"frontmatter": false,
"ignore": [
"LICENSE",
"README.md"
],
"plugins": [
{
"metalsmith-ignore": [
"**/.git/**"
]
},
{
"metalsmith-congregate": {
"files": [
"code/public/scss"
],
"output": "css"
}
},
{
"metalsmith-static": {
"src": "code/public",
"dest": "."
}
},
{
"metalsmith-ignore": [
"code"
]
},
{
"metalsmith-congregate": {
"files": [
"_config.yml",
"code/404.html",
"code/atom.xml"
],
"output": "."
}
},
{
"metalsmith-metadata": {
"site": "_config.yml"
}
},
{
"metalsmith-drafts": {}
},
{
"metalsmith-matters": {}
},
{
"metalsmith-paths": {
"property": "paths",
"directoryIndex": "index.html"
}
},
{
"metalsmith-metacopy": {
"file": [
{
"src": "paths.href",
"dest": "source"
}
]
}
},
{
"metalsmith-collections": {
"pages": {
"pattern": [
"**",
"!blog/**",
"!**/*.xml",
"!**/*.png",
"!**/*.css",
"!**/*.ico",
"!**/404.html"
]
},
"posts": {
"pattern": [
"blog/*.md"
],
"sortBy": "date",
"reverse": true
},
"impact/reports/inbox": {
"pattern": [
"impact/reports/inbox/*.md"
],
"sortBy": "date",
"reverse": true
},
"impact/reports/events/iff": {
"pattern": [
"impact/reports/events/iff/*.md"
],
"sortBy": "date",
"reverse": true
}
}
},
{
"metalsmith-filemetadata": [
{
"pattern": "framework/**/*.*",
"metadata": {
"subrepo": "framework"
}
},
{
"pattern": "impact/**/*.*",
"metadata": {
"subrepo": "impact"
}
},
{
"pattern": "metrics/**/*.*",
"metadata": {
"subrepo": "metrics"
}
}
]
},
{
"metalsmith-build-date": true
},
{
"metalsmith-metacopy": {
"file": [
{
"src": "paths.href",
"dest": "url"
},
{
"src": "paths.name",
"dest": "basename"
}
],
"metadata": [
{
"src": "date",
"dest": "site.date"
},
{
"src": "collections",
"dest": "site"
}
]
}
},
{
"metalsmith-date-in-filename": {
"override": true,
"basename": "datebasename"
}
},
{
"metalsmith-pandoc": {
"pattern": "**/*.md",
"from": "markdown_github+definition_lists+raw_html+markdown_in_html_blocks+link_attributes"
}
},
{
"metalsmith-many-more": {
"pattern": "**/*.html",
"separator": "<!--more-->",
"key": "children",
"trim": true
}
},
{
"metalsmith-metacopy": {
"file": [
{
"src": "contents",
"dest": "content"
},
{
"src": "paths",
"dest": "page"
},
{
"src": "url",
"dest": "page.path"
},
{
"src": "url",
"dest": "page.url"
},
{
"src": "title",
"dest": "page.title"
}
]
}
},
{
"metalsmith-permalinks": {
"pattern": ":title",
"linksets": [
{
"match": {
"collection": "posts"
},
"pattern": "blog/:datebasename"
}
]
}
},
{
"metalsmith-paths": {
"property": "paths",
"directoryIndex": "index.html"
}
},
{
"metalsmith-metacopy": {
"file": [
{
"src": "paths.href",
"dest": "url"
},
{
"src": "paths.name",
"dest": "basename"
},
{
"src": "paths",
"dest": "page"
},
{
"src": "url",
"dest": "page.path"
},
{
"src": "url",
"dest": "page.url"
},
{
"src": "title",
"dest": "page.title"
}
],
"metadata": [
{
"src": "date",
"dest": "site.date"
},
{
"src": "collections",
"dest": "site"
}
]
}
},
{
"metalsmith-debug": {}
},
{
"metalsmith-layouts": {
"engine": "jade",
"directory": "code/_layouts",
"pattern": "**/*.html",
"rename": true,
"default": "default.jade",
"ext": ".jade"
}
}
]
}
\ No newline at end of file
......@@ -12,29 +12,30 @@ module.exports = function(pipelines) {
]
pipelines['build-hercule'] = [
merge(
glob({ basePath: 'content' }, '**/*.*')
),
glob({ basePath: 'content' }, '**/*.*'),
write('_tmp'),
select({ projectPath : /^.*\.md$/ }),
debounce(500),
pipe('hercule'),
debug(),
write('_site/tmp/hercule')
write('_tmp')
]
pipelines['build-metalsmith'] = [
pipeline('build-css', 'build-hercule'),
merge(
glob({ basePath: '.' }, 'metalsmith.json'),
glob({ basePath: '.' }, '_config.yml'),
glob({ basePath: '_site/tmp/hercule' }, '**/*.*'),
glob({ basePath: 'code' }, '**/*.*')
glob({ basePath: 'code' }, '**/*.*', '!code/public')
),
debounce(500),
debounce(5000),
debug(),
process('content build'),
process('hs _site'),
browserSync()
]
pipelines.alias.build = ['build-css', 'build-hercule', 'build-metalsmith']
pipelines.alias.build = ['build-metalsmith']
// pipelines.alias.build = ['build-css', 'build-metalsmith']
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment