dauxio / daux.io

Daux.io is an documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly. It helps you create great looking documentation in a developer friendly way.
https://daux.io/
MIT License
794 stars 196 forks source link

live mode: svg not displayed, static PDF files not served #281

Closed maitredede closed 2 years ago

maitredede commented 2 years ago

Hello :slightly_smiling_face:

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Using docker daux/daux.io:0.16.2
  2. Commandline: docker run --rm -it --publish 8085:8085 -v ${PWD}:/daux/docs:ro daux/daux.io:0.16.2 daux serve
  3. Page containing SVG as image : ![alt](my.drawio.svg "wonderful image")
  4. With link to pdf in same file [my pdf](my.pdf)

Expected behavior

Desktop (please complete the following information):

onigoetz commented 2 years ago

I cannot reproduce the issue with the svg file (And use daux with svgs daily). I'm not exactly sure how to investigate this for now, I'll have a further look tomorrow.

However I can reproduce the red pdf link issue, I will look into that and how to fix it.

onigoetz commented 2 years ago

Hmm, actually I made a typo in the PDF url, after fixing it it worked.

can you try maybe to use relative paths ?

![alt](./my.drawio.svg "wonderful image")
[my pdf](./my.pdf)
onigoetz commented 2 years ago

I'm closing this issue as I couldn't reproduce the bug and have no news. Feel free to reopen if you find a new issue related to this.