I am building a site, and I would like to have my documentation built into the site.
For example if I use JSDoc to generate documentation for javascript, I get the auto generated files, I can just change the template to only output the content.
I would like to generate WordPress pages for these automatically.
I have a custom post type which is component, so I would like for it to work something like this:
component/component-name/docs/0.0.0/page-name
I could manually do this but there are a bunch of components and it would be easier to have each release have the documentation automatically incorporated in.
EDIT
some of the things I have in mind:
Idea 1 ) Add extra args to the url, and a folder with the docs. Pull the html off of the folder and display on page. Essentially using it like a pseudo rest api
Pros: don't have to deal with generating pages, docs show latest upload automatically.
Cons: Not searchable inside WordPress
Idea 2 ) Have a script which traverses all the files in a docs folder and programmatically generates pages.
Pros: Searchable within WordPress
Cons: Probably have to delete and regenerate pages if making a change, most likely also going to be a pain in the ass.
If anyone knows how WordPress does their own codex site and can point me in the direction of something that can be large scale but mostly automated that would be extremely nice.