Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions linkcheckerrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ ignoreerrors=
^https://www.baeldung.com/maven-wrapper$ ^403 Forbidden
^https://dzone\.com/.*$ ^403 Forbidden
^https://docs\.pimcore\.com/.*$ ^403 Forbidden
^https://(?:www\.)?perplexity\.ai/.*$ ^403 Forbidden
^https:// ^ReadTimeout
29 changes: 14 additions & 15 deletions search/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 20 additions & 12 deletions search/post_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ getDocsData() {

# remove the previous headers log
if [ -f "data/platform-headers.txt" ]; then
rm data/platform-headers.txt
rm data/platform-headers.txt || echo "Failed to delete platform-headers.txt"
fi

if [ -f "data/upsun-headers.txt" ]; then
rm data/upsun-headers.txt
rm data/upsun-headers.txt || echo "Failed to delete upsun-headers.txt"
fi

# Get the updated index for docs
Expand Down Expand Up @@ -61,41 +61,48 @@ getDocsData() {
fi

# Delete templates index in the mount if it exists
rm -f data/platform_templates.yaml
rm -f data/upsun_templates.yaml
rm -f data/platform_templates.yaml || echo "Failed to delete platform_templates.yaml"
rm -f data/upsun_templates.yaml || echo "Failed to delete upsun_templates.yaml"

# Get the updated index for templates
curl -s "${PLATFORM_DOCS_URL}files/indexes/templates.yaml" >> data/platform_templates.yaml
curl -s "${PLATFORM_DOCS_URL}files/indexes/templates.yaml" >> data/platform_templates.yaml || echo "Failed to retrieve templates.yaml"

# @todo: For now, reuse the same index. To be removed entirely.
cp data/platform_templates.yaml data/upsun_templates.yaml
cp data/platform_templates.yaml data/upsun_templates.yaml || echo "Failed to copy templates.yaml"
}

update_index(){
echo "* UPDATING INDEX"
POETRY_LOCATION=/app/.local/bin/poetry
# Create indices for templates and docs
$POETRY_LOCATION run python createPrimaryIndex.py platform
$POETRY_LOCATION run python createPrimaryIndex.py upsun
$POETRY_LOCATION run python createPrimaryIndex.py platform || echo "Failed to run CreatePrimayIndex for platform"
$POETRY_LOCATION run python createPrimaryIndex.py upsun || echo "Failed to run CreatePrimayIndex for upsun"

# Update indexes
$POETRY_LOCATION run python main.py platform
$POETRY_LOCATION run python main.py upsun
$POETRY_LOCATION run python main.py platform || echo "Failed to run main.py for platform"
$POETRY_LOCATION run python main.py upsun || echo "Failed to run main.py for upsun"
}

save_headers() {
docs="${1}"
timestamp=$(date +%Y-%m-%d-%H-%M-%S)
if [ -f "./data/${docs}-headers.txt" ]; then
#rename the file so we can examine it
mv "./data/${docs}-headers.txt" "./data/${docs}-headers-${timestamp}.txt"
mv "./data/${docs}-headers.txt" "./data/${docs}-headers-${timestamp}.txt" || printf "Failed to rename %s\n" "${docs}-headers.txt"
echo "Header responses for ${docs} saved."
else
echo "Header response log file for ${docs} is missing! Unable to save."
fi
}

set -e
# 20251121 - PFG - Product changed how results for activities are reported. If this post deploy script exits with anything
# other than 0 - say an exit 60 because curl hit a cert issue - then the deploy/activate activity is marked as a failure.
# given the state of the environment's deployment is more important than the success of this post-deploy script, the
# suggestion is that we make sure scripts exit with 0. It's possible they will change this behavior, so for now, we'll
# remove set -e to prevent the script from exiting and prevent us from determining if the environment deployed. Our E2E
# tests should catch if the indexes failed to generate correctly. Once they change the behavior, we should be able to
# come back here and re-enable set -e
# set -e

cleanup

Expand All @@ -109,3 +116,4 @@ cleanup

getDocsData
update_index
exit 0
2 changes: 1 addition & 1 deletion search/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Attribution-ShareAlike 4.0 International"
[tool.poetry.dependencies]
python = "^3.10"
cryptography = "^44.0.1"
Scrapy = "^2.11.2"
Scrapy = "^2.13.4"
meilisearch = "^0.24.0"
platformshconfig = "^2.3.1"
PyYAML = "^6.0"
Expand Down
1 change: 1 addition & 0 deletions shared/data/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,7 @@
},
"versions-dedicated-gen-2": {
"supported": [
"9.9",
"9.7",
"9.6",
"9.4",
Expand Down
11 changes: 7 additions & 4 deletions sites/platform/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sites/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"axios": "^1.8.2",
"express": "^4.21.2",
"fs-extra": "^11.1.1",
"js-yaml": "^4.1.0",
"js-yaml": "^4.1.1",
"mermaid": "^11.10.0",
"octokit": "^3.1.2",
"platformsh-config": "^2.4.1",
Expand Down
4 changes: 2 additions & 2 deletions sites/platform/src/development/email.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Changing the setting rebuilds the environment.

## 2. Recommended: Improve deliverability

Improve deliverability of your email with [Sender Policy Framework (SPF)](https://docs.sendgrid.com/ui/account-and-settings/spf-records).
Improve deliverability of your email with [Sender Policy Framework (SPF)](https://www.twilio.com/docs/sendgrid/glossary/spf).
If you don't have an SPF record, add the following `TXT` record to your domain's DNS records:

```txt
Expand All @@ -76,7 +76,7 @@ If you're on an Enterprise or Elite plan,
you can request for DomainKeys Identified Mail (DKIM) to be enabled on your domain.

DKIM improves your delivery rate as an email sender.
Learn more about [how DKIM works](https://docs.sendgrid.com/glossary/dkim).
Learn more about [how DKIM works](https://www.twilio.com/docs/sendgrid/glossary/dkim).

To have DKIM enabled for your domain:

Expand Down
4 changes: 2 additions & 2 deletions sites/upsun/src/development/email.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Changing the setting rebuilds the environment.

## 2. Recommended: Improve deliverability

Improve deliverability of your email with [Sender Policy Framework (SPF)](https://docs.sendgrid.com/ui/account-and-settings/spf-records).
Improve deliverability of your email with [Sender Policy Framework (SPF)](https://www.twilio.com/docs/sendgrid/glossary/spf).
If you don't have an SPF record, add the following `TXT` record to your domain's DNS records:

```txt
Expand All @@ -74,7 +74,7 @@ If you already have an SPF record, please add SendGrid into your existing record
You can request for DomainKeys Identified Mail (DKIM) to be enabled on your domain.

DKIM improves your delivery rate as an email sender.
Learn more about [how DKIM works](https://docs.sendgrid.com/glossary/dkim).
Learn more about [how DKIM works](https://www.twilio.com/docs/sendgrid/glossary/dkim).

To have DKIM enabled for your domain:

Expand Down
Loading