Prune command doesn't remove child pages (and their parent pages) #710
Labels
API
Underlying issue is with the ReadMe API and not necessarily the `rdme` client itself
bug
Something isn't working
command:docs
Issues pertaining to the `docs`, `changelogs`, or `custompages` commands
When pruning docs, the relevant block of code queries
getCategoryDocs
which returns top level pages, but not the child pages inside that category, meaning the command doesn't cascade out and detect child pages for deletion.Repro
rdme docs:prune [path-to-directory-of-markdown]
(step 5 is kind of expected because you can't have a hanging page like that, but the CLI doesn't even know to delete the child page first)
rdme/src/lib/getDocs.ts
Lines 40 to 46 in d1f6c03
The text was updated successfully, but these errors were encountered: