aider/docs
Paul Gauthier 4825808f85 aider: Added an HTML table to display leaderboard data from _data/leaderboard.csv in the Jekyll site.
# 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.
2024-05-03 14:51:31 -07:00
..
benchmarks-0125.md added images 2024-02-19 17:46:30 -08:00
benchmarks-1106.md added images 2024-02-19 17:46:30 -08:00
benchmarks-speed-1106.md canonical_url 2024-02-23 08:54:38 -08:00
benchmarks.md added images 2024-02-19 17:46:30 -08:00
commands.md Added /web to commands doc 2024-02-08 14:39:18 -08:00
conventions.md instructions->conventions 2024-02-24 07:16:29 -08:00
ctags.md layout 2024-02-19 14:56:35 -08:00
docker.md Added libportaudio2 to the docker container 2023-10-18 13:38:41 -07:00
faq.md copy 2024-04-29 20:42:44 -07:00
install.md copy 2024-05-02 08:31:13 -07:00
leaderboard.md aider: Added an HTML table to display leaderboard data from _data/leaderboard.csv in the Jekyll site. 2024-05-03 14:51:31 -07:00
llms.md copy 2024-05-02 11:34:38 -07:00
repomap.md added images 2024-02-19 17:46:30 -08:00
unified-diffs.md copy 2024-02-24 14:51:52 -08:00
voice.md copy 2023-09-25 12:25:22 -07:00