ropensci-review-tools / babelquarto

Renders a Multilingual Quarto Project (Book or Website)
https://docs.ropensci.org/babelquarto/
Other
30 stars 6 forks source link

Broken link while navigating to different language #41

Closed RealRichi3 closed 1 week ago

RealRichi3 commented 1 month ago

Summary

After building the book, i noticed that the references to the different index.html files for each language don't always work as expected.

For example, i build a book with two languages en and ar with en being the main language. While i'm on the index.html file for the en version, if i try to navigate to the ar version, it'll open /ar/index.ar.html but this file doesn't exist. If you check within the ar folder, you'd only see an index.html file.

This is perfectly fine if we intend to host the different versions separately, but it poses an issue when we want them combined.

Example

I attached an example you explore to observe.

In this project below there are two langauges en and ar. en is the main language.

Here is the folder structure

Here's the dropdown reference to the ar version from the en index.html file Screenshot from 2024-05-29 09-27-19

Reference

Here's the link to the code example https://github.com/Open-Science-Community-Saudi-Arabia/JSquarto/blob/e3d67047f598209764bca2689b02f32246dd347e/docs/_book/index.html#L130-L135

maelle commented 2 weeks ago

see my answer to #42, I think renaming to qmd solves this? or I'm trying it out wrong locally :sweat_smile: