Commit dd5ed483 authored by Pietro Saccardi's avatar Pietro Saccardi
Browse files

Merge branch '1-some-works-here' into 'master'

Refactor after theme upgrade

See merge request infra/themes/kanboard-theme!1
parents ea823cf0 58104d0e
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+25 −0
Original line number Diff line number Diff line
stages:
  - build

build:less:
  stage: build
  image: node:8.0.0-alpine
  variables:
    PLUGIN_NAME: MittelTheme
    LESS_SRC: Template/css/app.less
    LESS_OUTPUT: Template/css/main.css
  before_script:
    - yarn global add less
    - yarn global add less-plugin-clean-css
    - apk add --update --no-cache git zip unzip
  script:
    - /usr/local/bin/lessc "${LESS_SRC}" > "${LESS_OUTPUT}"
  after_script:
    - git archive HEAD --prefix="${PLUGIN_NAME}/" --format=zip -o "${PLUGIN_NAME}.zip"
    - unzip "${PLUGIN_NAME}.zip"
    - rm "${PLUGIN_NAME}/${LESS_SRC}"
    - rm "${PLUGIN_NAME}/.gitlab-ci.yml"
    - cp "${LESS_OUTPUT}" "${PLUGIN_NAME}/${LESS_OUTPUT}"
  artifacts:
    paths:
      - "${PLUGIN_NAME}"

Makefile

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
PLUGIN_NAME = MittelTheme

all:
	@ git archive HEAD --prefix=${PLUGIN_NAME}/ --format=zip -o ${PLUGIN_NAME}.zip
+5 −7
Original line number Diff line number Diff line
Example of theme plugin
=======================
Mittelab Theme Plugin
======================

This plugin override core templates and use template hooks to create a custom theme.
[![pipeline status](https://git.mittelab.org/infra/themes/kanboard-theme/badges/master/pipeline.svg)](https://git.mittelab.org/infra/themes/kanboard-theme/commits/master)

[**Download latest release**](https://git.mittelab.org/infra/themes/kanboard-theme/-/jobs/artifacts/master/download?job=build:less)

- New CSS styles are added with the hook **layout:head**
- A top bar is added to the layout by using the hook **layout:top**
@@ -15,7 +17,3 @@ Installation
- Go on your local installation of Kanboard
- After the login, you should see the alterations to the default layout
Screenshot
----------

![plugin-example-theme](https://cloud.githubusercontent.com/assets/323546/9838179/6ef2b466-5a24-11e5-9988-5402eaf55026.png)
Loading