Tucker McKnight <tmcknight@instructure.com> | Wed Jan 28 2026
Change sample config in readme and add a todo
32 33 34 35 36 37 38 39 40
+ eleventyConfig.addPlugin(repoViewer, {
+ repos: {
+ "My Cool Project": {
+ _type: "git",
+ location: "/home/me/code/cool-project",
+ defaultBranch: 'main',
+ branchesToPull: ['main', 'develop'],
+ },
+ },
+ path: "/repos",32 33 34 35 36 37 38 39
+ eleventyConfig.addPlugin(repoViewer, {
+ repos: {
+ "My Cool Project": {
+ location: "/home/me/code/cool-project",
+ defaultBranch: 'main',
+ branchesToPull: ['main', 'develop', 'release/**'],
+ },
+ },
+ path: "/repos",0 1 2
import repoViewer from "eleventy-plugin-repoviewer"
import eleventyRss from "@11ty/eleventy-plugin-rss"
import { RenderPlugin } from "@11ty/eleventy"
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"0 1 2
import repoViewer, {beforeHook} from "eleventy-plugin-repoviewer"
import eleventyRss from "@11ty/eleventy-plugin-rss"
import { RenderPlugin } from "@11ty/eleventy"
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
eleventyConfig.addPlugin(RenderPlugin)
eleventyConfig.addPlugin(syntaxHighlight)
eleventyConfig.addPlugin(repoViewer, {
baseUrl: "http://localhost",
repos: {
"eleventy-plugin-repoviewer": {
_type: "git",
defaultBranch: "main",
branchesToPull: ["main"],
location: "../",
}
}
})
};
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
eleventyConfig.addPlugin(RenderPlugin)
eleventyConfig.addPlugin(syntaxHighlight)
const reposConfig = {
baseUrl: "http://localhost",
repos: {
"eleventy-plugin-repoviewer": {
defaultBranch: "main",
branchesToPull: ["main"],
location: "../",
}
}
}
eleventyConfig.on("eleventy.beforeConfig", beforeHook(eleventyConfig, reposConfig))
eleventyConfig.addPlugin(repoViewer, reposConfig)
};
50 51 52 53 54
- Seems to print out all on one line right now.
- [ ] get rid of lodash
- lodash is one of the larger (largest?) dependencies right now. With mithril auto-escaping strings, it might not be necessary anymore. Look into which things actually need to be escaped (e.g. any user-input from commit messages) and see if we can just rely on mithril to escape those
### Completed
50 51 52 53 54 55
- Seems to print out all on one line right now.
- [ ] get rid of lodash
- lodash is one of the larger (largest?) dependencies right now. With mithril auto-escaping strings, it might not be necessary anymore. Look into which things actually need to be escaped (e.g. any user-input from commit messages) and see if we can just rely on mithril to escape those
- [ ] make the useDefaultTemplate option actually be used
### Completed