docs: readme

Maas Lalani created

Change summary

README.md | 34 ++++++++++++++++++++++------------
1 file changed, 22 insertions(+), 12 deletions(-)

Detailed changes

README.md 🔗

@@ -24,7 +24,9 @@ open invoice.pdf
 
 <img width="574" alt="Example invoice" src="https://github.com/maaslalani/nap/assets/42545625/13153de2-dfa1-41e6-a18e-4d3a5cea5b74">
 
-Save repeated information with environment variables or in an overridable JSON file:
+### Environment
+
+Save repeated information with environment variables:
 
 ```bash
 export INVOICE_LOGO=/path/to/image.png
@@ -34,16 +36,6 @@ export INVOICE_TAX=0.13
 export INVOICE_RATE=25
 ```
 
-```json
-{
-	"logo": "/path/to/image.png",
-	"from": "Dream, Inc.",
-	"to": "Imagine, Inc.",
-	"tax": 0.13,
-	"rates": 25
-}
-```
-
 Generate new invoice:
 
 ```bash
@@ -53,8 +45,26 @@ invoice generate \
     --note "For debugging purposes." \
     --output duck-invoice.pdf
 ```
+
+### Configuration File
+
+Or, save repeated information with JSON / YAML:
+
+```json
+{
+    "logo": "/path/to/image.png",
+    "from": "Dream, Inc.",
+    "to": "Imagine, Inc.",
+    "tax": 0.13,
+    "rates": 25
+}
+```
+
+Generate new invoice by importing the configuration file:
+
 ```bash
-invoice generate --import path/to/data.json --output duck-invoice.pdf
+invoice generate --import path/to/data.json \
+    --output duck-invoice.pdf
 ```
 
 ### Custom Templates