mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
Mkdocs updates (#8008)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
9d35ecbf0f
commit
afc5dcb3f9
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -67,6 +67,7 @@ jobs:
|
|||||||
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
INDEXNOW_KEY: ${{ secrets.INDEXNOW_KEY_DOCS }}
|
INDEXNOW_KEY: ${{ secrets.INDEXNOW_KEY_DOCS }}
|
||||||
run: |
|
run: |
|
||||||
|
export JUPYTER_PLATFORM_DIRS=1
|
||||||
python docs/build_docs.py
|
python docs/build_docs.py
|
||||||
git config --global user.name "Glenn Jocher"
|
git config --global user.name "Glenn Jocher"
|
||||||
git config --global user.email "glenn.jocher@ultralytics.com"
|
git config --global user.email "glenn.jocher@ultralytics.com"
|
||||||
|
@ -8,6 +8,7 @@ Sitemap: https://docs.ultralytics.com/hi/sitemap.xml
|
|||||||
Sitemap: https://docs.ultralytics.com/it/sitemap.xml
|
Sitemap: https://docs.ultralytics.com/it/sitemap.xml
|
||||||
Sitemap: https://docs.ultralytics.com/ja/sitemap.xml
|
Sitemap: https://docs.ultralytics.com/ja/sitemap.xml
|
||||||
Sitemap: https://docs.ultralytics.com/ko/sitemap.xml
|
Sitemap: https://docs.ultralytics.com/ko/sitemap.xml
|
||||||
|
Sitemap: https://docs.ultralytics.com/nl/sitemap.xml
|
||||||
Sitemap: https://docs.ultralytics.com/pt/sitemap.xml
|
Sitemap: https://docs.ultralytics.com/pt/sitemap.xml
|
||||||
Sitemap: https://docs.ultralytics.com/ru/sitemap.xml
|
Sitemap: https://docs.ultralytics.com/ru/sitemap.xml
|
||||||
Sitemap: https://docs.ultralytics.com/tr/sitemap.xml
|
Sitemap: https://docs.ultralytics.com/tr/sitemap.xml
|
||||||
|
@ -17,7 +17,7 @@ const applyAutoTheme = () => {
|
|||||||
// Function that checks and applies light/dark theme based on the user's preference (if auto theme is enabled)
|
// Function that checks and applies light/dark theme based on the user's preference (if auto theme is enabled)
|
||||||
function checkAutoTheme() {
|
function checkAutoTheme() {
|
||||||
// Array of supported language codes -> each language has its own palette (stored in local storage)
|
// Array of supported language codes -> each language has its own palette (stored in local storage)
|
||||||
const supportedLangCodes = ["en", "zh", "ko", "ja", "ru", "de", "fr", "es", "pt"];
|
const supportedLangCodes = ["en", "zh", "ko", "ja", "ru", "de", "fr", "es", "pt", "it", "tr", "vi", "nl"];
|
||||||
// Get the URL path
|
// Get the URL path
|
||||||
const path = window.location.pathname;
|
const path = window.location.pathname;
|
||||||
// Extract the language code from the URL (assuming it's in the format /xx/...)
|
// Extract the language code from the URL (assuming it's in the format /xx/...)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
data-reactions-enabled="1"
|
data-reactions-enabled="1"
|
||||||
data-repo="ultralytics/ultralytics"
|
data-repo="ultralytics/ultralytics"
|
||||||
data-repo-id="R_kgDOH-jzvQ"
|
data-repo-id="R_kgDOH-jzvQ"
|
||||||
data-strict="0"
|
data-strict="1"
|
||||||
data-theme="preferred_color_scheme"
|
data-theme="preferred_color_scheme"
|
||||||
src="https://giscus.app/client.js">
|
src="https://giscus.app/client.js">
|
||||||
</script>
|
</script>
|
||||||
|
@ -60,7 +60,7 @@ theme:
|
|||||||
- navigation.instant
|
- navigation.instant
|
||||||
- navigation.instant.progress
|
- navigation.instant.progress
|
||||||
- navigation.indexes
|
- navigation.indexes
|
||||||
- navigation.sections
|
- navigation.sections # navigation.expand or navigation.sections
|
||||||
- content.tabs.link # all code tabs change simultaneously
|
- content.tabs.link # all code tabs change simultaneously
|
||||||
|
|
||||||
# Customization
|
# Customization
|
||||||
|
@ -93,7 +93,7 @@ dev = [
|
|||||||
"mkdocstrings[python]",
|
"mkdocstrings[python]",
|
||||||
"mkdocs-jupyter", # for notebooks
|
"mkdocs-jupyter", # for notebooks
|
||||||
"mkdocs-redirects", # for 301 redirects
|
"mkdocs-redirects", # for 301 redirects
|
||||||
"mkdocs-ultralytics-plugin>=0.0.42", # for meta descriptions and images, dates and authors
|
"mkdocs-ultralytics-plugin>=0.0.43", # for meta descriptions and images, dates and authors
|
||||||
]
|
]
|
||||||
export = [
|
export = [
|
||||||
"onnx>=1.12.0", # ONNX export
|
"onnx>=1.12.0", # ONNX export
|
||||||
|
Loading…
x
Reference in New Issue
Block a user