فهرست منبع

Update 'README.md'

Jerry Liao 2 سال پیش
والد
کامیت
4336872e61
1فایلهای تغییر یافته به همراه20 افزوده شده و 1 حذف شده
  1. 20 1
      README.md

+ 20 - 1
README.md

@@ -1,3 +1,22 @@
 # gogs-dark-theme
 
-An improved gogs dark theme
+An improved gogs dark theme, original from [Stylish](https://userstyles.org/styles/167730/gogs-dark-theme)
+
+## Instructions
+
+- Put `dark-theme.css` under `/your/gogs/path/custom/public/themes` foler
+- Add following HTML code in `/your/gogs/path/custom/templates/inject/head.tmpl`
+ ```html
+ <link rel="stylesheet" href="/css/themes/dark-theme.css">
+ ```
+- If you're using Nginx to proxy ```Gogs```, upload `gogs-hero-light.png` to the site folder and add the following lines in your site config
+ ```nginx
+ location =/img/gogs-hero.png {
+     alias /var/www/yoursite/gogs-hero-light.png;
+ }
+ ```
+- Restart Nginx and Gogs
+
+## Todo
+
+- [ ] CodeMirror themes