Polyglot 1.11 - שחרור עם תיקונים שונים

Jekyll Polyglot 1.11.0 שוחרר. הוא כולל תיקונים לבאגים מורכבים שהיו מאתגרים לפתרון עד לאחרונה. שחרור זה אפשרי בזכות תורמים ומשתמשים כמוך.

תיקון קונפליקטים עם תבניות jekyll

תבניות jekyll אחרות כמו minimal-mistakes או chirpy משתמשות בדפוסי glob בהגדרות exclude: שהיו בעבר מתנגשים עם עיבוד polyglot של אתרים עם יחסיות URL. @mattions תרם תיקון ל-regex.escape ערכים אלה לפני שהם מיושמים על ביטויים רגולריים של יחסיות.

התאמה זו אמורה לעזור עם שימוש ב-polyglot מוכן לשימוש עם תבניות jekyll נפוצות אחרות.

תיקונים שונים אחרים

תמיכה ביפנית וערבית

לאתר polyglot יש כעת גרסאות תמיכה מתורגמות בערבית ויפנית. תרגומים אלה של האתר נעשו בעזרת בינה מלאכותית; אם משהו מתורגם לא נכון, אנא תרמו תיקונים טובים יותר!

Polyglot 1.10 - שיפורים ל-i18n_headers

Jekyll-Polyglot 1.10 זמין כעת. ישנם שיפורים ושינויים נרחבים בתוסף ה-liquid i18n_headers לשיפור SEO, וכן התאמות קטנות לאידמפוטנטיות בבנייה מקבילית. תרומות קהילתיות וכלי Vibe Coding סייעו בחלק גדול מהפיצ’רים, הבדיקות וכתיבת הפוסט הזה.

שיפורים ל-i18n_headers

התוסף i18n_headers כעת כולל יכולות מורחבות בגרסה זו:

  • הוא יוסיף <link rel="canonical" ...> לכל שפת עמוד, כך שהאינדוקס ייחודי בכל האתרים.
  • הוא יוסיף <link rel="alternate" hreflang="x-default" ...> שיפנה לגרסת ברירת המחדל של האתר כאשר הדפדפן לא מבקש שפה תואמת.
  • הוא יגדיר <link rel="alternate" hreflang="..."> נכון עבור עמודים ופוסטים באוספים עם permalinks מותאמים אישית.
  • כתובת ה-URL כברירת מחדל תכלול כעת את site.baseUrl אם מוגדר.

בנוסף, תוקן באג שגרם לרלטיביזציה של כתובות URL מוחלטות לשבש את התגים הללו בטעות.

תרומות vibe-coded

שימוש בכלי vibe coding עזר למצוא, למדוד ולאמת תיקוני באגים ופיצ’רים לגרסה זו. זו גישה חדשה לפיתוח תוכנה, שאפשרה כתיבת בדיקות Ruby מתקדמות לקוד תוספי Jekyll שרץ על אתרים בשפות רבות.

הבדיקות שנכתבו עם vibe coding עזרו לשמור על כיסוי בדיקות גבוה ולהוסיף פיצ’רים מורכבים בביטחון. אוטומציה של הבדיקות הבטיחה שפיצ’רים מסובכים ייבנו נכון.

בנוסף, כלי vibe coding עזרו לתרגם את הפוסט הזה לשפות רבות.

תרומות קהילתיות

Jekyll-Polyglot נתמך על ידי אנשים. תיעוד בשפות אנושיות נתרם על ידי אנשים שרוצים לראות את התוסף הזה מתועד בשפת האם שלהם. אנשים שתורמים תיקוני באגים ותיעוד עזרו לפלאגין הזה להגיע לאלפי הורדות בכל שחרור. תכנות בסיוע בינה מלאכותית, בידי או בידיך, יעצב את התוכנה בה נשתמש, ובשפות הרבות בהן נכתוב ונדבר.

נדרש ruby >= 3.1

עדכוני אבטחה שוטפים לתלויות הבנייה של jekyll-polyglot דרשו שדרוג גרסה עיקרית ל-ruby 3.1. זה עשוי להשפיע על מערכות בנייה שמבצעות בניית דוקומנטציה עם jekyll-polyglot. עכשיו זה זמן טוב לשדרג לגרסה העיקרית האחרונה של ruby. אנא פנו אם שינויים אלו גורמים לסיבוכים בבניית jekyll.

Polyglot 1.9.0 - Instructional Improvements

Jekyll-Polyglot 1.9.0 has been released, which has minor dependency updates, and instructional improvements for getting the most from your multi-language website.

Community provided instructional improvements

Thank you to aturret for helping to maintain the existing zh-CN site pages. 谢谢!

george-gca improved the optional derive_lang_from_path configuration to better identify document language from the path inference. Tests were added for his helpful feature improvement PR. This improvement helps infer the language of posts and pages missing lang frontmatter, from any part of the document filepath.

Github user yunseo-kim submitted a instructions to improve sitemap generation . To help with SEO, a website should have only one root sitemap.xml , and not have duplicates for each sub-language site. Be sure to add the sitemap.xml to the exclude_from_localization configuration.

Polyglot 1.8.1 - Community Bug Fixes Release

Jekyll-Polyglot 1.8.1 has been released, which has a few feature improvements and recognizes community found bugs and provided fixes.

Community provided bugfixes

hacketiwack provided a stricter check for setting a doc permalink, preventing downstream problems with empty frontmatter fields.

Github user blackpill submitted a one character bugfix for the i18n headers tag when rendering the default language link alternative href.

Polyglot 1.8.0 - Community Contributions Release

Get excited for Jekyll-Polyglot 1.8.0, which has a few feature improvements and recognizes community documentation and contributions!

One new feature is to give pages language specific permalinks and to retain their association to other relative pages. This new feature is again improved by antoniovazquezblanco, who is a gentleman and a scholar.

sitemap generation & i18n SEO

This release also recognizes the quality sitemap.xml and robots.txt solution provided by jerturowetz. This website now demonstrates and captures more SEO power by using these to be crawlable as a static jekyll website by search providers. See the example website files here.

jekyll :polyglot :post_write hook

Github user obfusk contributed a tiny PR a few years back:

With polyglot :site, :post_write like these run for each child processes:

Jekyll::Hooks.register :site, :post_write do |site|
  ...
end

This release adds a custom :post_write hook that runs exactly once, after all languages been processed (whether or not parallel_localization is used):

Jekyll::Hooks.register :polyglot, :post_write do |site|
  # do something amazing here!
end

This feature is helpful for complex jekyll static sites that make additional use of jekyll hook plugins.

She also contributed a fix for additional logging when language subprocesses crash. Thanks for this contribution!

localized variables and portuguese translation.

george-gca is a talented and awesome guy, contributing an entire blogpost on how best to localize rich text from site data. He also provided a site brazilian translation.