Skip to content

Commit 51e04dc

Browse files
arglfiji-flo
andauthored
feat(tools): implement move command (#1)
* some scaffolding around arguments, slug paths, ignore .DS_Store * fix some testing issues rot rari-tools * serializer for frontmatter, PageWriter for Doc scaffolding, factor out page absolute path, prompting on cli * more file system stuff * fix merge issues * some more refactoring to keep track of main * some refactoring * some path woes, but we're getting there * some cleanup, wikihistory * cargo * resolve merge conflicts, make sure target directory is created before git move * minimal cloning implementation of parts of the add_redirects function * more tests * fixed test * write out redirects file * more validations for redirects, fixed translated content move, git command error handling * add a dry-run test for move, added a translated content root for tests plus some files * placeholder for `short_cuts` call * fix merge issues: Locale::all -> Locale::for_generic_and_spas * simplified forbidden symbol check * moved redirect manipulation from rari_docs to rari_tools * refactored validation functions, fixed processing logic * some cleanup, disable checking for existing file/folders on the `from` check for now. * remove static fixtures * gitignore dynamic fixture paths * intermediate fixture stuff * adjust gitignore * remove unused fixtures * dynamic docs fixtures with automatic removal, make test code conditionall only compile under test conditions * more fixtures, make fixture-dependent tests run serially * do_move tests for default and translated languages * fixed merge errors * fix(lint): clippy * keep .keep * chore(doc): buffed writer * chore(tool): optimize move * chore(fmt): fmt with nightly * chore(various): enhance wikihistory and yaml Switch to serde_yaml_ng * chote(fmt): fmt * fix(fm): fix frontmatter formatting * more locale derefs --------- Co-authored-by: Florian Dieminger <[email protected]>
1 parent df326d5 commit 51e04dc

File tree

32 files changed

+2334
-123
lines changed

32 files changed

+2334
-123
lines changed

Diff for: .cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[env]
22
TESTING_CONTENT_ROOT = { value = "tests/data/content/files", relative = true }
3+
TESTING_CONTENT_TRANSLATED_ROOT = { value = "tests/data/translated_content/files", relative = true }

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
/target
22
.config.toml
3+
.DS_Store
4+
tests/data/content/files/*
5+
!tests/data/content/files/.keep
6+
tests/data/translated_content/files/*
7+
!tests/data/translated_content/files/.keep

Diff for: Cargo.lock

+189-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)