jerryliao 1 éve
szülő
commit
365884a035
2 módosított fájl, 27 hozzáadás és 1 törlés
  1. 24 0
      .drone.yml
  2. 3 1
      README.md

+ 24 - 0
.drone.yml

@@ -0,0 +1,24 @@
+kind: pipeline
+type: exec
+name: default
+
+platform:
+    os: linux
+    arch: amd64
+
+steps:
+  - name: copy
+    commands:
+      - cp ./*.css /home/gogs/gogs/custom/public/css/themes/
+
+  - name: inject
+    commands:
+      - echo "<link rel="stylesheet" href="/css/themes/dark-theme.css" />" > /home/gogs/gogs/custom/templates/inject/head.tmpl
+      - echo "<link rel="stylesheet" href="/css/themes/simplemde-darker.css" />" >> /home/gogs/gogs/custom/templates/inject/head.tmpl
+
+      - echo "<link rel="stylesheet" href="/css/themes/codemirror-material.css" />" >> /home/gogs/gogs/custom/templates/inject/head.tmpl
+
+  
+trigger:
+    branch:
+        - master

+ 3 - 1
README.md

@@ -1,10 +1,12 @@
 # gogs-dark-theme
 
+[![Build Status](https://cicd.jerryliao.cn/api/badges/jerryliao/gogs-dark-theme/status.svg)](https://cicd.jerryliao.cn/jerryliao/gogs-dark-theme)
+
 An improved gogs dark theme, original from [Stylish](https://userstyles.org/styles/167730/gogs-dark-theme), CodeMirror theme from [here](https://codemirror.net/5/demo/theme.html#material-darker), SimpleMDE theme from [here](https://github.com/xcatliu/simplemde-theme-dark)
 
 ## Instructions
 
-- Put `dark-theme.css`, `simplemde-dark.css` and `codemirror-material.css` under `/your/gogs/path/custom/public/themes` foler
+- Put `dark-theme.css`, `simplemde-dark.css` and `codemirror-material.css` under `/your/gogs/path/custom/public/themes` folder
 - Add following HTML code in `/your/gogs/path/custom/templates/inject/head.tmpl`
 
 ```html