This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new 5fb33ce78 docs: remove copy rust/python docs (#3044)
5fb33ce78 is described below
commit 5fb33ce78837c1b2ad434692c4051569535133a6
Author: Shawn Yang <[email protected]>
AuthorDate: Thu Dec 11 11:46:17 2025 +0800
docs: remove copy rust/python docs (#3044)
## Why?
## What does this PR do?
## Related issues
## Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
---
.github/scripts/add_doc_headers.sh | 108 -------------------------------------
.github/workflows/sync.yml | 4 --
2 files changed, 112 deletions(-)
diff --git a/.github/scripts/add_doc_headers.sh
b/.github/scripts/add_doc_headers.sh
deleted file mode 100755
index 5e34d4aa0..000000000
--- a/.github/scripts/add_doc_headers.sh
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-
-# Function to add frontmatter header to a guide file
-add_header() {
- local SOURCE_FILE=$1
- local DEST_FILE=$2
- local HEADER_CONTENT=$3
-
- echo "Processing $SOURCE_FILE -> $DEST_FILE"
-
- # Resolve symlink if it is one
- if [ -L "$DEST_FILE" ]; then
- SOURCE_FILE=$(readlink -f "$DEST_FILE" 2>/dev/null || readlink
"$DEST_FILE")
- echo "Resolved symlink to: $SOURCE_FILE"
- fi
-
- if [ -f "$SOURCE_FILE" ]; then
- # Create file with header and source content
- echo "$HEADER_CONTENT" > "$DEST_FILE"
- cat "$SOURCE_FILE" >> "$DEST_FILE"
- echo "Successfully created $DEST_FILE with header"
- else
- echo "Warning: $SOURCE_FILE not found"
- fi
-}
-
-# Python guide header
-PYTHON_HEADER=$(cat << 'EOF'
----
-title: Python Serialization
-sidebar_position: 1
-id: python_serialization
-license: |
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
----
-
-EOF
-)
-
-# Rust guide header
-RUST_HEADER=$(cat << 'EOF'
----
-title: Rust Serialization
-sidebar_position: 2
-id: rust_serialization
-license: |
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
----
-
-EOF
-)
-
-# Process Python guide
-rm -rf docs/guide/python_guide.md
-add_header "python/README.md" "docs/guide/python_guide.md" "$PYTHON_HEADER"
-
-# Process Rust guide
-rm -rf docs/guide/rust_guide.md
-add_header "rust/README.md" "docs/guide/rust_guide.md" "$RUST_HEADER"
-git config --global user.email "[email protected]"
-git config --global user.name "Apache Fory"
-git add docs/guide/rust_guide.md
-git add docs/guide/python_guide.md
-git commit -m "Added rust and python docs"
\ No newline at end of file
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml
index 4fd69d59e..a920ef65d 100644
--- a/.github/workflows/sync.yml
+++ b/.github/workflows/sync.yml
@@ -28,10 +28,6 @@ jobs:
if: github.repository == 'apache/fory'
steps:
- uses: actions/checkout@v5
-
- - name: Add headers to guide files
- run: bash .github/scripts/add_doc_headers.sh
-
- name: Sync files
uses:
betahuhn/repo-file-sync-action@8b92be3375cf1d1b0cd579af488a9255572e4619
with:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]