Ver Fonte

fix: change readme generation

Sv443 há 11 meses atrás
pai
commit
ec7ded9696
3 ficheiros alterados com 5 adições e 0 exclusões
  1. 2 0
      README-summary.md
  2. 2 0
      README.md
  3. 1 0
      src/tools/gen-readme.ts

+ 2 - 0
README-summary.md

@@ -4,6 +4,7 @@
 
 ### Lots of configurable layout and user experience improvements for YouTube Music™
 Supported Languages: 🇩🇪 German, 🇺🇸 English (US), 🇬🇧 English (UK), 🇪🇸 Spanish, 🇫🇷 French, 🇮🇳 Hindi, 🇯🇵 Japanese, 🇵🇹 Portuguese, 🇨🇳 Chinese (simpl.)
+<!-- END OF GENERATED CONTENT -->
 <!-- </{{HEADER}}> -->
 [**Features**](#features) • [**Installation**](#installation) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
   
@@ -73,6 +74,7 @@ BetterYTM supports plugin userscripts that can be installed in parallel and can
 <!-- THIS IS GENERATED CONTENT - DO NOT MODIFY DIRECTLY -->
 Currently there are no available plugins, but you can [submit an issue using the plugin submission template](https://github.com/Sv443/BetterYTM/issues/new/choose) so it will be listed here.  
 Also refer to the [plugin creation guide](./contributing.md#developing-a-plugin-that-interfaces-with-betterytm) for more information on how to use the API to create a plugin.
+<!-- END OF GENERATED CONTENT -->
 <!-- </{{PLUGINS}}> -->
 
 <br><br>

+ 2 - 0
README.md

@@ -5,6 +5,7 @@
 
 ### Lots of configurable layout and user experience improvements for YouTube Music™
 Supported Languages: 🇩🇪&nbsp;German, 🇺🇸&nbsp;English (US), 🇬🇧&nbsp;English (UK), 🇪🇸&nbsp;Spanish, 🇫🇷&nbsp;French, 🇮🇳&nbsp;Hindi, 🇯🇵&nbsp;Japanese, 🇵🇹&nbsp;Portuguese, 🇨🇳&nbsp;Chinese (simpl.)
+<!-- END OF GENERATED CONTENT -->
 <!-- </{{HEADER}}> -->
 [**Features**](#features) • [**Installation**](#installation) • [**Plugins**](#plugins) • [**Support**](#support) • [**Development**](#development) • [**Attributions**](#attributions) • [**Disclaimers**](#disclaimers)
   
@@ -77,6 +78,7 @@ BetterYTM supports plugin userscripts that can be installed in parallel and can
 <!-- THIS IS GENERATED CONTENT - DO NOT MODIFY DIRECTLY -->
 Currently there are no available plugins, but you can [submit an issue using the plugin submission template](https://github.com/Sv443/BetterYTM/issues/new/choose) so it will be listed here.  
 Also refer to the [plugin creation guide](./contributing.md#developing-a-plugin-that-interfaces-with-betterytm) for more information on how to use the API to create a plugin.
+<!-- END OF GENERATED CONTENT -->
 <!-- </{{PLUGINS}}> -->
 
 <br><br>

+ 1 - 0
src/tools/gen-readme.ts

@@ -66,6 +66,7 @@ async function modifyReadme(readmeLines: string[], changes: Record<string, () =>
     retLines.push(...lines.splice(0, beginLine + 1));
     retLines.push("<!-- THIS IS GENERATED CONTENT - DO NOT MODIFY DIRECTLY -->");
     retLines.push(...newContent.split(/\r?\n/gm));
+    retLines.push("<!-- END OF GENERATED CONTENT -->");
     retLines.push(...lines.splice(endLine - beginLine - 1));
 
     lines = [...retLines];