Skip to content

Commit d20da5c

Browse files
committed
update readme
1 parent 922e47f commit d20da5c

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

custom-css-analysis-and-migration/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ When Bloom encounters a pre-5.7 book with a `customBookStyles.css` that would co
1818

1919
`./some-path/BloomBulkDownloader.exe --include "*/*/custom*Styles.css" --syncfolder ./output/downloads --bucket production customBookStyles-files`
2020

21-
1. Process those, grouping them into bins of duplicate stylesheets
21+
Each of the following take an optional argument that will limit the number of records processed.
2222

23-
`bun run group-stylesheets.ts 13`
23+
5. Process those, grouping them into bins of duplicate stylesheets
2424

25-
Here the number is optional and it limits how many stylesheets will be processed.
25+
`bun run group-stylesheets.ts 13`
2626

2727
1. Process those groups, discarding ones that don't need migration
2828

29-
`bun run filter-stylesheets.ts`
29+
`bun run filter-stylesheets.ts 7`
3030

3131
1. Create draft migration files for each one
3232

33-
`bun run create-migrations.ts`
33+
`bun run create-migrations.ts 3`

custom-css-analysis-and-migration/create-migrations.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,12 @@ for (const record of records) {
6666
fs.writeFileSync(
6767
`${folder}/appearance.json`,
6868
`// Matches customBookStyles.css with checksum ${checksum}
69-
// This was used by ${record.book_count} books (${record.unique_named_books} unique).` +
70-
// todo: +`// Affected branding projects include "Mali-ACR-2020-Soninke".`
69+
// This was used by ${record.book_count} books (${record.unique_named_books} unique).` +
70+
// enhance: +`// Affected branding projects include "Mali-ACR-2020-Soninke".`
7171
`// Uploaders included ${JSON.stringify(uniqueUploaders)}.
72-
// Example Book: ${record.first_book}
73-
// A replacement customBookStyles.css has been generated.
74-
{
75-
}
76-
`
72+
// Example Book: ${record.first_book}
73+
// A replacement customBookStyles.css has been generated.
74+
{
75+
}`
7776
);
7877
}

0 commit comments

Comments
 (0)