eclipse-kanto / kanto

Kanto
https://eclipse.dev/kanto
Other
20 stars 7 forks source link

Code snippets in Eclipse Kanto public documentation are not displayed properly #57

Closed ognian-baruh closed 2 months ago

ognian-baruh commented 2 years ago

The code snippets in the Getting Started guides in the Eclipse Kanto public documentation are not formatted as code and therefore cannot be copied via the "Copy" button in the top right corner.

The affected pages in the documentation are:

daniel-milchev commented 2 years ago

I'll have a look at this.

daniel-milchev commented 2 years ago

The problem with these code snippets is related to Hugo version 101. "prism.js", "prism.css" and "tabpane-persist,js" are not found in the "scripts.html" file because the baseURL is not prepend to the relURL.

This issue is related with google/docsy#1114.

chalin commented 2 years ago

Hi all. FYI, I've merged a fix: https://github.com/google/docsy/pull/1127. Could you try it out and offer some feedback?

It seems to work when I build your site (still using Hugo v0.101.0):

image
daniel-milchev commented 2 years ago

The problem with the code snippets has been resolved google/docsy#1127

konstantina-gramatova commented 2 years ago

The issue will be resolved when Kanto's website is migrated to Hugo modules enabling to update it to the latest Docsy released version that includes this fix (when available) (see #110). Also the downgrade of Hugo workaround (#72) will be discarded along this migration.

k-gostev commented 2 months ago

Kanto's website is now migrated to Hugo Modules and this issue is resolved