mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-21 16:02:40 +00:00
Fixing Travis CI
This commit is contained in:
parent
5c8c18a7c1
commit
4c24a01c60
@ -20,10 +20,10 @@
|
||||
- id: eslint
|
||||
name: eslint
|
||||
language: system
|
||||
entry: sh -c 'eslint templates/js/*.js'
|
||||
files: ''
|
||||
entry: sh -c 'eslint static/js/*.js'
|
||||
files: ^static/js/
|
||||
- id: stylelint
|
||||
name: stylelint
|
||||
language: system
|
||||
entry: sh -c 'stylelint static/main.css'
|
||||
files: ''
|
||||
files: ^static/js/main.css$
|
||||
|
@ -8,6 +8,8 @@ SMALLEST['jpg'] = SMALLEST['jpeg'] = b'\xff\xd8\xff\xdb\x00C\x00\x03\x02\x02\x02
|
||||
SMALLEST['png'] = b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x00\x00\x00\x00:~\x9bU\x00\x00\x00\nIDATx\x9cc\xfa\x0f\x00\x01\x05\x01\x02\xcf\xa0.\xcd\x00\x00\x00\x00IEND\xaeB`\x82'
|
||||
|
||||
def gen_img(img_url):
|
||||
if img_url[0] == '/':
|
||||
img_url = img_url[1:]
|
||||
if os.path.exists(img_url):
|
||||
return
|
||||
os.makedirs(os.path.dirname(img_url), exist_ok=True)
|
||||
|
Loading…
Reference in New Issue
Block a user