Include an example 11ty site that uses this plugin

2c5c836e743d55d318a00a0197bc6fd7a72a9496

Tucker McKnight <tmcknight@instructure.com> | Sun Sep 28 2025

Include an example 11ty site that uses this plugin
example_site/eleventy.config.js:0
Before




















⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
After
-1
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import repoViewer from "eleventy-plugin-repo-viewer"
import eleventyRss from "@11ty/eleventy-plugin-rss"
import { RenderPlugin } from "@11ty/eleventy"
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"

export default async function(eleventyConfig) {
  eleventyConfig.addPlugin(eleventyRss)
  eleventyConfig.addPlugin(RenderPlugin)
  eleventyConfig.addPlugin(syntaxHighlight)

  eleventyConfig.addPlugin(repoViewer, {
    baseUrl: "http://localhost",
    repos: {
      "eleventy-plugin-repoviewer": {
        _type: "git",
        defaultBranch: "main",
        branchesToPull: ["main"],
        location: "../eleventy-plugin-repoviewer",
      }
    }
  })
};
example_site/package.json:0
Before











⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
After
-1
0
1
2
3
4
5
6
7
8
9
10
11
{
  "name": "eleventy-repoviewer-example-site",
  "version": "1.0.0",
  "description": "A sample 11ty site that uses eleventy-plugin-repoviewer to display a git repository. In this case, the git repository being displayed is eleventy-plugin-repoviewer itself.",
  "license": "ISC",
  "author": "Tucker McKnight",
  "type": "module",
  "dependencies": {
    "@11ty/eleventy": "^3.1.2",
    "@11ty/eleventy-plugin-rss": "^2.0.4",
    "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.2",
    "eleventy-repo-viewer": "file:../eleventy-plugin-repoviewer"
  }
}