Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffchuber committed Jul 31, 2023
1 parent 3467fa9 commit fd1ea19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.tmp
Empty file removed .tmp
Empty file.
30 changes: 0 additions & 30 deletions scripts/pythonDocs.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
pydoc-markdown

# new_section=$(cat <<EOF
# ---
# sidebar_label: Client
# title: Client
# sidebar_position: 1
# ---
# EOF
# )

# new_section=${new_section//$'\n'/\\n}

# # write to a file
# echo "$new_section" > docs/reference/Client.md

# file1 = "docs/reference/__init__/__init__.md"
# file2 = "docs/reference/api/__init__.md"

# # append the contents of file 1 to Client.md, but only after the 2nd case of "---"
# sed -i.bak -e '/---/N;/---/N;s/---\n/---\n'"$new_section"'\n/' "$file1"
# # sed -i.bak -e '/---/N;/---/N;s/---\n/---\n'"$new_section"'\n/' "$file2"
# # sed -i.bak -e ':a' -e 'N' -e '$!ba' -e 's/---\n.*\n---/'"$new_section2"'/g' "$file2"

# # append file1 and file2 to Client.md
# # cat docs/reference/__init__/__init__.md docs/reference/api/__init__.md > docs/reference/Client.md

# # now remove file1 and file2
# rm $file1
# rm $file2


# Function to remove the block from the given file
remove_block() {
sed -e '/^---$/,/^---$/d' "$1" > "$1.tmp"
Expand Down

0 comments on commit fd1ea19

Please sign in to comment.