summaryrefslogtreecommitdiff
path: root/docs/templates
AgeCommit message (Collapse)Author
2026-05-15Use the database for docs renderingissue-1630Charles Roelli
Co-authored-by: Paolo Melchiorre <pmelchiorre@rippling.com>
2026-05-08Add djade linter and format templates.Anshul Zilpe
2025-12-30Use CSS instead of JavaScript for floating warningAdam Zapletal
Some of the functionality of the floating warning on unsupported and in-development documentation versions was implemented using JavaScript. This is longer necessary if we use the following approach with modern CSS: Attach the warning element the top of the page with `position: sticky`. This almost solves the problem, but we still have to scroll past header elements when an internal page link is clicked. This is achieved with a combination of the `:has` pseudo-class and the `scroll-margin-top` property. We apply `scroll-margin-top` to elements that can be scrolled to by their `id` attribute. This is done with responsive breakpoints to get appropriate spacing when the floating warning has one, two, or three lines of text. Thanks to `:has`, this only happens when a warning element is on the page. The modern CSS features used are widely-supported: - https://caniuse.com/css-has - https://caniuse.com/css-sticky - https://caniuse.com/mdn-css_properties_scroll-margin-top Other than making the primary CSS changes and removing the related JavaScript, this patch does the following: - Simplify the CSS so that the class on all floating warning elements implements the common rules and the CSS for the IDs on the elements implements the colors - Add a `z-index` to warning elements so that they always display in front of the header element - Move the floating warning element to the top of the page in the HTML - Remove the `body_extra` block that was only being used by the floating warning element - Add a new `before_header` block for the floating warning element Thank you to Baptiste Mispelon and Thibaud Colas for helping me arrive at this solution.
2025-12-18Reversed the order of languages and versions.Sarah Boyce
2025-12-18Removed relative urls.Sarah Boyce
2025-12-18feat: Make top_corporate_members more genericamichon
2025-12-15Made the language and documentation version switcher accessible by keyboard.Sarah Boyce
2025-11-24Removed references to "Documentation" in search as now a global search.Sarah Boyce
2025-11-21Moved docs search bar to top navigation in prep for global search.Sarah Boyce
2025-11-07Added support for searching ecosystem and blog entries.Tim Schilling
The blog results should have a property of whether it is included in the search results. * Added is_searchable. * Used Entry.get_absolute_url to encapsulate www host. * Extracted get_search_config helper function. Co-authored-by: Baptiste Mispelon <bmispelon@gmail.com>
2025-10-22Fixed translations of results count for languages where 0 is singular rather ↵Sarah Boyce
than plural.
2025-09-25Add top `CorporateMember`s to `docs` sidebarAdam Zapletal
This was requested by the fundraising working group. I abstracted the top `CorporateMember` display from the `releases` app sidebar into a new inclusion tag called `top_corporate_members` and included it in its original place as well as in the `docs` sidebar as requested. Uploaded images for `CorporateMember`s may not display in local development environments do to the way media files paths work with subdomains.
2025-07-01Removes fellow application bannerSaptak S
2025-06-12Added Fellow call for applicant banner.Sarah Boyce
2025-04-09Added documentation type filtering to search.Sarah Boyce
Thank you to Paulo Melchiorre, Tom Carrick, Marijke Luttekes, and Baptiste Mispelon for the reviews.
2025-04-09Updated the search_result.html page to use modern template tags.Sarah Boyce
2025-04-09Improved accessibility of documentation search.Sarah Boyce
Thank you Marijke Luttekes for the review.
2025-03-14Reapply "Fixed page header structure and used semantic HTML."Baptiste Mispelon
This reverts commit f1fca5e8a412da1bb8b5ffd11a59eac8579738bb.
2025-03-11Revert "Fixed page header structure and used semantic HTML."Baptiste Mispelon
This reverts commit f87e1dbd3c06fe9b1100ddcd06394de5ae338577.
2025-03-11Reapply "Added code references to search results. (#1947)"Baptiste Mispelon
This reverts commit af929f0734c319447a061e82b0353fc48b792ec4.
2025-03-11Fixed page header structure and used semantic HTML.Sarah Boyce
2025-03-05Revert "Added code references to search results. (#1947)"Alex
This reverts commit fa56d9b841e0bd23c5c8871826ba6abe2205fdb4.
2025-03-04Added code references to search results. (#1947)Sarah Boyce
Thank you Baptiste Mispelon for the review.
2025-02-09Added scroll to text fragment to search.Sarah Boyce
2025-01-23Used chat.djangoproject.com URL instead of cryptic discord.ggBaptiste Mispelon
2025-01-17Reduced references to #django IRC.Sarah Boyce
2024-12-08Removed links and references to the mailing listsontowhee
Refs #1727
2024-11-20Added rel attributes to pagination linksash
2024-10-23Removed PyCharm 2024 bannerBaptiste Mispelon
2024-10-08Restored PyCharm 2024 bannerBaptiste Mispelon
The banner was removed a bit too hastily, as it turns out. This reverts commit 41718b8022cbf01a03f34c6cee5012d068f1f08e.
2024-10-08Removed PyCharm banners for 2024 fundraiserBaptiste Mispelon
This reverts commit d031005647b0c7cca98824a898ac31d218f52be2.
2024-09-22Added PyCharm banners for 2024 fundraiser (part 2)Baptiste Mispelon
2024-06-20Removed 2024 Pycharm bannerBaptiste Mispelon
2024-06-16Changed end date of pycharm campaignBaptiste Mispelon
2024-06-04Added PyCharm banners for 2024 fundraiser.Baptiste Mispelon
2024-04-04add og:title to the docs (#1508)Cory Zue
* add og:title to the docs * escape strings * remove | safe * add test * remove redundant escape
2024-01-22Fixed favicon URLs in search description.Renaud Boyer
2023-08-02Removed PyCharm banners for 2023 fundraiser.Mariusz Felisiak
This reverts commits 41ae819cd6b2683c15177d877c5b4615f3767943 and 5246f6408c457a40ba4a487303382c09e6fec0f8.
2023-07-24Extended PyCharm fundraiser until July, 31th.Mariusz Felisiak
Follow up to 5246f6408c457a40ba4a487303382c09e6fec0f8.
2023-07-13Add back to top link in documentation (#1370)Hana Burtin
2023-07-03[pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]
for more information, see https://pre-commit.ci
2023-07-03Added PyCharm banners for 2023 fundraiser.Mariusz Felisiak
2023-06-02[pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]
for more information, see https://pre-commit.ci
2023-01-02Improve code format with pre-commit (#1297)Paolo Melchiorre
2022-11-30Fixed #1221 -- Add highlight in search results page (#1222)Paolo Melchiorre
Co-authored-by: Sarah Abderemane <sarahabderemane@gmail.com>
2022-10-12Improve language/version switcher (#1029)Joachim Jablon
* Fix CSS: .hover-on is applied to li, not ul * Switcher that stays on click applies to both version & language * Switcher is clickable, adjust pointer accordingly * Apply easy PR review suggestions
2022-06-21Removed PyCharm banners for 2022 fundraiser.Carlton Gibson
This reverts commit 8bbbf9d58d13c43184bf7e1bebd6ec00477ead18.
2022-06-01Added PyCharm banners for 2022 fundraiser.Carlton Gibson
Refs 8cfe240d8d1e60f8724aa8303f7afc68a01895ce
2022-04-20Updated help and community links.Simon Krull
Adds link to the Discord server, the Forum where missing, and regroups to be more consistent.
2022-03-09Updated to Django 3.2.Mariusz Felisiak