@@ -34,36 +34,6 @@ create_or_update_docs_remote () {
3434 git fetch " ${REMOTE} "
3535}
3636
37- # Pulls updates from a specified branch of a remote repository.
38- # Arguments:
39- # $1: Branch name to pull updates from
40- pull_remote () {
41- echo " --> pull remote"
42-
43- local BRANCH=" $1 "
44-
45- # Ensure the branch argument is not empty
46- assert_not_empty " ${BRANCH} "
47-
48- # Perform a pull from the specified branch of the remote repository
49- git pull " ${REMOTE} " " ${BRANCH} "
50- }
51-
52- # Pushes changes from a local branch to a specified branch of a remote repository.
53- # Arguments:
54- # $1: Branch name to push changes to
55- push_remote () {
56- echo " --> push remote"
57-
58- local BRANCH=" $1 "
59-
60- # Ensure the branch argument is not empty
61- assert_not_empty " ${BRANCH} "
62-
63- # Push changes to the specified branch of the remote repository
64- git push " ${REMOTE} " " ${BRANCH} "
65- }
66-
6737# Installs or upgrades dependencies specified in the 'requirements.txt' file using pip.
6838install_deps () {
6939 echo " --> install deps"
@@ -187,26 +157,6 @@ update_version () {
187157
188158}
189159
190- # Excludes versioned documentation from search indexing by modifying .md files.
191- # Arguments:
192- # $1: ICEBERG_VERSION - The version number of the documentation to exclude from search indexing.
193- search_exclude_versioned_docs () {
194- local ICEBERG_VERSION=" $1 "
195-
196- # Ensure ICEBERG_VERSION is not empty
197- assert_not_empty " ${ICEBERG_VERSION} "
198-
199- echo " --> search exclude version docs"
200-
201- cd " ${ICEBERG_VERSION} /docs/"
202-
203- # Modify .md files to exclude versioned documentation from search indexing
204- python3 -c " import os
205- 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:]);"
206-
207- cd -
208- }
209-
210160# Sets up local worktrees for the documentation and performs operations related to different versions.
211161pull_versioned_docs () {
212162 echo " --> pull versioned docs"
0 commit comments