mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
120c8feb81
Changes: - Removes pytorch navbar and adds a link to main pytorch.org site - Adds dropdowns to the top navigation bar items (uses :toctree: from the corresponding files) - Removes runllm.js - added in the theme, controlled through the conf.py settings - Adds support for sphinx-tippy tooltips - Autogenerates llms.txt like this: https://docs-preview.pytorch.org/pytorch/pytorch/174806/llms.txt - a custom llms.txt can be provided or can be disabled completely. - Adds `llm:` meta tags: ``` <!-- LLM/AI Agent: See /llms.txt for comprehensive navigation guidance --> <!-- Machine-readable LLM metadata --> <meta name="llm:site-type" content="documentation"> <meta name="llm:framework" content="PyTorch"> <meta name="llm:description" content="User Guide - Documentation for PyTorch, part of the PyTorch ecosystem."> <meta name="llm:navigation-file" content="https://docs.pytorch.org/docs/stable/llms.txt"> <meta name="llm:sitemap" content="https://docs.pytorch.org/docs/stable/sitemap.xml"> <meta name="llm:version" content="main (2.11.0a0+git346e1b6 )"> <meta name="llm:project" content="PyTorch"> <meta name="llm:page-type" content="documentation"> <link rel="alternate" type="text/plain" href="https://docs.pytorch.org/docs/stable/llms.txt" title="LLM Navigation Guide"> ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/174806 Approved by: https://github.com/albanD