(argv)
| 154 | } |
| 155 | |
| 156 | async function main(argv) { |
| 157 | let currentReadme = await fs.readFile(readmePath, { encoding: "utf-8" }); |
| 158 | |
| 159 | let pendingReadme = currentReadme; |
| 160 | pendingReadme = await updateSectionWith({ |
| 161 | from: currentReadme, |
| 162 | to: pendingReadme, |
| 163 | name: "setup", |
| 164 | path: "docs/basic/setup.md", |
| 165 | withToc: true, |
| 166 | relativeHeadingLevel: 1, |
| 167 | }); |
| 168 | pendingReadme = await updateSectionWith({ |
| 169 | from: currentReadme, |
| 170 | to: pendingReadme, |
| 171 | name: "basic-type-examples", |
| 172 | path: "docs/basic/getting-started/basic-type-examples.md", |
| 173 | }); |
| 174 | pendingReadme = await updateSectionWith({ |
| 175 | from: currentReadme, |
| 176 | to: pendingReadme, |
| 177 | name: "function-components", |
| 178 | path: "docs/basic/getting-started/function-components.md", |
| 179 | }); |
| 180 | pendingReadme = await updateSectionWith({ |
| 181 | from: currentReadme, |
| 182 | to: pendingReadme, |
| 183 | name: "hooks", |
| 184 | path: "docs/basic/getting-started/hooks.md", |
| 185 | }); |
| 186 | pendingReadme = await updateSectionWith({ |
| 187 | from: currentReadme, |
| 188 | to: pendingReadme, |
| 189 | name: "class-components", |
| 190 | path: "docs/basic/getting-started/class-components.md", |
| 191 | }); |
| 192 | pendingReadme = await updateSectionWith({ |
| 193 | from: currentReadme, |
| 194 | to: pendingReadme, |
| 195 | name: "default-props", |
| 196 | path: "docs/basic/getting-started/default-props.md", |
| 197 | showHeading: false, |
| 198 | }); |
| 199 | pendingReadme = await updateSectionWith({ |
| 200 | from: currentReadme, |
| 201 | to: pendingReadme, |
| 202 | name: "forms-and-events", |
| 203 | path: "docs/basic/getting-started/forms-and-events.md", |
| 204 | }); |
| 205 | pendingReadme = await updateSectionWith({ |
| 206 | from: currentReadme, |
| 207 | to: pendingReadme, |
| 208 | name: "context", |
| 209 | path: "docs/basic/getting-started/context.md", |
| 210 | }); |
| 211 | pendingReadme = await updateSectionWith({ |
| 212 | from: currentReadme, |
| 213 | to: pendingReadme, |
nothing calls this directly
no test coverage detected