mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
add missing tutorials
This commit is contained in:
parent
89c1c72dd9
commit
f89665a0d0
13
fabfile.py
vendored
13
fabfile.py
vendored
|
@ -75,15 +75,16 @@ def web():
|
|||
jade('blog/index.jade', 'blog/')
|
||||
jade('tutorials/index.jade', 'tutorials/')
|
||||
|
||||
for post_dir in (Path(__file__).parent / 'website' / 'src' / 'jade' / 'blog').iterdir():
|
||||
if post_dir.is_dir() \
|
||||
and (post_dir / 'index.jade').exists() \
|
||||
and (post_dir / 'meta.jade').exists():
|
||||
jade(str(post_dir / 'index.jade'), path.join('blog', post_dir.parts[-1]))
|
||||
for collection in ('blog', 'tutorials'):
|
||||
for post_dir in (Path(__file__).parent / 'website' / 'src' / 'jade' / collection).iterdir():
|
||||
if post_dir.is_dir() \
|
||||
and (post_dir / 'index.jade').exists() \
|
||||
and (post_dir / 'meta.jade').exists():
|
||||
jade(str(post_dir / 'index.jade'), path.join(collection, post_dir.parts[-1]))
|
||||
|
||||
|
||||
def web_publish(assets_path):
|
||||
local('aws s3 sync --delete website/site/ s3://spacy.io')
|
||||
local('aws s3 sync --delete --exclude "resources/*" website/site/ s3://spacy.io')
|
||||
local('aws s3 sync --delete %s s3://spacy.io/resources' % assets_path)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user