From 24c6bbf68f366784e6fdb1ddcb21b326070ddf6b Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 9 Aug 2024 02:24:21 +0200 Subject: [PATCH] `ultralytics 8.2.75` new Docs author profiles (#15050) Signed-off-by: Glenn Jocher --- docs/mkdocs_github_authors.yaml | 2 +- docs/overrides/stylesheets/style.css | 63 ++++++++++++++++++++++++++++ mkdocs.yml | 1 + pyproject.toml | 2 +- ultralytics/__init__.py | 2 +- 5 files changed, 67 insertions(+), 3 deletions(-) diff --git a/docs/mkdocs_github_authors.yaml b/docs/mkdocs_github_authors.yaml index 2ea9b856619..b02dd37caf7 100644 --- a/docs/mkdocs_github_authors.yaml +++ b/docs/mkdocs_github_authors.yaml @@ -2,7 +2,7 @@ 1185102784@qq.com: Laughing-q 130829914+IvorZhu331@users.noreply.github.com: IvorZhu331 135830346+UltralyticsAssistant@users.noreply.github.com: UltralyticsAssistant -1579093407@qq.com: null +1579093407@qq.com: YOLOv5-Magic 17216799+ouphi@users.noreply.github.com: ouphi 17316848+maianumerosky@users.noreply.github.com: maianumerosky 34196005+fcakyon@users.noreply.github.com: fcakyon diff --git a/docs/overrides/stylesheets/style.css b/docs/overrides/stylesheets/style.css index b0c43e71c54..56f8adeef0e 100644 --- a/docs/overrides/stylesheets/style.css +++ b/docs/overrides/stylesheets/style.css @@ -102,3 +102,66 @@ div.highlight { } } /* Banner (same as the one on the Ultralytics website) -------------------------------------------------------------- */ + + +/* MkDocs Ultralytics Plugin ---------------------------------------------------------------------------------------- */ +.git-info, .share-buttons { + font-size: 0.8em; + color: grey; + display: flex; + align-items: center; + justify-content: flex-end; + margin-bottom: 10px; +} +.dates { + display: flex; + align-items: center; +} +.dates span, .author-link, .share-button { + cursor: pointer; + display: flex; + align-items: center; +} +.dates span { + margin-right: 10px; +} +.hover-item { + transition: all 0.2s ease; + filter: grayscale(100%); +} +.dates .hover-item { + font-size: 1.6em; + margin-right: 5px; +} +.author-link .hover-item { + width: 50px; + height: 50px; + border-radius: 50%; + margin-right: 1px; +} +.hover-item:hover { + transform: scale(1.2); + filter: grayscale(0%); +} +.share-button { + background-color: #1da1f2; + color: white; + padding: 6px 12px; + border-radius: 5px; + border: none; + font-size: 0.95em; + margin-left: 5px; + transition: all 0.2s ease; +} +.share-button:hover { + transform: scale(1.1); + filter: brightness(1.2); +} +.share-button.linkedin { + background-color: #0077b5; +} +.share-button i { + margin-right: 5px; + font-size: 1.1em; +} +/* MkDocs Ultralytics Plugin ---------------------------------------------------------------------------------------- */ diff --git a/mkdocs.yml b/mkdocs.yml index eb150fd7a1d..45b786bc117 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -640,6 +640,7 @@ plugins: add_authors: True add_json_ld: True add_share_buttons: True + add_css: False default_image: https://raw.githubusercontent.com/ultralytics/assets/main/yolov8/banner-yolov8.png - mkdocs-jupyter - redirects: diff --git a/pyproject.toml b/pyproject.toml index 2a0c9b3bd60..57f4cf32c2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,7 @@ dev = [ "mkdocstrings[python]", "mkdocs-jupyter", # for notebooks "mkdocs-redirects", # for 301 redirects - "mkdocs-ultralytics-plugin>=0.0.49", # for meta descriptions and images, dates and authors + "mkdocs-ultralytics-plugin>=0.1.0", # for meta descriptions and images, dates and authors ] export = [ "onnx>=1.12.0", # ONNX export diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py index 4b6386f0d73..39b0aa64d9c 100644 --- a/ultralytics/__init__.py +++ b/ultralytics/__init__.py @@ -1,6 +1,6 @@ # Ultralytics YOLO 🚀, AGPL-3.0 license -__version__ = "8.2.74" +__version__ = "8.2.75" import os