Skip to content

Commit 9819cd0

Browse files
OPDATA-4084 rename known-issues.md to custom.md in docs generator & related updates (#4467)
* OPDATA-4084 rename known-issues.md to custom.md in docs generator & related updates * add changeset * Update .changeset/pretty-chefs-lie.md
1 parent cdbf09d commit 9819cd0

File tree

23 files changed

+14
-9
lines changed

23 files changed

+14
-9
lines changed

.changeset/pretty-chefs-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/ea-scripts': minor
3+
---
4+
5+
Updating known-issues to custom in readme generator

packages/scripts/src/generate-readme/generator.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ export class ReadmeGenerator {
102102
license: string
103103
frameworkVersion: 'v2' | 'v3'
104104
frameworkVersionBadgeUrl: string
105-
knownIssuesPath: string
106-
knownIssuesSection: string | null
105+
customPath: string
106+
customSection: string | null
107107

108108
constructor(adapter: WorkspaceAdapter, verbose = false) {
109109
this.verbose = verbose
@@ -133,7 +133,7 @@ export class ReadmeGenerator {
133133
this.frameworkVersionBadgeUrl = `https://img.shields.io/badge/framework%20version-${this.frameworkVersion}-blueviolet`
134134
this.license = packageJson.license ?? ''
135135

136-
this.knownIssuesPath = this.adapterPath + 'docs/known-issues.md'
136+
this.customPath = this.adapterPath + 'docs/custom.md'
137137
this.schemaPath = this.adapterPath + 'schemas/env.json'
138138
this.rateLimitsPath = this.adapterPath + 'src/config/limits.json'
139139
this.integrationTestPath = this.adapterPath + 'test/integration/*.test.ts'
@@ -209,8 +209,8 @@ export class ReadmeGenerator {
209209
this.defaultEndpoint = adapter.defaultEndpoint ?? ''
210210
}
211211

212-
if (fs.existsSync(this.knownIssuesPath)) {
213-
this.knownIssuesSection = getMdFile(this.knownIssuesPath) || null
212+
if (fs.existsSync(this.customPath)) {
213+
this.customSection = getMdFile(this.customPath) || null
214214
}
215215
}
216216

@@ -219,7 +219,7 @@ export class ReadmeGenerator {
219219

220220
try {
221221
this.addIntroSection()
222-
this.addKnownIssuesSection()
222+
this.addCustomSection()
223223
this.addEnvVarSection()
224224
this.addRateLimitSection()
225225
this.addInputParamsSection()
@@ -242,9 +242,9 @@ export class ReadmeGenerator {
242242
this.readmeText += `${genSig}\n\n`
243243
}
244244

245-
addKnownIssuesSection(): void {
246-
if (this.verbose) console.log(`${this.adapterPath}: Adding known issues`)
247-
if (this.knownIssuesSection) this.readmeText += `${this.knownIssuesSection}\n\n`
245+
addCustomSection(): void {
246+
if (this.verbose) console.log(`${this.adapterPath}: Adding custom section`)
247+
if (this.customSection) this.readmeText += `${this.customSection}\n\n`
248248
}
249249

250250
addEnvVarSection(): void {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)