﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37150	Version added/changed text, console tabs missing from RTD preview builds, dirhtml builds, etc.	Mike Edmunds	Mike Edmunds	"There are several related issues in the `docs._ext.djangodocs` Sphinx extension. The symptom is missing content in most html-like Sphinx builds, including ReadTheDocs PR preview builds:

- Missing text for `versionadded` and `versionchanged` directives: the html contains an empty `<div>` where something like ""New in Django 6.1"" or ""Changed in Django development version"" should be.
- Missing console tabs: the html does not include Windows console examples when they are available.

This affects the html builder (which RTD uses by default), the dirhtml builder, plus htmlhelp and singlehtml.

The fix is for the djangodocs extension to:
- Register `DjangoHTMLTranslator` for all html-like builders (solves missing version text)
- Handle all HTML-like builders in `visit_console_html()` and `ConsoleDirective.run()` (solves missing console tabs)

[Currently, the extension only handles version and console directives for a custom ""djangohtml"" builder—used in the docs/Makefile ""html"" target—and the ""json"" builder which is used for the docs.djangoproject.com site.]

Also, the custom `DjangoStandaloneHTMLBuilder` class can and should be removed. Its only function is generating `templatebuiltins.js`, which is meant to enable client-side hyperlinking of template tags and filters in code examples. But that feature isn't enabled on docs.djangoproject.com and has been broken in local docs builds since Sphinx 6.0 removed jQuery in 2023. It's effectively dead code."	Cleanup/optimization	assigned	Documentation	6.0	Normal		sphinx	James Beard	Unreviewed	1	0	0	0	0	0
