Skip to content

Validate HTML generator produces unique files#142

Open
erichoracek wants to merge 4 commits into
JohnSundell:masterfrom
erichoracek:validate-duplicate-files
Open

Validate HTML generator produces unique files#142
erichoracek wants to merge 4 commits into
JohnSundell:masterfrom
erichoracek:validate-duplicate-files

Conversation

@erichoracek

Copy link
Copy Markdown

If you have a website with a SectionID case that has the same name as a page markdown file, right now whichever one ends up in the output is nondeterministic. This change adds a validation step to the HTMLGenerator to ensure uniqueness.

If you have a website with a `SectionID` case that has the same name as a page markdown file, right now whichever one ends up in the output is nondeterministic. This change adds a validation step to the `HTMLGenerator` to ensure uniqueness.
@erichoracek erichoracek force-pushed the validate-duplicate-files branch from 17f7598 to 04f81bf Compare January 2, 2023 21:58
@codewithhart

Copy link
Copy Markdown

Interesting find. I just spent way too long figuring out why the top-level *.md files weren't updating. From what I've seen around the web...is the correct behavior to have a SectionID case match the .md file?

codewithhart pushed a commit to codewithhart/Publish that referenced this pull request Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants