mirror of
https://github.com/ROCm/ROCm.git
synced 2026-02-11 23:15:06 -05:00
update ROCM_VERSION in conf 7.11 known issues added Minor change docs(RELEASE): supported OSes and hw docs(release.md): update hw support and os support js(selector-toc): remove unused code docs(index): update rocm ontology diagram add TM symbols docs(RELEASE): complete virtualization support tbl docs(toc): add rocm-examples to toc chore: bump rocm-docs-core to 1.31.3 chore: update version histor page docs(RELEASE): add oses docs(RELEASE): add virtu sup fix docs: update RELEASE.md docs(RELEASE): clean up py(selector): allow percentage widths docs(compat): update system-instinct table docs: finalize components lists docs(compat): update system-radeon-pro docs(compat): update system-radeon docs: compat docs(RELEASE): clean up docs(RELEASE): update tables docs(compat): add virtu sup and fix stuff docs(RELEASE): update AMD GPU Driver vers dcos(compat): add missing mi2xx options docs(RELEASE): update firmware for instinct docs(RELEASE): fix xref and fmt docs(rocm-ontology diagram): fix sideways tm fix oops, fix docs: remove ROCgdb docs(compat): add rhel 8.10 to mi35x docs: clean up some wording docs(install): update selector docs(install/compat): fix selector data docs: fix js: fix reconcile selections wip: install wip: install js: add URLSearchParams wip: install js: inline page-specific js docs(compat): add missing rocky linux to mi300x docs(install): windows adrenalin prereq wip: install docs(compat): virtu sup link docs: windows tar docs(compat/install): add missing gfx120x, gfx103x, and gfx110x gpus docs(RELEASE): add missing gfx120x, gfx103x, and gfx110x gpus docs(install): fix selected content docs(install): windows tar rm jira notes docs(comfyui): update docs(comfyui): update path docs: remove hipDNN chore(conf.py): exclude `**/includes/**` to build only when included docs(index): fix diagram colors Update RELEASE.md remove fn docs: remove gfx1030 cards docs: remove windows for gfx12 js: add localStorage to selector for persistence docs(RELEASE): fix gpu list in tables js(primary toc install headings): don't reload page if already on the install page docs(img): add oses to ontology diagram docs(rocgdb): add it back + document known issue docs(comfyui): update selector docs(RELEASE): fix docs(compat): fix - add rocky linux for mi300a docs(install): sles - remove --gpg-auto-import-keys py(selector): add static assets only if exists js(selector): clear URLSearchParams if page doesn't have selector docs: note GIM driver 8.7.0K for virtualization on instinct add link to gim docs docs: reorder list of components docs(install): add oem kernel prereq docs: clean up diagrams fix link docs(RELEASE): update firmware explanation docs: update chore: clean up extra files chore: linting errors docs(compat): add iGPU to ryzen cards in compat matrix docs(install): add install libatomic1 docs(install): clean up fix docs(install): add meta packages table docs(compat): remove amdgpu 7.0.3 and 6.4.2 docs(install): uninstall add meta package note blurb docs(RELEASE): apex known issue docs: update components lists in RELEASE and compat matrix docs(install): clean up meta packages sections docs(compat): update fw version for mi300x update known issues docs: remove minor version from OL and Rocky docs: fix windows whl urls docs(install): update rocminfo and amd-smi version example outputs docs(RELEASE): add known issues docs: fix linux components list docs(compat): make igpu heading consistent Add rocm-examples known issue Co-authored-by: Istvan Kiss <istvan.kiss@amd.com> docs(conf): update release date docs(install): update windows install instructions update docs(RELEASE): update known issues hipblaslt matmul known issue update known issues add hipify-clang known issue js(selector): fix syncStateToURL update amdgpu driver versions and known issues update known issues fix fix fix install urls update RELEASE.md fix update for consistency add known issue add rccl known issue update components table fix amdgpu versions update prereqs intro
204 lines
7.1 KiB
Python
204 lines
7.1 KiB
Python
# Configuration file for the Sphinx documentation builder.
|
|
#
|
|
# This file only contains a selection of the most common options. For a full
|
|
# list see the documentation:
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
import os
|
|
import shutil
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROCM_VERSION = "7.11.0"
|
|
GA_DATE = "2025-02-11"
|
|
|
|
DOCS_DIR = Path(__file__).parent.resolve()
|
|
ROOT_DIR = DOCS_DIR.parent
|
|
|
|
|
|
def copy_rtd_file(src_path: Path, dest_path: Path):
|
|
dest_path.parent.mkdir(parents=True, exist_ok=True)
|
|
shutil.copy2(src_path, dest_path)
|
|
print(f"📁 Copied {src_path} → {dest_path}")
|
|
|
|
|
|
# compat_matrix_src = DOCS_DIR / "compatibility" / "compatibility-matrix-historical-6.0.csv" # fmt: skip
|
|
# compat_matrix_dest = ROOT_DIR / "_readthedocs" / "html" / "downloads" / "compatibility-matrix-historical-6.0.csv" # fmt: skip
|
|
# copy_rtd_file(compat_matrix_src, compat_matrix_dest)
|
|
|
|
gh_release_path = ROOT_DIR / "RELEASE.md"
|
|
rtd_release_path = DOCS_DIR / "about" / "release-notes.md"
|
|
copy_rtd_file(gh_release_path, rtd_release_path)
|
|
|
|
# gh_changelog_path = ROOT_DIR / "CHANGELOG.md"
|
|
# rtd_changelog_path = DOCS_DIR / "release" / "changelog.md"
|
|
# copy_rtd_file(gh_changelog_path, rtd_changelog_path)
|
|
|
|
|
|
# Mark the consolidated changelog as orphan to prevent Sphinx from warning about missing toctree entries
|
|
# with open(rtd_changelog_path, "r+", encoding="utf-8") as file:
|
|
# content = file.read()
|
|
# file.seek(0)
|
|
# file.write(":orphan:\n" + content)
|
|
#
|
|
# # Replace GitHub-style [!ADMONITION]s with Sphinx-compatible ```{admonition} blocks
|
|
# with open(rtd_changelog_path, "r", encoding="utf-8") as file:
|
|
# lines = file.readlines()
|
|
#
|
|
# modified_lines = []
|
|
# in_admonition_section = False
|
|
#
|
|
# # Map for matching the specific admonition type to its corresponding Sphinx markdown syntax
|
|
# admonition_types = {
|
|
# "> [!NOTE]": "```{note}",
|
|
# "> [!TIP]": "```{tip}",
|
|
# "> [!IMPORTANT]": "```{important}",
|
|
# "> [!WARNING]": "```{warning}",
|
|
# "> [!CAUTION]": "```{caution}",
|
|
# }
|
|
#
|
|
# for line in lines:
|
|
# if any(line.startswith(k) for k in admonition_types):
|
|
# for key in admonition_types:
|
|
# if line.startswith(key):
|
|
# modified_lines.append(admonition_types[key] + "\n")
|
|
# break
|
|
# in_admonition_section = True
|
|
# elif in_admonition_section:
|
|
# if line.strip() == "":
|
|
# # If we encounter an empty line, close the admonition section
|
|
# modified_lines.append("```\n\n") # Close the admonition block
|
|
# in_admonition_section = False
|
|
# else:
|
|
# modified_lines.append(line.lstrip("> "))
|
|
# else:
|
|
# modified_lines.append(line)
|
|
#
|
|
# # In case the file ended while still in a admonition section, close it
|
|
# if in_admonition_section:
|
|
# modified_lines.append("```")
|
|
#
|
|
# file.close()
|
|
#
|
|
# with open(rtd_changelog_path, "w", encoding="utf-8") as file:
|
|
# file.writelines(modified_lines)
|
|
|
|
# matrix_path = os.path.join("compatibility", "compatibility-matrix-historical-6.0.csv")
|
|
# rtd_path = os.path.join("..", "_readthedocs", "html", "downloads")
|
|
# if not os.path.exists(rtd_path):
|
|
# os.makedirs(rtd_path)
|
|
# shutil.copy2(matrix_path, rtd_path)
|
|
|
|
latex_engine = "xelatex"
|
|
latex_elements = {
|
|
"fontpkg": r"""
|
|
\usepackage{tgtermes}
|
|
\usepackage{tgheros}
|
|
\renewcommand\ttdefault{txtt}
|
|
"""
|
|
}
|
|
|
|
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "rocm.docs.amd.com")
|
|
html_context = {}
|
|
|
|
# configurations for PDF output by Read the Docs
|
|
project = "ROCm documentation"
|
|
project_path = str(DOCS_DIR).replace("\\", "/")
|
|
author = "Advanced Micro Devices, Inc."
|
|
copyright = "Copyright (c) %Y Advanced Micro Devices, Inc. All rights reserved."
|
|
version = ROCM_VERSION
|
|
release = ROCM_VERSION
|
|
setting_all_article_info = False
|
|
all_article_info_os = ["linux", "windows"]
|
|
all_article_info_author = ""
|
|
|
|
# pages with specific settings
|
|
article_pages = [
|
|
{"file": "about/release-notes", "date": GA_DATE, "os": ["linux", "windows"]},
|
|
]
|
|
|
|
external_toc_path = "./sphinx/_toc.yml"
|
|
|
|
# Register Sphinx extensions and static assets
|
|
sys.path.append(str(DOCS_DIR / "extension"))
|
|
extensions = [
|
|
"rocm_docs",
|
|
"rocm_docs_custom.selector",
|
|
"rocm_docs_custom.matrix",
|
|
"rocm_docs_custom.icon",
|
|
# "sphinxcontrib.datatemplates",
|
|
# "sphinx_reredirects",
|
|
# "sphinx_sitemap",
|
|
# "version-ref",
|
|
# "csv-to-list-table",
|
|
]
|
|
templates_path = ["extension/rocm_docs_custom/templates"]
|
|
|
|
html_static_path = ["sphinx/static"]
|
|
html_js_files = ["setup-toc-install-headings.js"]
|
|
|
|
# compatibility_matrix_file = str(
|
|
# DOCS_DIR / "compatibility/compatibility-matrix-historical-6.0.csv"
|
|
# )
|
|
|
|
external_projects_current_project = "rocm"
|
|
html_theme = "rocm_docs_theme"
|
|
html_theme_options = {
|
|
"announcement": f"This is ROCm {ROCM_VERSION} technology preview release documentation. For the latest production stream release, refer to <a id='rocm-banner' href='https://rocm.docs.amd.com/en/latest/'>ROCm documentation</a>.",
|
|
"flavor": "generic",
|
|
"header_title": f"ROCm™ {ROCM_VERSION} Preview",
|
|
"header_link": f"https://rocm.docs.amd.com/en/{ROCM_VERSION}-preview/index.html",
|
|
"version_list_link": f"https://rocm.docs.amd.com/en/{ROCM_VERSION}-preview/release/versions.html",
|
|
"nav_secondary_items": {
|
|
"GitHub": "https://github.com/ROCm/ROCm",
|
|
"Community": "https://github.com/ROCm/ROCm/discussions",
|
|
"Blogs": "https://rocm.blogs.amd.com/",
|
|
"Instinct™ Docs": "https://instinct.docs.amd.com/",
|
|
"Support": "https://github.com/ROCm/ROCm/issues/new/choose",
|
|
},
|
|
"link_main_doc": False,
|
|
"secondary_sidebar_items": {
|
|
"**": ["page-toc"],
|
|
"compatibility/compatibility-matrix": ["selector-toc2"],
|
|
"install/rocm": ["selector-toc2"],
|
|
"rocm-for-ai/pytorch-comfyui": ["selector-toc2"],
|
|
},
|
|
}
|
|
html_title = f"AMD ROCm {ROCM_VERSION} preview"
|
|
|
|
numfig = False
|
|
rst_prolog = f"""
|
|
.. |ROCM_VERSION| replace:: {ROCM_VERSION}
|
|
"""
|
|
|
|
exclude_patterns = ["**/includes/**"]
|
|
suppress_warnings = ["autosectionlabel.*"]
|
|
|
|
# html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "https://rocm-stg.amd.com/")
|
|
# html_context = {
|
|
# "project_path": {project_path},
|
|
# "gpu_type": [
|
|
# ("AMD Instinct accelerators", "intrinsic"),
|
|
# ("AMD gfx families", "gfx"),
|
|
# ("NVIDIA families", "nvidia"),
|
|
# ],
|
|
# "atomics_type": [("HW atomics", "hw-atomics"), ("CAS emulation", "cas-atomics")],
|
|
# "pcie_type": [("No PCIe atomics", "nopcie"), ("PCIe atomics", "pcie")],
|
|
# "memory_type": [
|
|
# ("Device DRAM", "device-dram"),
|
|
# ("Migratable Host DRAM", "migratable-host-dram"),
|
|
# ("Pinned Host DRAM", "pinned-host-dram"),
|
|
# ],
|
|
# "granularity_type": [
|
|
# ("Coarse-grained", "coarse-grained"),
|
|
# ("Fine-grained", "fine-grained"),
|
|
# ],
|
|
# "scope_type": [("Device", "device"), ("System", "system")],
|
|
# }
|
|
if os.environ.get("READTHEDOCS", "") == "True":
|
|
html_context["READTHEDOCS"] = True
|
|
|
|
# temporary settings to speed up docs build for faster iteration
|
|
external_projects_remote_repository = ""
|
|
external_toc_exclude_missing = True
|