From 5523a7a1d96fefee988d51c6edc6d550014d640d Mon Sep 17 00:00:00 2001 From: hugogogo Date: Wed, 18 Nov 2026 10:17:10 +0100 Subject: [PATCH] improve readme clarity --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5693368..2d37ac2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -### instructions +## instructions - start server with php, and browser-sync for auto reload : - `npm run dev` @@ -6,8 +6,12 @@ - install apps : `sudo apt update && sudo apt install php-cli nodejs npm` - verify : `php -v` & `node -v` & `npm -v` - install dependencies : `npm ci` -- -> only for info, at project creation setup : + +### [only for info] at project creation, the following actions where done, no need to do them again + +- creates package.json and installs browser-sync as a dev dependency (already done, `npm ci` restores it) : - run : `npm init -y && npm install --save-dev browser-sync` +- adds the `dev` script to package.json > scripts, this is the command behind `npm run dev` : - add in package.jsons > scripts : `php -S localhost:8000 & browser-sync start --proxy localhost:8000 --files "**/*.php,**/*.css,**/*.js" --port 3000` - `php -S localhost:8000` → starts PHP built-in server - `&` → runs PHP server in the background (Linux/macOS) @@ -17,13 +21,13 @@ --- -### ressources +## ressources html validator : https://validator.w3.org/nu --- -### difficulties +## difficulties - [accessibility with ascii art titles](https://stackoverflow.com/questions/77537096/make-text-in-ascii-art-more-accessible) - I finally decided to go with a structure like this :