Tucker McKnight <tmcknight@instructure.com> | Thu Feb 19 2026
Make repo page use commonPage
43 44 45 46 47 48
const readmeContent = await renderContentIfAvailable(await getReadMe(repo.name, branch.name), branch.name)
return [
m('div', {class: "row"}, [
m('div', {class: "col"}, [
m('div', {class: "px-4 pt-3 bezel-header"}, [43 44 45 46 47 48
const readmeContent = await renderContentIfAvailable(await getReadMe(repo.name, branch.name), branch.name)
const pageContent = [
m('div', {class: "row"}, [
m('div', {class: "col"}, [
m('div', {class: "px-4 pt-3 bezel-header"}, [116 117 118
m('div', {class: "col readme"}, m.trust(readmeContent))
)
]
}116 117 118 119 120
m('div', {class: "col readme"}, m.trust(readmeContent))
)
]
return await htmlPage(reposConfig, eleventyConfig, data, pageContent)
}12 13 14 15 16 17
import {Ajv} from 'ajv'
import ConfigSchema from './schemas/ReposConfiguration.json' with { type: 'json' }
import commonPage from './js_templates/common/commonPage.ts'
// import repoJsTemplate from './js_templates/repo.ts'
// import filesJsTemplate from './js_templates/files.ts'
import fileJsTemplate from './js_templates/file.ts'
import commitJsTemplate from './js_templates/commit.ts'12 13 14 15 16 17
import {Ajv} from 'ajv'
import ConfigSchema from './schemas/ReposConfiguration.json' with { type: 'json' }
import commonPage from './js_templates/common/commonPage.ts'
import repoJsTemplate from './js_templates/repo.ts'
// import filesJsTemplate from './js_templates/files.ts'
import fileJsTemplate from './js_templates/file.ts'
import commitJsTemplate from './js_templates/commit.ts'