...
 
Commits (1)
......@@ -3,3 +3,4 @@
/config/test.yml
/config/production.yml
/node_modules/
/public
......@@ -5,43 +5,47 @@ stages:
test:
stage: test
image: node:9-alpine
image: node:10-alpine
script:
- npm install
- npm run lint
- npm test
pages:
readme:
stage: pages
image: ruby:2.5-alpine
only: [master]
except: [tags]
image: registry.gitlab.com/pages/hugo:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
# GIT_SSL_NO_VERIFY: "true"
# HUGO_VERSION: '0.45'
# HUGO_SHA: '5f03adc1b38609909e1f36add347ed838a8af0e770b2b26c8793ccf799465b42'
before_script:
- apk update && apk add bash curl
- gem install coderay kramdown
- apk update && apk add git
# - apk update && apk add openssl ca-certificates && apk add git
# - wget -O ${HUGO_VERSION}.tar.gz https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
# - echo "${HUGO_SHA} ${HUGO_VERSION}.tar.gz" | sha256sum -c
# - tar xf ${HUGO_VERSION}.tar.gz && mv hugo* /usr/bin/hugo
# - hugo version
script:
# Create webpage from the README
- mkdir -p public
- curl http://cdn.tjaart.org/gitlab/index.html.erb --output index.html.erb
- sed -i "s@#CI_PROJECT_URL#@${CI_PROJECT_URL}@" index.html.erb
- kramdown --template index.html.erb README.md > public/index.html
- cp -r assets public/
- docs/build.sh
artifacts:
paths:
- public
only:
- master
docs:
stage: pages
image: python:3.6-alpine
only: [master]
except: [tags]
before_script:
- pip install mkdocs
script:
- mkdocs build -d public/docs/
artifacts:
paths:
- public
# docs:
# stage: pages
# image: python:3.6-alpine
# only: [master]
# except: [tags]
# before_script:
# - pip install mkdocs
# script:
# - mkdocs build -d public/docs/
# artifacts:
# paths:
# - public
publish:
image: node
......
public/
test/
DIR=$(cd `dirname $0` && pwd)
REPO_ROOT=${DIR}/..
SITE_PATH=${DIR}/test
BUILD_PATH=${REPO_ROOT}/public
# If THEME_URL is a symlink, set this to true
THEME_SYMLINK=false
THEME_URL=https://github.com/tjaartvdwalt/gitlab-project-landing-page.git
hugo new site ${SITE_PATH}
cp ${DIR}/config.toml ${SITE_PATH}
if ${THEME_SYMLINK}; then
ln -s -t ${SITE_PATH}/themes ${THEME_URL}
else
cd ${SITE_PATH}/themes
git clone ${THEME_URL}
cd ${DIR}
fi
cp ${REPO_ROOT}/README.md ${SITE_PATH}/content
cd ${SITE_PATH}
hugo
cd ${DIR}
mkdir -p ${BUILD_PATH}
cp -r ${SITE_PATH}/public/* ${BUILD_PATH}
rm -rf ${SITE_PATH}
# baseurl = "http://tjaart.gitlab.io/standup-steve"
languageCode = "en-us"
title = "Standup Steve"
theme = "gitlab-project-landing-page"
[params]
description = "An Open Source Standup Slack Bot inspired by Geekbot."
author_url = "http://tjaart.org"
project_url = "http://gitlab.com/tjaart/standup-steve"
project_documentation = "http://tjaart.gitlab.io/standup-steve/docs"
gitlab_project_name = "standup-steve"
gitlab_user_name = "tjaart"
first_color="#f8f8f8"
first_border_color="#e7e7e7"
first_text_color="#333"
second_color="white"
second_text_color="#333"
header_color="#f8f8f8"
header_text_color="rgb(51, 51, 51)"
header_link_color="#777"
header_link_hover_color="rgb(51, 51, 51)"