quarkusio / quarkusio.github.io

Website for Quarkus project
https://quarkus.io
160 stars 372 forks source link

Extract texts from jekyll html templates #1990

Closed ynojima closed 3 months ago

ynojima commented 4 months ago

To achieve localization of the quarkus.io website, we extract texts from .adoc and .md files, save them in .po files, translate the .po files, and then write it back during jekyll site build. However, some of the Jekyll HTML template files contain Jekyll directives, making it impossible for the text extraction parser to correctly process them. Currently, we achieve localization by manually replacing the entire template file with translated versions, but this method is cumbersome to follow for template file updates, resulting in poor maintainability. To address this HTML template file issue, we should rewrite these HTML template files loading texts from YAML files.

As of today, we need to rewrite these files:

pull-request: https://github.com/quarkusio/quarkusio.github.io/pull/1991