Skip to content

Conversation

@Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Jan 14, 2025

Added validation to ensure {include} only supports files from _snippets/ and detects cyclical references. Introduced SnippetFile and updated tests to reflect these changes. Renamed example snippet for clarity.

Previously we were simply ignoring all files in _* folders as ExcludedFile instances.

Now files in _snippets folders are of type SnippetFile which participate better in DocumentationSet's mechanics.

E.g they now contribute to LastWrite so changes in snippets break incremental compilation correctly.

Added more tests to ensure this new rules are enforced as well as a test to ensure snippets do not end up in links.json

Added validation to ensure `{include}` only supports files from `_snippets/` and detects cyclical references. Introduced `SnippetFile` and updated tests to reflect these changes. Renamed example snippet for clarity.
@Mpdreamz Mpdreamz merged commit bef1b03 into main Jan 14, 2025
3 checks passed
@Mpdreamz Mpdreamz deleted the feauture/snippet-files branch January 14, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Not linked in toc:" shouldn't fail on files included with include directive

3 participants