Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#19875 Adopt H1 headers for Docs page HTML <title>

Merged
Glenn Jocher merged 1 commits into Ultralytics:main from ultralytics:docs-titles
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // YOLO models chart ---------------------------------------------------------------------------------------------------
 // YOLO models chart ---------------------------------------------------------------------------------------------------
 const data = {
 const data = {
   //  YOLO12: {
   //  YOLO12: {
Discard
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // Apply theme colors based on dark/light mode
 // Apply theme colors based on dark/light mode
 const applyTheme = (isDark) => {
 const applyTheme = (isDark) => {
   document.body.setAttribute(
   document.body.setAttribute(
Discard
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // Giscus functionality
 // Giscus functionality
 function loadGiscus() {
 function loadGiscus() {
   const giscusContainer = document.getElementById("giscus-container");
   const giscusContainer = document.getElementById("giscus-container");
Discard
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // tablesort.filesize.min.js
 // tablesort.filesize.min.js
 !(function () {
 !(function () {
   function r(t) {
   function r(t) {
Discard
@@ -1,5 +1,6 @@
-<!--Ultralytics YOLO ๐Ÿš€, AGPL-3.0 license-->
+<!-- Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license -->
 
 
+<!--Site announcement bar-->
 {% extends "base.html" %} {% block announce %}
 {% extends "base.html" %} {% block announce %}
 <div class="banner-wrapper">
 <div class="banner-wrapper">
   <div
   <div
@@ -16,3 +17,13 @@
   </div>
   </div>
 </div>
 </div>
 {% endblock %}
 {% endblock %}
+
+<!--Page titles-->
+{% block htmltitle %} {% if page.toc|first is defined %} {% set
+page_specific_title = page.toc.items[0].title %} {% else %} {% set
+page_specific_title = page.title | striptags %} {% endif %}
+<title>
+  {%- if page_specific_title -%} {{ page_specific_title }} - {{ config.site_name
+  }} {%- else -%} {{ config.site_name }} {%- endif -%}
+</title>
+{% endblock %}
Discard
@@ -1,3 +1,5 @@
+<!-- Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license -->
+
 {% if page.meta.comments %}
 {% if page.meta.comments %}
 <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
 <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
 
 
Discard
@@ -1,3 +1,5 @@
+/* Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license */
+
 /* Table format like GitHub ----------------------------------------------------------------------------------------- */
 /* Table format like GitHub ----------------------------------------------------------------------------------------- */
 th,
 th,
 td {
 td {
Discard
@@ -1,4 +1,5 @@
 # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
 # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 # This is file for Ultralytics Solutions tests: https://docs.ultralytics.com/solutions/,
 # This is file for Ultralytics Solutions tests: https://docs.ultralytics.com/solutions/,
 # It includes every solution excluding DistanceCalculation and Security Alarm System.
 # It includes every solution excluding DistanceCalculation and Security Alarm System.
 
 
Discard
@@ -1,22 +1,23 @@
 # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
 # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
 
 
 from pathlib import Path
 from pathlib import Path
+from typing import List, Optional, Union
 
 
 from ultralytics import SAM, YOLO
 from ultralytics import SAM, YOLO
 
 
 
 
 def auto_annotate(
 def auto_annotate(
-    data,
-    det_model="yolo11x.pt",
-    sam_model="sam_b.pt",
-    device="",
-    conf=0.25,
-    iou=0.45,
-    imgsz=640,
-    max_det=300,
-    classes=None,
-    output_dir=None,
-):
+    data: Union[str, Path],
+    det_model: str = "yolo11x.pt",
+    sam_model: str = "sam_b.pt",
+    device: str = "",
+    conf: float = 0.25,
+    iou: float = 0.45,
+    imgsz: int = 640,
+    max_det: int = 300,
+    classes: Optional[List[int]] = None,
+    output_dir: Optional[Union[str, Path]] = None,
+) -> None:
     """
     """
     Automatically annotate images using a YOLO object detection model and a SAM segmentation model.
     Automatically annotate images using a YOLO object detection model and a SAM segmentation model.
 
 
Discard
@@ -1,5 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-# Ultralytics YOLO ๐Ÿš€, AGPL-3.0 license
+# Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 # Download latest models from https://github.com/ultralytics/assets/releases
 # Download latest models from https://github.com/ultralytics/assets/releases
 # Example usage: bash ultralytics/data/scripts/download_weights.sh
 # Example usage: bash ultralytics/data/scripts/download_weights.sh
 # parent
 # parent
Discard
@@ -1,5 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-# Ultralytics YOLO ๐Ÿš€, AGPL-3.0 license
+# Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 # Download COCO 2017 dataset https://cocodataset.org
 # Download COCO 2017 dataset https://cocodataset.org
 # Example usage: bash data/scripts/get_coco.sh
 # Example usage: bash data/scripts/get_coco.sh
 # parent
 # parent
Discard
@@ -1,5 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-# Ultralytics YOLO ๐Ÿš€, AGPL-3.0 license
+# Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 # Download COCO128 dataset https://www.kaggle.com/ultralytics/coco128 (first 128 images from COCO train2017)
 # Download COCO128 dataset https://www.kaggle.com/ultralytics/coco128 (first 128 images from COCO train2017)
 # Example usage: bash data/scripts/get_coco128.sh
 # Example usage: bash data/scripts/get_coco128.sh
 # parent
 # parent
Discard
@@ -1,5 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-# Ultralytics YOLO ๐Ÿš€, AGPL-3.0 license
+# Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 # Download ILSVRC2012 ImageNet dataset https://image-net.org
 # Download ILSVRC2012 ImageNet dataset https://image-net.org
 # Example usage: bash data/scripts/get_imagenet.sh
 # Example usage: bash data/scripts/get_imagenet.sh
 # parent
 # parent
Discard
@@ -1,4 +1,5 @@
 # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
 # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 from collections.abc import Callable
 from collections.abc import Callable
 from types import SimpleNamespace
 from types import SimpleNamespace
 from typing import Any, List, Optional
 from typing import Any, List, Optional
Discard