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
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
andar
withen
being the main language. While i'm on theindex.html
file for theen
version, if i try to navigate to thear
version, it'll open/ar/index.ar.html
but this file doesn't exist. If you check within thear
folder, you'd only see anindex.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
andar
.en
is the main language.Here is the folder structure
Here's the dropdown reference to the
ar
version from theen
index.html fileReference
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