| 493 | }) |
| 494 | |
| 495 | const resolveConfigYML = (content: string) => |
| 496 | Effect.gen(function*() { |
| 497 | const config = yield* Configuration.Configuration |
| 498 | return content |
| 499 | .replace(/^remote_theme:.*$/m, `remote_theme: ${config.theme}`) |
| 500 | .replace( |
| 501 | /^search_enabled:.*$/m, |
| 502 | `search_enabled: ${config.enableSearch}` |
| 503 | ).replace( |
| 504 | /^ {2}'\S* on GitHub':\n {4}- '.*'/m, |
| 505 | ` '${config.projectName} on GitHub':\n - '${config.projectHomepage}'` |
| 506 | ) |
| 507 | }) |
| 508 | |
| 509 | const getHomepageNavigationHeader = (config: Configuration.ConfigurationShape): string => { |
| 510 | const isGitHub = config.projectHomepage.toLowerCase().includes("github") |