-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cli): add sidebar support to content move/delete commands (#41)
* intermediate commit * first cut working * handle path fields as well * use a btreemap for sidebar l10n, some comments, add a warning line about losing comments into the sidebar files * use IndexMap on sidebar translations * some re-shuffling and a happy path test * comment update * moved some crate deps to workspace level, format sidebar yaml with pretty_yaml, do not change sidebars on translated content, implement clone and partial_eq on sidebar structs, only write sidebars if they changed * path fields have absolute urls into the locale default * add hash support to sidebar tool * intermediate commit * support removing items from sidebars by introducing a `None` entry type that gets filtered out on serializing. more happy tests, fixed missing hash serialization skip test, changed update_sidebars function signature to allow option<string> for the `to` parameters, factored out reading the sidebars. * clean up * more clean up * add fmt-sidebars * fix one case --------- Co-authored-by: Florian Dieminger <[email protected]>
- Loading branch information
Showing
18 changed files
with
657 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.