gammasim / simtools

Tools and applications for the Simulation System of the CTA Observatory.
https://gammasim.github.io/simtools
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Markdown badges #946

Closed GernotMaier closed 4 months ago

GernotMaier commented 4 months ago

Fix links in main README.md

VictorBarbosaMartins commented 4 months ago

Hi @GernotMaier, thanks for this fix. It indeed fixed the issue. but I found another similar one. The link to the code in the documentation is broken because there is no docs/index.md (see two screenshots below). I think we can fix that here too:

Action (click on show source): Screenshot 2024-05-29 at 14 11 57

Error message (same for main and this branch): Screenshot 2024-05-29 at 14 12 05

GernotMaier commented 4 months ago

Could you have a look and fix it?

VictorBarbosaMartins commented 4 months ago

I looked into this and it seems that this is because sphinx-book-theme expects an index.html file inside ./docs and not inside ./docs/source. I couldn't find in simtools how to change the expected path (I imagine this is encoded in the theme). In any case I could move index.html from ./docs/source to ./docs but this would motivate us to move all the other files as well and get rid of the source directory. This goes beyond my decision alone and I need your feedback.

GernotMaier commented 4 months ago

Fixed this by setting the "path_to_docs": as outlined in https://sphinx-book-theme.readthedocs.io/en/stable/components/source-files.html#add-a-button-to-the-page-source