update
This commit is contained in:
parent
507ec45616
commit
71c1aeb355
11
Makefile
11
Makefile
@ -33,7 +33,7 @@ REDIRECTS = redirects
|
||||
SERVER_IP := $(shell ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
# Get all listening ports
|
||||
LISTENING_PORTS := $(shell ss -tuln | awk 'NR>1 {print $$4}' | awk -F: '{print $$NF}' | sort -n | uniq)
|
||||
|
||||
LOGFILE := $(BUILD_DIR)/live_server.log
|
||||
# Default port
|
||||
OPEN_PORTS := $(shell ss -tuln | awk 'NR>1 {print $$4}' | awk -F: '{print $$NF}' | sort -n | uniq)
|
||||
SELECTED_PORT := $(shell echo "$(OPEN_PORTS)" | awk 'NR==1')
|
||||
@ -64,15 +64,12 @@ clean:
|
||||
|
||||
html: $(HTML_BUILD_DIR)/_static/style.css
|
||||
@echo "Starting build..."
|
||||
$(SPHINX_BUILD) -q -c $(CONFIG_DIR) -b html $(SPHINXOPTS) $(SOURCE_DIR) $(HTML_BUILD_DIR)
|
||||
$(SPHINX_BUILD) -q -c $(CONFIG_DIR) -b html $(SPHINXOPTS) $(SOURCE_DIR) $(HTML_BUILD_DIR) >> $(LOGFILE)
|
||||
@echo "Build finished."
|
||||
|
||||
hot_reload: SPHINXOPTS += -A collapse_menu=True
|
||||
hot_reload:
|
||||
live: SPHINXOPTS += -A collapse_menu=True
|
||||
live:
|
||||
@echo "Starting Live Server..."
|
||||
@LAST_MODIFIED=$$(find $(SOURCE_DIR) -name "*.rst" | xargs ls -t | head -n1); \
|
||||
echo "Building changed file first: $$LAST_MODIFIED"; \
|
||||
$(SPHINXBUILD) -b html $(SOURCE_DIR) $(HTML_BUILD_DIR) -c $(CONFIG_DIR) -D master_doc=$$(basename $$LAST_MODIFIED .rst); \
|
||||
$(SPHINX_AUTO_BUILD) $(SOURCE_DIR) $(HTML_BUILD_DIR) \
|
||||
--port 8000 --host $(SERVER_IP) \
|
||||
--watch $(THEME) --watch $(LOCALE) --watch $(STATIC) --watch $(REDIRECTS) --watch $(THEME_STATIC) --watch . \
|
||||
|
@ -9,21 +9,21 @@ substitutions:
|
||||
```{toctree}
|
||||
:titlesonly: true
|
||||
|
||||
payment_providers/wire_transfer
|
||||
payment_providers/adyen
|
||||
payment_providers/amazon_payment_services
|
||||
payment_providers/asiapay
|
||||
payment_providers/authorize
|
||||
payment_providers/buckaroo
|
||||
payment_providers/demo
|
||||
payment_providers/flutterwave
|
||||
payment_providers/mercado_pago
|
||||
payment_providers/mollie
|
||||
payment_providers/paypal
|
||||
payment_providers/razorpay
|
||||
payment_providers/stripe
|
||||
payment_providers/worldline
|
||||
payment_providers/xendit
|
||||
payment-providers-wire-transfer
|
||||
payment-providers-adyen
|
||||
payment-providers-amazon-payment-services
|
||||
payment-providers-asiapay
|
||||
payment-providers-authorize
|
||||
payment-providers-buckaroo
|
||||
payment-providers-demo
|
||||
payment-providers-flutterwave
|
||||
payment-providers-mercado-pago
|
||||
payment-providers-mollie
|
||||
payment-providers-paypal
|
||||
payment-providers-razorpay
|
||||
payment-providers-stripe
|
||||
payment-providers-worldline
|
||||
payment-providers-xendit
|
||||
```
|
||||
|
||||
Odoo embeds several **payment providers** that allow your customers to pay online, on their
|
||||
|
51
fix-link.sh
Executable file
51
fix-link.sh
Executable file
@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if input file is provided
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 <input_file>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
input_file="$1"
|
||||
|
||||
# Check if file exists
|
||||
if [ ! -f "$input_file" ]; then
|
||||
echo "Error: File '$input_file' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Process each line of the input file
|
||||
while IFS= read -r line || [ -n "$line" ]; do
|
||||
# Skip empty lines
|
||||
[ -z "$line" ] && continue
|
||||
|
||||
# Extract filepath (everything before first colon)
|
||||
filepath=$(echo "$line" | cut -d: -f1)
|
||||
|
||||
# Extract status (WARNING)
|
||||
status="WARNING"
|
||||
|
||||
# Split based on different patterns
|
||||
if [[ "$line" =~ "WARNING: toctree contains reference to nonexisting document" ]]; then
|
||||
description="toctree contains reference to nonexisting document"
|
||||
data=$(echo "$line" | sed "s|^.*$description ||")
|
||||
elif [[ "$line" =~ "WARNING: undefined label:" ]]; then
|
||||
description="undefined label:"
|
||||
data=$(echo "$line" | sed "s|^.*$description ||")
|
||||
else
|
||||
# For the first line with deprecated substitutions
|
||||
description=$(echo "$line" | sed "s|^.*WARNING: ||" | sed "s| \[.*$||")
|
||||
data=$(echo "$line" | grep -o "\[.*$" | tr -d '[]')
|
||||
fi
|
||||
|
||||
# Replace /, \, and _ with - in data
|
||||
modified_data=$(echo "$data" | tr '/\\_' '-')
|
||||
|
||||
# Print the results
|
||||
echo "filepath = $filepath"
|
||||
echo "status = $status"
|
||||
echo "description = $description"
|
||||
echo "data = $modified_data"
|
||||
echo "-------------------"
|
||||
|
||||
done < "$input_file"
|
Loading…
Reference in New Issue
Block a user