03d אתר Jekyll בעברית מפרומפט אחד


Codex בונה בתיקיית WSL, בודק בדפדפן ומפרסם ל־GitHub Pages

פותחים תיקייה ריקה ב־WSL ונותנים ל־Codex להקים בה אתר קטן לחומרי לימוד. בהדגמה נראה איך דף Markdown הופך לשיעור שאפשר לבדוק בדפדפן ולשלוח לתלמידים כקישור.

Codex יוצר את המאגר, ו־Jekyll טוען את העיצוב של Minimal Mistakes דרך ההגדרה remote_theme. ההגדרה direction: rtl מפעילה את התמיכה המובנית של התבנית בכתיבה מימין לשמאל. דפי השיעור נשמרים במאגר של המורה. התקנה של Minimal Mistakes כתֵמה מרוחקת · הגדרת כיוון הכתיבה

לפני שמדביקים את הפרומפט

  1. ב־Codex פתחו את File>Create project. יופיע המסך שבתמונה
  2. תנו לפרויקט שם, למשל JekyllGithubPages.

    פתיחת פרויקט ב־Codex ויצירת תיקיית מקור חדשה במערכת הקבצים של Ubuntu

  3. תחת Source folders בחרו Add a folder on this computer ולחצו על Add. בחלון בחירת התיקייה נווטו לתיקייה שמכילה את כל הפרוייקטים שלכם ב-wsl. כאן בדוגמא זו התיקיה repos.
  4. לחצו על New folder, תנו לתיקייה הריקה שם כמו JekyllGithubPages,
  5. בחרו בה עם Select Folder.
  6. לחצו על Create project, פתחו שיחה בפרויקט והדביקו את הפרומפט כפי שהוא. אם Sol 6.2 זמין, אפשר לבחור בו. Codex ישתמש בתיקייה שצירפתם ויפרסם את תוכן הדמה במאגר ציבורי חדש בחשבון GitHub שמחובר מתוך WSL.

בהדגמה אני משתמש במחשב שבו Ubuntu, Git, Ruby ו־Bundler כבר עובדים. לפרסום דרושה גם התחברות ל־GitHub מתוך WSL. במחשב חדש ייתכן שתידרש התקנה ראשונית או התחברות. מי שנתקע בשלב הזה יכול להתחיל ממסלול הפרסום של 03b ולחזור לתצוגה המקומית בהמשך. מיקום קבצים ב־WSL

הפרומפט ל־Codex

Create a local Git repository at the root of the empty WSL Ubuntu source
folder already attached to this Codex project. Initialize it with main as
the default branch. Use that folder as the Jekyll site root.

I authorize you to create and edit the project files, run commands in Ubuntu,
download dependencies, and install missing prerequisites needed for the local
preview, including Git, Ruby, Bundler, and required build packages. Reuse what
is already installed. Use the normal approval flow if an installation requires
administrator approval. Set up the project with Bundler and commit Gemfile.lock.

Use remote_theme: mmistakes/minimal-mistakes@4.28.1 with jekyll-remote-theme
and jekyll-include-cache. Set locale: he and direction: rtl in _config.yml
to use the theme's built-in RTL support. Create a Hebrew homepage, two linked
Markdown lessons with fictional content, and a short README for editing and
previewing. Include a table and a mixed Hebrew/code example. Keep English
passages, URLs, inline commands, and code blocks LTR, adding small overrides
only where the rendered result needs them.

Use the attached folder's name for the GitHub repository and identify the owner
from the personal GitHub account authenticated in WSL. Check whether that name
is available and use an available suffix if needed. I authorize you to create
the new public repository, commit and push main, and configure GitHub Pages
with Actions. Use the actual repository name for the Pages project base path
so navigation and assets work on both localhost and the published site.

Build and preview locally with bundle exec jekyll serve. Check the layout,
navigation, and mixed-direction content on desktop and mobile. Publish, watch
the Actions run, and open the public homepage and a lesson via the menu. When
a build, deployment, link, or layout check fails, diagnose it, fix it, and
rerun the affected checks. Push fixes and verify the live result again. Report
the local, repo, and public URLs and any checks you could not run. If blocked
by something you cannot resolve, give the exact blocker and action I need to take.

בסיום פתחו את הקישור הציבורי ש־Codex מחזיר, עברו מדף הבית לשיעור דרך התפריט ובדקו את העברית ואת דוגמת הקוד.

שינוי ראשון עם Codex

בקשו מ־Codex להוסיף שאלת תרגול לשיעור ולשנות את הכותרת שמופיעה בתפריט. רעננו את התצוגה המקומית ובדקו שהעברית, הקוד והניווט עדיין נראים כמו שצריך. כך אפשר לבדוק שינוי אמיתי יחד לפני שמעלים אותו לאתר של התלמידים.