Skip to content

Commit 76fb63b

Browse files
committed
Merge branch 'main' into tp/system-table-clickpipes-blurb
2 parents dda58c9 + c1fa615 commit 76fb63b

File tree

8,840 files changed

+317766
-219763
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,840 files changed

+317766
-219763
lines changed

.github/workflows/badges-notify.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Weekly Badge Monitor
2+
3+
on:
4+
schedule:
5+
# Run every Monday at 10:00 AM Amsterdam time (UTC+1/+2)
6+
# Using 8:00 UTC to account for Amsterdam time (adjusts for DST)
7+
- cron: '0 8 * * 1'
8+
workflow_dispatch: # Allow manual triggering
9+
10+
jobs:
11+
monitor-badges:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Make script executable
19+
run: chmod +x scripts/badger.sh
20+
21+
- name: Run badge finder script
22+
id: find_badges
23+
run: |
24+
# Run the script and capture output
25+
SCRIPT_OUTPUT=$(scripts/badger.sh)
26+
27+
# Escape the output for JSON and store in GitHub output
28+
# Replace newlines with \n and escape quotes
29+
ESCAPED_OUTPUT=$(echo "$SCRIPT_OUTPUT" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
30+
31+
echo "badges_output<<EOF" >> $GITHUB_OUTPUT
32+
echo "$ESCAPED_OUTPUT" >> $GITHUB_OUTPUT
33+
echo "EOF" >> $GITHUB_OUTPUT
34+
35+
- name: Send webhook
36+
env:
37+
WEBHOOK_URL: ${{ secrets.DOCS_BADGER }}
38+
BADGES_OUTPUT: ${{ steps.find_badges.outputs.badges_output }}
39+
run: |
40+
# Create JSON payload
41+
JSON_PAYLOAD=$(cat <<EOF
42+
{
43+
"badges_list": "$BADGES_OUTPUT"
44+
}
45+
EOF
46+
)
47+
48+
# Send webhook
49+
curl -X POST \
50+
-H "Content-Type: application/json" \
51+
-d "$JSON_PAYLOAD" \
52+
"$WEBHOOK_URL"
53+
54+
- name: Log completion
55+
run: |
56+
echo "Badge monitoring completed successfully"
57+
echo "Webhook sent to configured endpoint"

.github/workflows/check-build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,10 @@ jobs:
2424
if: matrix.check_type == 'spellcheck'
2525
run: sudo apt-get update && sudo apt-get install -y aspell aspell-en
2626
- name: Set up Python
27-
if: matrix.check_type == 'kbcheck'
28-
uses: actions/setup-python@v5
29-
with:
30-
python-version: '3.x'
31-
- name: Install dependencies
3227
if: matrix.check_type == 'kbcheck'
3328
run: |
34-
python -m pip install --upgrade pip
35-
pip install -r 'scripts/knowledgebase-checker/requirements.txt'
29+
curl -Ls https://astral.sh/uv/install.sh | sh
30+
uv python install 3.12
3631
- name: Setup md-lint environment
3732
if: matrix.check_type == 'md-lint'
3833
uses: actions/setup-node@v3
@@ -47,13 +42,13 @@ jobs:
4742
id: check_step
4843
run: |
4944
if [[ "${{ matrix.check_type }}" == "spellcheck" ]]; then
50-
./scripts/check-doc-aspell
45+
yarn check-spelling
5146
exit_code=$?
5247
elif [[ "${{ matrix.check_type }}" == "kbcheck" ]]; then
53-
./scripts/knowledgebase-checker/knowledgebase_article_checker.py --kb-dir="knowledgebase"
48+
yarn check-kb
5449
exit_code=$?
5550
elif [[ "${{ matrix.check_type }}" == "md-lint" ]]; then
56-
yarn markdownlint-cli2 --config ./scripts/.markdownlint-cli2.yaml 'docs/**/*.md'
51+
yarn check-markdown
5752
exit_code=$?
5853
fi
5954

.github/workflows/linkcheck.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/pull-request.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: PullRequestCI
2+
3+
env:
4+
# Force the stdout and stderr streams to be unbuffered
5+
PYTHONUNBUFFERED: 1
6+
7+
on: # yamllint disable-line rule:truthy
8+
pull_request:
9+
types:
10+
- synchronize
11+
- reopened
12+
- opened
13+
14+
# Cancel the previous wf run in PRs.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
DocsCheck:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v3
25+
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: '20' # Adjust Node.js version as needed
30+
cache: 'yarn' # Cache yarn dependencies
31+
32+
- name: Install dependencies
33+
run: yarn install --frozen-lockfile
34+
35+
- name: Build
36+
id: build
37+
continue-on-error: true
38+
run: |
39+
DOCUSAURUS_IGNORE_SSG_WARNINGS=true yarn build
40+
echo "exit_code=$?" >> $GITHUB_OUTPUT
41+
42+
- name: Check for validation failures
43+
if: success() || failure() # Run regardless of build success
44+
run: |
45+
FAILED=false
46+
47+
if [ -f ".frontmatter-validation-failed" ]; then
48+
echo "::error::Frontmatter validation failed"
49+
FAILED=true
50+
fi
51+
52+
if [ -f ".floating-pages-validation-failed" ]; then
53+
echo "::error::Floating pages validation failed"
54+
FAILED=true
55+
fi
56+
57+
# Check if build failed with non-validation error
58+
if [ "${{ steps.build.outputs.exit_code }}" != "0" ] && [ "$FAILED" != "true" ]; then
59+
echo "::error::Build failed with exit code ${{ steps.build.outputs.exit_code }}"
60+
exit 1
61+
fi
62+
63+
if [ "$FAILED" = true ]; then
64+
exit 1
65+
fi

.github/workflows/pull-request.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/table_of_contents.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/trigger-build.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)