Open claverru opened 4 years ago
Hey @claverru
Thanks for your feedback. The little time I take to invest into this library I am going to invest it into v3 on the develop
branch. I think it can be tackled without workarounds by actually searching for image references in the markdown code and copying them to the correct location (and/or rewriting the image reference).
Hello @NiklasRosenstein,
I like this library a lot, I find it so useful. Though, I would like to be able to include images in both README.md and index.md. Let me explain:
PROBLEM
docs_dir: sources
.pages: - Home: index.md << ../README.md
if the pydocmd.yml is inside another folder, orpages: - Home: index.md << README.md
if the pydocmd.yml is at the project's root.When generating the doc's index.md, it takes whatever is in sources as relative path from there. However README.md, to show images properly, has to take images path as sources/image.png.
Because of that, I have to choose whether to show my images at the served docs, or at the README.md, imagine, in a git repository.
UGLY WORKAROUND
Specify
docs_dir: .
, which has a big issue: In result, inside the _build folder it is copied everything what was in _build folder before.POSSIBLE SOLUTIONS
docs_dir: sources
, take what it is inside assources/img.png
insteadimg.png
aditional_search_paths
looks for sources too, not only for python module.