From c99f8760b6851559b6656ea27eb9fc645fddaa03 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 2 Apr 2020 17:33:16 +0200 Subject: Add better formatting --- docs/updating.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/updating.md') diff --git a/docs/updating.md b/docs/updating.md index afb29da..204d0a2 100644 --- a/docs/updating.md +++ b/docs/updating.md @@ -4,7 +4,7 @@ If you want to improve or update an existing recipe, please follow this guide. Please **do not** simply change files inside `uncompressed` - Ferdi only uses the packaged archives, the uncompressed files are only to improve accessibility of the repository. -0. Find the recipe ID of the recipe you want to update +## 0. Find the recipe ID of the recipe you want to update Before you can start updating the recipe, you'll need to know its internal ID. The ID is a string of lowercase letters and hyphens that Ferdi uses to store and manage them. @@ -12,7 +12,7 @@ To find the recipe ID, you can search " with the ID of the recipe you want to edit. -1. Implement your updates +## 1. Implement your updates We highly suggest that you implement and test your updates to the recipe inside Ferdi before implementing them into the recipe repository. This will save you time on debugging and repackaging the recipe later. @@ -23,7 +23,7 @@ You can find the recipe source Ferdi uses at: After changing the files in that folder, you can reload the service inside Ferdi using `CTRL/CMD + R`. -2. Setting up the recipe repository +## 2. Setting up the recipe repository - Fork https://github.com/getferdi/recipes and clone it to your computer - Open a terminal in the `scripts/` folder of that repository @@ -31,7 +31,7 @@ After changing the files in that folder, you can reload the service inside Ferdi This will setup the repository so that you can work on updating it. -3. Loading and updating the recipe +## 3. Loading and updating the recipe Again, please **do not** edit any of the files located inside the `uncompressed` folder! Before editing, you'll need to "load" the recipe you want to edit using ```JavaScript @@ -41,12 +41,12 @@ yarn load Your recipe is now loaded into `scripts/recipe_src`. You can now make changes to the files **in that folder*. -4. Updating the version number +## 4. Updating the version number In order for Ferdi to update its recipe, you'll need to bump its version number. Increase the `version` inside `scripts/recipe_src/package.json`. -5. Re-packaging the recipe +## 5. Re-packaging the recipe You can now run `yarn package` to repackage your updated files. Your changes will be automatically copied into the recipe source at `uncompressed` and compressed into `archives/.tar.gz` - no need to update anything manually! -6. Commit your changes and create a PR to +## 6. Commit your changes and create a PR to -- cgit v1.2.3-54-g00ecf