Skip to content

Commit f076c5e

Browse files
authored
Merge branch 'main' into melvynator-patch-2
2 parents a58d34e + 0bfc9ee commit f076c5e

File tree

139 files changed

+4307
-994
lines changed

Some content is hidden

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

139 files changed

+4307
-994
lines changed

.github/workflows/build-search.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Update Algolia Search
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
8+
workflow_dispatch:
9+
10+
schedule:
11+
- cron: '0 4 * * *'
12+
13+
env:
14+
PYTHONUNBUFFERED: 1 # Force the stdout and stderr streams to be unbuffered
15+
16+
jobs:
17+
update-search:
18+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'update search') && github.event.pull_request.base.ref == 'main'
19+
#if: contains(github.event.pull_request.labels.*.name, 'update search') # Updated to trigger directly on PRs with the label
20+
runs-on: ubuntu-latest
21+
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'
30+
31+
- name: Run Prep from Master
32+
run: yarn copy-clickhouse-repo-docs
33+
34+
- name: Run Auto Generate Settings
35+
run: yarn auto-generate-settings
36+
37+
- name: Run Indexer
38+
run: yarn run-indexer
39+
env:
40+
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
41+
ALGOLIA_APP_ID: 5H9UG7CX5W
42+
43+
- name: Verify Completion
44+
run: echo "All steps completed successfully!"

copyClickhouseRepoDocs.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ echo "[$SCRIPT_NAME] Copying completed"
3131

3232
echo "[$SCRIPT_NAME] Generate changelog"
3333
cp docs/en/_placeholders/changelog/_index.md docs/en/whats-new/changelog/index.md
34-
if grep -q '^# $(date +%Y) Changelog' ClickHouse/CHANGELOG.md; then
35-
sed '/^# $(date +%Y) Changelog/d' ClickHouse/CHANGELOG.md > temp.txt
36-
cat >> docs/en/whats-new/changelog/index.md
37-
rm temp.txt
34+
if grep -q "^# $(date +%Y) Changelog" ClickHouse/CHANGELOG.md; then
35+
echo "Generating $(date +%Y) Changelog..."
36+
sed "/^# $(date +%Y) Changelog/d" ClickHouse/CHANGELOG.md > temp.txt
37+
echo "Changelog copied to temp.txt"
38+
cat temp.txt >> docs/en/whats-new/changelog/index.md
39+
echo "Changelog written to docs/en/whats-new/changelog/index.md"
40+
rm -f temp.txt
3841
echo "$(date +%Y) Changelog was updated."
3942
else
4043
current_year="$(date +%Y)"

docs/en/_snippets/_add_remote_ip_access_list_detail.md

Lines changed: 2 additions & 2 deletions

docs/en/_snippets/_check_ip_access_list_detail.md

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

docs/en/_snippets/_clickhouse_mysql_cloud_setup.mdx

Lines changed: 30 additions & 5 deletions

docs/en/_snippets/_cloud_backup.md

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

docs/en/_snippets/_launch_sql_console.md

Lines changed: 5 additions & 1 deletion
Lines changed: 1 addition & 1 deletion

docs/en/_snippets/_sign_in_or_trial.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
346 KB

0 commit comments

Comments
 (0)