mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
![]() # Aider chat conversation: USER: make an html table for this jekyll site pulling data from `_data/leaderboard.csv` ASSISTANT: Here is the *SEARCH/REPLACE* block to add an HTML table to `docs/leaderboard.md` using data from `_data/leaderboard.csv`: docs/leaderboard.md ```markdown <<<<<<< SEARCH ``` ======= <table> <thead> <tr> <th>Model</th> <th>Second</th> <th>First</th> <th>Format</th> <th>Command</th> <th>Version</th> <th>Commit</th> <th>Date</th> </tr> </thead> <tbody> {% for row in site.data.leaderboard %} <tr> <td>{{ row.model }}</td> <td>{{ row.second }}</td> <td>{{ row.first }}</td> <td>{{ row.format }}</td> <td>{{ row.command }}</td> <td>{{ row.version }}</td> <td>{{ row.commit }}</td> <td>{{ row.date }}</td> </tr> {% endfor %} </tbody> </table> >>>>>>> REPLACE ``` This will: 1. Add an HTML `<table>` element 2. Define the table header row with column names matching the CSV 3. Loop through `site.data.leaderboard` (loaded from the CSV file) 4. Output a `<tr>` table row for each data row 5. Output `<td>` table cells for each column value When rendered by Jekyll, this will display the leaderboard data in an HTML table on the page. |
||
---|---|---|
.. | ||
benchmarks-0125.md | ||
benchmarks-1106.md | ||
benchmarks-speed-1106.md | ||
benchmarks.md | ||
commands.md | ||
conventions.md | ||
ctags.md | ||
docker.md | ||
faq.md | ||
install.md | ||
leaderboard.md | ||
llms.md | ||
repomap.md | ||
unified-diffs.md | ||
voice.md |