rdme icon indicating copy to clipboard operation
rdme copied to clipboard

Sync docs based on folder structure

Open colmdoyle opened this issue 3 years ago • 6 comments

I might be alone in this, but I would really love to have the CLI infer the category > page > child page relationship based on the structure of the docs folder I upload instead of burning IDs into frontmatter. As an example, if I ran docs . --version=x in the parent directory here, it would

Screenshot 2022-11-07 at 12 06 39
  • Create a category called "capabilities"
  • Create a doc for each *.md file in the capabilities directory and assign it to the category from step 1
  • for any subfolders where the directory name matches the slug of a doc in the category from step 1, create a new doc for every *.md file and make it a child page of the doc where the slug matches the folder.

Basically I want to use the CLI to abstract away the Readme UI and having to go there to generate category IDs and doc IDs is getting in the way of that workflow.

colmdoyle avatar Nov 07 '22 12:11 colmdoyle

Is there any expectation for this to be worked on or discussed further? This tool is not usable for use cases that involve the management of documentation via an external VCS without this feature.

In my specific use case, documentation authors have no access to Readme and thus any dependency on using the API or UI to pull slugs/IDs to manage structure is fatal to the usability of this tool.

rlewis-grax avatar Jan 20 '23 15:01 rlewis-grax

Hi @rlewis-grax — we're in the early stages of working on some major improvements to ReadMe's docs editing workflow so it plays much nicer with Git. Don't have an estimated timeline since it's a pretty big undertaking but it is definitely top of mind for us!

kanadgupta avatar Jan 25 '23 16:01 kanadgupta

+1 for this option and commenting to stay updated.

We also have a nested output from tools like Typedoc and Typedoc-Plugin-Markdown. The folder structure makes it much more digestible and easier to navigate.

emma-campbell avatar Jan 31 '23 17:01 emma-campbell

+1 for this, we are building our own scripts to sync categories and docs orders based on folder structure, but there are a lot of gotchas, like the fact that categories order cannot be changed from API

vegaro avatar Jun 01 '23 22:06 vegaro