fastn icon indicating copy to clipboard operation
fastn copied to clipboard

Enforce file extensions

Open siddhantk232 opened this issue 2 years ago • 2 comments

The sitemap works with documents with no extensions as well. This is a bug, we want the user to explicitly mention file extensions.

Current behaviour:

Below code works and assumes that the document features/design is a .ftd file.

-- fastn.sitemap:

- Design: /design/
  document: features/design

Expected behaviour:

The above code should error (and maybe suggest that the user is missing the file extension).

Correct code:

-- fastn.sitemap:

- Design: /design/
  document: features/design.ftd

siddhantk232 avatar Nov 01 '23 06:11 siddhantk232

A small correction in your code snippets, we do not need -- end: fastn.sitemap as fastn.sitemap does not expect "children".

amitu avatar Nov 01 '23 06:11 amitu

A small correction in your code snippets, we do not need -- end: fastn.sitemap as fastn.sitemap does not expect "children".

Thanks! I've updated the comment :+1:

siddhantk232 avatar Nov 01 '23 06:11 siddhantk232