shots: full-bleed layout (shots.layout bleed) with corner captions, per-size frames, and landscape orientation, on top of the landscape sizes
This commit is contained in:
parent
9ed1890de8
commit
d4cf1ad3a1
11 changed files with 320 additions and 11 deletions
|
|
@ -114,7 +114,7 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
const dir = resolve(cap.folder ?? shots.frames);
|
||||
const issues = checkFrameFolder(config, dir, langs);
|
||||
for (const x of issues) warn('shots', `frames/${x.file}: ${x.msg}`);
|
||||
if (issues.length) throw new Error(`${issues.length} frame problems in ${dir} (expected <lang>/<phone|tablet>/<name>.png)`);
|
||||
if (issues.length) throw new Error(`${issues.length} frame problems in ${dir} (expected <lang>/${shots.layout === 'bleed' ? '<size>' : '<phone|tablet>'}/<name>.png)`);
|
||||
if (dir !== framesDir) warn('shots', `frames are read from shots.frames (${shots.frames}); point it at ${cap.folder} or copy them there`);
|
||||
return done('shots', `folder frames ok: ${dir}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue