This is an automated email from the ASF dual-hosted git repository.

kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new 0ce9b16280 infra: cleanup remove unused functions from site/ script 
(#14466)
0ce9b16280 is described below

commit 0ce9b16280b9c496b97557b3bf7973d627b337bc
Author: Kevin Liu <[email protected]>
AuthorDate: Sat Nov 1 16:35:13 2025 -0700

    infra: cleanup remove unused functions from site/ script (#14466)
---
 site/dev/common.sh | 50 --------------------------------------------------
 1 file changed, 50 deletions(-)

diff --git a/site/dev/common.sh b/site/dev/common.sh
index 9fa14c53a3..04310c0ca6 100755
--- a/site/dev/common.sh
+++ b/site/dev/common.sh
@@ -34,36 +34,6 @@ create_or_update_docs_remote () {
   git fetch "${REMOTE}"
 }
 
-# Pulls updates from a specified branch of a remote repository.
-# Arguments:
-#   $1: Branch name to pull updates from
-pull_remote () {
-  echo " --> pull remote"
-
-  local BRANCH="$1"
-
-  # Ensure the branch argument is not empty
-  assert_not_empty "${BRANCH}"  
-
-  # Perform a pull from the specified branch of the remote repository
-  git pull "${REMOTE}" "${BRANCH}"  
-}
-
-# Pushes changes from a local branch to a specified branch of a remote 
repository.
-# Arguments:
-#   $1: Branch name to push changes to
-push_remote () {
-  echo " --> push remote"
-
-  local BRANCH="$1"
-
-  # Ensure the branch argument is not empty
-  assert_not_empty "${BRANCH}"  
-
-  # Push changes to the specified branch of the remote repository
-  git push "${REMOTE}" "${BRANCH}"  
-}
-
 # Installs or upgrades dependencies specified in the 'requirements.txt' file 
using pip.
 install_deps () {
   echo " --> install deps"
@@ -187,26 +157,6 @@ update_version () {
 
 }
 
-# Excludes versioned documentation from search indexing by modifying .md files.
-# Arguments:
-#   $1: ICEBERG_VERSION - The version number of the documentation to exclude 
from search indexing.
-search_exclude_versioned_docs () {
-  local ICEBERG_VERSION="$1"
-
-  # Ensure ICEBERG_VERSION is not empty
-  assert_not_empty "${ICEBERG_VERSION}"
-
-  echo " --> search exclude version docs"
-
-  cd "${ICEBERG_VERSION}/docs/"
-
-  # Modify .md files to exclude versioned documentation from search indexing
-  python3 -c "import os
-for f in filter(lambda x: x.endswith('.md'), os.listdir()): lines = 
open(f).readlines(); open(f, 'w').writelines(lines[:2] + ['search:\n', '  
exclude: true\n'] + lines[2:]);"
-
-  cd -
-}
-
 # Sets up local worktrees for the documentation and performs operations 
related to different versions.
 pull_versioned_docs () {
   echo " --> pull versioned docs"

Reply via email to