A CLI for publishing standard.site documents to ATProto sequoia.pub

Slugs from files in subdirectories use backslashes on Windows #58

Open tmstorey.id.au
Open opened by tmstorey.id.au

When publishing a site that has subdirectories of Markdown files on Windows, the slugs in .sequoia-state.json and paths visible on Standard.site Validator use backslashes as the path separator.

Expected behaviour: paths represent subdirectories using forward slashes.

Example: enter https://tmstorey.id.au/blog/atproto-zola/ into Standard.site Validator.

For ease triaging the issue, just doing those steps shows the path is /posts/blog\atproto-zola.

If you're doing this on Windows, I'd argue that technically all the path separators should be backslashes; however, that also means we have to make sure they are escaped. Instead, @stevedylan.dev think we should just normalize them across the board to forward slashes? That is fairy common. But we'd have to go both ways: if we see / w.r.t. a path we have to translate that to \ or make sure we're using libraries that do that automatically. IIRC, node libraries will.

Sign up or Sign in to add to the discussion.