From 659637fccb4eaae142a452ee370b2701b1e05376 Mon Sep 17 00:00:00 2001 From: Sheng Hau Date: Wed, 22 May 2024 13:55:48 +0800 Subject: [PATCH] chore: list environment variables in the readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 768607ac..b2f58f4b 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,23 @@ nvm install nvm use ``` +#### Environment variables (Optional) +| Variable Name | Description | Default | +| ------------- | ----------- | ------- | +| PURPLE_A11Y_VERBOSE_STORAGE_PATH | Location for storing generated reports | Current working directory | +| PURPLE_A11Y_VERBOSE | When set to `true`, log output goes to console | `false` | +| RUNNING_FROM_PH_GUI | | `false` | +| REPORT_BREAKDOWN | Further breakdown reports according to their respective impact level | `false` | +| WARN_LEVEL | seems to be used as a global variable. Only used in tests. | | + +#### Environment variables used internally (DO NOT SET) +| Variable Name | Description | +| ------------- | ----------- | +| CRAWLEE_LOG_LEVEL | https://crawlee.dev/docs/guides/configuration#crawlee_log_level | +| CRAWLEE_STORAGE_DIR | https://crawlee.dev/docs/guides/configuration#crawlee_storage_dir | +| CRAWLEE_HEADLESS | https://crawlee.dev/docs/guides/configuration#crawlee_headless | + + #### Facing issues? Please refer to [Troubleshooting section](#troubleshooting) for more information. @@ -68,6 +85,7 @@ Purple A11y can perform the following to scan the target URL. > - Windows (PowerShell): `rm "$env:APPDATA\Purple A11y\userData.txt"` > - MacOS (Terminal): `rm "$HOME/Library/Application Support/Purple A11y/userData.txt"` +> - Linux (Terminal): `rm ~/.config/purple-ally/userData.txt` If `userData.txt` does not exists just run `node index`. @@ -208,7 +226,7 @@ Custom flow allows you to record a series of actions in the browser and re-play Sitemap Website ❯ Custom - ``` +``` 1. Specify the URL of the starting page you wish to scan 2. A Chrome and Playwright Inspector window will appear. Navigate through the pages you would like to conduct an accessibility scan.