We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90969da commit 7c54ac1Copy full SHA for 7c54ac1
build/update-readme.ts
@@ -0,0 +1,14 @@
1
+/*-----------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See LICENSE file in the project root for license information.
4
+ *-----------------------------------------------------------------------------------------------*/
5
+
6
+import { readFileSync, writeFileSync } from 'fs-extra';
7
8
+const readme = readFileSync('./README.md');
9
10
+const lines = `${readme}`.split('\n');
11
12
+const index = lines.findIndex((line) => line.includes('## Overview'));
13
+lines.splice(0, index + 1);
14
+writeFileSync('./README.md', lines.join('\n'));
0 commit comments