Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally do not slugify paths #875

Merged
merged 23 commits into from
Dec 21, 2019
Merged

Optionally do not slugify paths #875

merged 23 commits into from
Dec 21, 2019

Conversation

Keats
Copy link
Collaborator

@Keats Keats commented Dec 11, 2019

Updated version of #781

@Keats Keats changed the title Maybe slugify paths Optionally do not slugify paths Dec 12, 2019
@Keats Keats force-pushed the southerntofu-maybe_slugify branch from bcd602b to 5f05cb6 Compare December 12, 2019 20:51
@Keats Keats merged commit d1b2ada into next Dec 21, 2019
@Keats Keats deleted the southerntofu-maybe_slugify branch December 21, 2019 09:44
Keats added a commit that referenced this pull request Feb 3, 2020
* maybe_slugify() only does simple sanitation if config.slugify is false

* slugify is disabled by default, turn on for backwards-compatibility

* First docs changes for optional slugification

* Remove # from slugs but not &

* Add/fix tests for utf8 slugs

* Fix test sites for i18n slugs

* fix templates tests for i18n slugs

* Rename slugify setting to slugify_paths

* Default slugify_paths

* Update documentation for slugify_paths

* quasi_slugify removes ?, /, # and newlines

* Remove forbidden NTFS chars in quasi_slugify()

* Slugification forbidden chars can be configured

* Remove trailing dot/space in quasi_slugify

* Fix NTFS path sanitation

* Revert configurable slugification charset

* Remove \r for windows newlines and \t tabulations in quasi_slugify()

* Update docs for output paths

* Replace slugify with slugify_paths

* Fix test

* Default to not slugifying

* Move slugs utils to utils crate

* Use slugify_paths for anchors as well
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.

1 participant