Add output_path argument to render_docs()#300
Conversation
|
I was expecting to be able to control the output folder entirely. In my use case, I was thinking of putting multiple altdoc-managed packages into a single mkdocs website. So, I'll already have a parent |
|
Ok so you'd expect
Would |
|
Well, I would put the primary mkdocs config under Is altdoc simply copying the mkdocs.yml file over from the |
It copies the file but also replaces some template variable e.g.
I don't want to add arguments that are tool-specific. This would only be useful for Could you try this PR, just to check that the structure of output is as you expect? (I know #298 is still the main issue here) |
Fixes #299
Bunch of auto-formatting changes, the actual changes are at the end of
render_docs(). Instead of changing the target directory in all internal functions, I just cut and paste the "docs" folder to wherever the output path is.@nsheff Could you try this branch and let me know if that works?
Note that with this PR, the output folder is still named "docs", so
render_docs(output_path = "../mydocs")creates../mydocs/docs. Is this what you had in mind or did you expect../mydocsto contain all the documentation files?