mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
Fixing Travis CI
This commit is contained in:
parent
5c8c18a7c1
commit
4c24a01c60
@ -20,10 +20,10 @@
|
|||||||
- id: eslint
|
- id: eslint
|
||||||
name: eslint
|
name: eslint
|
||||||
language: system
|
language: system
|
||||||
entry: sh -c 'eslint templates/js/*.js'
|
entry: sh -c 'eslint static/js/*.js'
|
||||||
files: ''
|
files: ^static/js/
|
||||||
- id: stylelint
|
- id: stylelint
|
||||||
name: stylelint
|
name: stylelint
|
||||||
language: system
|
language: system
|
||||||
entry: sh -c 'stylelint static/main.css'
|
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'
|
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):
|
def gen_img(img_url):
|
||||||
|
if img_url[0] == '/':
|
||||||
|
img_url = img_url[1:]
|
||||||
if os.path.exists(img_url):
|
if os.path.exists(img_url):
|
||||||
return
|
return
|
||||||
os.makedirs(os.path.dirname(img_url), exist_ok=True)
|
os.makedirs(os.path.dirname(img_url), exist_ok=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user