You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2022/12/29 13:00:51 UTC
[pulsar-site] branch main updated: Stop sync docs from main repo (#348)
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new adae529dc23 Stop sync docs from main repo (#348)
adae529dc23 is described below
commit adae529dc23202ceac70a029f330884be9f457a8
Author: tison <wa...@gmail.com>
AuthorDate: Thu Dec 29 21:00:46 2022 +0800
Stop sync docs from main repo (#348)
Signed-off-by: tison <wa...@gmail.com>
---
tools/pytools/bin/site-updater.py | 3 ---
tools/pytools/lib/execute/site_syncer.py | 38 --------------------------------
2 files changed, 41 deletions(-)
diff --git a/tools/pytools/bin/site-updater.py b/tools/pytools/bin/site-updater.py
index 9daf93a4860..6c56f2b967b 100755
--- a/tools/pytools/bin/site-updater.py
+++ b/tools/pytools/bin/site-updater.py
@@ -25,7 +25,6 @@ from pathlib import Path
from command import run, find_command, run_pipe
from constant import root_path
-from execute import site_syncer
class Mode(enum.Enum):
@@ -84,8 +83,6 @@ if __name__ == '__main__':
else:
master = Path(args.master_path)
- site_syncer.execute(master)
-
if _should_push(args.push):
_do_push(master, root_path())
else: # show changes
diff --git a/tools/pytools/lib/execute/site_syncer.py b/tools/pytools/lib/execute/site_syncer.py
deleted file mode 100644
index 3dd5837d454..00000000000
--- a/tools/pytools/lib/execute/site_syncer.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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.
-
-import shutil
-from pathlib import Path
-
-from constant import site_path
-from execute import swagger_sorter
-
-
-def execute(master: Path):
- main = master / 'site2'
- site = site_path()
-
- shutil.copytree(main / 'docs', site / 'docs', dirs_exist_ok=True)
- shutil.copytree(site / 'docs' / 'assets', site / 'static' / 'assets', dirs_exist_ok=True)
- shutil.rmtree(site / 'docs' / 'assets')
-
- main = main / 'website'
- shutil.copytree(main / 'versioned_docs', site / 'versioned_docs', dirs_exist_ok=True)
- shutil.copytree(main / 'versioned_sidebars', site / 'versioned_sidebars', dirs_exist_ok=True)
- shutil.copy2(main / 'sidebars.json', site / 'sidebars.json')
- shutil.copy2(main / 'versions.json', site / 'versions.json')
- shutil.copy2(main / 'releases.json', site / 'releases.json')