themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.55k stars 715 forks source link

Document tutorial for Django html snippets refer to images on doc site as though local, so they are not found. #651

Open dlparker opened 12 months ago

dlparker commented 12 months ago

Describe the bug The _base.html and index.html examples refer to images "/docs/image/logo.svg" and "/docs/images/blog/image-1.jgp". There is no step in the tutorials to install these files locally, so the references get 404s.

To Reproduce Steps to reproduce the behavior:

  1. Follow the tutorial to the point where the _base.html is in use in the index page. View the page, note that the logo is missing from the navbar, and that the server reports a 404 response.
  2. Continue the tutorial to the point where the button is added to index.html. View the page, note that the image is not displayed and the server reports a 404 response for "/docs/image/blogs/image-1.jpg".

Expected behavior The image tags to work

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context When I changed the "/docs/..." refs to "https:flowbite.com/docs/..." everything worked, both image appeared. Maybe you should just do that in the docs.