({version, dateYMD, tag, body, commitCount})
| 122 | } |
| 123 | |
| 124 | function scaffoldS2Docs({version, dateYMD, tag, body, commitCount}) { |
| 125 | let year = new Date().getFullYear(); |
| 126 | return `${licenseHeader(year)} |
| 127 | |
| 128 | import {InstallCommand} from '../../../src/InstallCommand'; |
| 129 | |
| 130 | import {Layout} from '../../../src/Layout'; |
| 131 | export default Layout; |
| 132 | |
| 133 | import docs from 'docs:@react-spectrum/s2'; |
| 134 | |
| 135 | export const hideNav = true; |
| 136 | export const section = 'Releases'; |
| 137 | export const tags = ['release', '${tag}']; |
| 138 | export const date = '${prettyDate(dateYMD)}'; |
| 139 | export const title = 'v${version}'; |
| 140 | export const description = '[TODO: 1–2 sentence highlights summary]'; |
| 141 | export const isSubpage = true; |
| 142 | |
| 143 | # v${version} |
| 144 | |
| 145 | [TODO: intro paragraph] |
| 146 | |
| 147 | {/* Commits: ${commitCount} */} |
| 148 | ## Changelog |
| 149 | |
| 150 | ${body} |
| 151 | |
| 152 | ## Released packages |
| 153 | |
| 154 | \`\`\` |
| 155 | [TODO: paste output of yarn bumpVersions here] |
| 156 | \`\`\` |
| 157 | `; |
| 158 | } |
| 159 | |
| 160 | function resolveTag(pkgName, pkgVersion) { |
| 161 | let exact = `${pkgName}@${pkgVersion}`; |
no test coverage detected