summaryrefslogtreecommitdiff
path: root/docs/_theme
AgeCommit message (Collapse)Author
2026-10-30Fixed #37138 -- Changed docs to use customized pydata-sphinx-theme.Mike Edmunds
Updated custom djangodocs Sphinx theme to switch to pydata-sphinx-theme (PST) with minimal customizations: * Replaced PST's split top/left main nav with single left sidebar main nav. (Borrowed approach from sphinx-book-theme.) * Moved `docstitle` from navbar_start (in "logo") to navbar_center, to avoid wrapping in the header with long development version numbers. Thanks to Natalia Bidart for review and improvements.
2026-10-01Fixed #37212 -- Improved djangodocs Sphinx extension portability.Mike Edmunds
* Removed unnecessary `table` and `parameterlist` customizations from the djangodocs Sphinx extension's `DjangoHTMLTranslator`. These were meant to avoid obsolete html from Docutils' html4 writer (`border=1` in `<table>` tags and and `<big>` around parameter list parens). Sphinx 2.0 switched to the html5 writer, which doesn't emit that html. These overrides are no longer necessary, rely on Sphinx internals that often break in new versions, and interfere with third-party themes. * Moved the console-tabs.css stylesheet to docs/_static and removed logic for conditionally including it only in pages with console tabs. That depended on custom handling in the djangodocs theme layout.html template, which isn't portable to other themes. * Switched console tabs from Font Awesome brand icons to text and removed the vendored fa-brands fonts (to avoid moving them from the djangodocs theme to the docs/_static dir). * Ensured both console tabs include a wrapper div around literal code blocks: `<div class="highlight-{lexer} notranslate">` (where lexer is `console` for Unix and `doscon` for Windows). This wrapper had been missing for the Windows content, which could cause shifting layouts when changing tabs with third-party Sphinx themes (and may have interfered with browser translation tools). Fixed by rendering the Windows tab with a temporary literal block, matching how the Unix tab is rendered. Removed direct call to the Pygments highlighter. The Windows tab is no longer force-highlighted, so a doscon lexing failure now reports a warning rather than being silently ignored. * Removed custom `VersionDirective` and HTML writer overrides for `visit_versionmodified()` and `depart_versionmodified()`. Sphinx's standard changeset directives are now used. (Refs #20104.) The original code was meant to substitute "development version" for conf.py `django_next_version` and to refer to "Django N.M" rather than the generic "version N.M" in changeset messages. But it missed the `deprecated` directive and aliases like `version-modified` added in Sphinx 9.0, didn't apply to non-HTML output formats, and generated inconsistent HTML that wasn't compatible with standard Sphinx themes. Related cleanup: * Updated documentation on using versionadded and versionchanged directives to accurately reflect Sphinx's rendered text, and removed the policy bullet describing the old Django-specific phrasing. * Enabled biome for all css and js files in docs (except in docs/_build). * Consistently excluded all non-docs source dirs and requirements.txt from searches for *.txt source files in conf.py exclude_patterns, make.bat, Makefile, and lint.py. Refs #35874, #37138, #20104.
2026-06-09Fixed #37150 -- Made djangodocs Sphinx extension work with any html builder.Mike Edmunds
Changed djangodocs extension to register DjangoHTMLTranslator for any html-format builder (in the builder-inited hook), rather than a limited list of builders at startup. That fixes missing content in dirhtml and standard html builds (including ReadTheDocs PR previews): - Missing console tabs - Empty divs for versionadded and versionchanged directives Removed JS code that depended on jQuery, which hasn't worked since Sphinx 6.0 dropped jQuery in 2023: - Unnecessary console tabs click handling. (Console tab behavior is implemented purely in CSS.) - Client-side hyperlinking of Django template tags and filters in code examples. (This is also not supported on docs.djangoproject.com.) Removed custom DjangoStandaloneHTMLBuilder and "djangohtml" builder type. Its sole purpose was to generate the "templatebuiltins.js" file used for the (non-functional) client-side template filter/tag linking. Changed docs "make html" target from "djangohtml" to standard "html".
2026-04-18Formatted CSS files.Tom Carrick
2022-05-31Fixed docs build with sphinxcontrib-spelling 7.5.0+.Mariusz Felisiak
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set of nodes for which the text is checked.
2022-01-22Stopped including type="text/css" attributes for CSS link tags.Claude Paroz
2021-06-21Fixed #32860 -- Made docs permalinks focusable to improve accessibility.Timothy McCurrach
2020-06-22Fixed #16300 -- Improved singlehtml docs formatting with headers CSS.David Smith
2019-12-11Fixed #31080 -- Removed redundant type="text/javascript" attribute from ↵Jon Dufresne
<script> tags.
2018-09-10Refs #20910 -- Replaced snippet directive with code-block.Curtis Maloney
2018-01-20Fixed #28343 -- Add an OS chooser for docs command line examples.Ramiro Morales
2017-06-01Clarified QuerySet.iterator()'s docs on server-side cursors.François Freitag
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-14Made doc icon's edges smooth.arniu
2015-11-11Made doc icons background transparent.arniu
2015-06-22Added white-space: pre-wrap; to docs code blocks to match docs.dp.com.Tim Graham
2015-05-29Optimise the rest of the PNGs in docsCurtis
2014-08-12Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner
2014-06-30Made docs CSS for versionchanged/added more similar to docs.djangoproject.com.Tim Graham
2014-06-06Removed duplicate "Deprecated in Django A.B" text in docs.Tim Graham
sphinx 1.2+ adds this text itself.
2014-03-03Fixed some typos and formatting issues in docs.Rodolfo Carvalho
2014-02-10Fixed #21190 -- Added a new ePub theme for documentation.Markus Amalthea Magnuson
2013-12-04Fixed #21558 -- Support building CHM files.Aymeric Augustin
Thanks Michał Pasternak.
2013-10-14Fixed #20910 -- Added a "snippet" sphinx directive to allow prefixing a ↵M Nasimul Haque
filename. Thanks Marc Tamlyn for the suggestion.
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-09-23Fixed #21702 -- Added different bullet styles for nested lists.Tim Garner
Thanks moc at mocpa.com for the suggestion.
2013-02-19Fixed #18789 - Fixed some text wrap issues with methods in the docs.Tim Graham
Thanks neixetis@ for the report.
2013-01-09Addeded CSS to bold deprecation notices.Tim Graham
Thanks Sam Lai for mentioning this on the mailing list.
2012-11-22Fixed #19317 - Added an image for warning blocks in the docsTim Graham
Thanks tome for the suggestion and patch.
2010-07-24Fixed #13616 - Updated the documentation to be compatible with Sphinx 1.0.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13446 bcc190cf-cafb-0310-a4f2-bffc1f526a37