From 00d2c0cdaea972a1b24056aa86a2fe5e4414ec82 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 25 Dec 2024 19:30:27 +0100 Subject: [PATCH] Clone Docs `gh-pages` branch `--depth 1` (#18396) Signed-off-by: Glenn Jocher --- .github/workflows/docs.yml | 3 +-- docs/en/index.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8f426d5030..db6fe40663 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -88,9 +88,8 @@ jobs: - name: Publish Docs to https://docs.ultralytics.com if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_docs == 'true') run: | - git clone https://github.com/ultralytics/docs.git docs-repo + git clone --depth 1 --branch gh-pages https://github.com/ultralytics/docs.git docs-repo cd docs-repo - git checkout gh-pages || git checkout -b gh-pages rm -rf * cp -R ../site/* . echo "${{ secrets.INDEXNOW_KEY_DOCS }}" > "${{ secrets.INDEXNOW_KEY_DOCS }}.txt" diff --git a/docs/en/index.md b/docs/en/index.md index 1d52a315e3..63c400cb14 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -111,7 +111,7 @@ Explore the Ultralytics Docs, a comprehensive resource designed to help you unde *** - Ultralytics offers two licensing options for YOLO: AGPL-3.0 License and Enterprise License. Ultralytics is available on [GitHub](https://github.com/ultralytics/ultralytics) + Ultralytics offers two YOLO licenses: AGPL-3.0 and Enterprise. Explore YOLO on [GitHub](https://github.com/ultralytics/ultralytics). ***