# Automate the screenshot generation process for docs - #35830

**URL:** <https://forum.djangoproject.com/t/automate-the-screenshot-generation-process-for-docs-35830/41114>\
**Category:** Google Season of Code\
**Created:** [May 26, 2025, 2:58pm UTC](https://forum.djangoproject.com/t/automate-the-screenshot-generation-process-for-docs-35830/41114 "2025-05-26T14:58:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![marcorichetta](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/marcorichetta/32/26473_2.png) [@marcorichetta](https://forum.djangoproject.com/u/marcorichetta)\
**Post date:** [June 18, 2025, 7:08pm UTC](https://forum.djangoproject.com/t/automate-the-screenshot-generation-process-for-docs-35830/41114/11 "2025-06-18T19:08:17Z")

</div>

Hey @khanxmetu, thanks for the tips!

> [@khanxmetu](#):
>
> Alternatively: inject `localStorage.setItem('theme', 'light');` to force light mode.

The problem is when running the tests, both chrome and FF use `theme: auto` by default, which results in dark mode because of my OS.

Tried with `django-docker-box`. Got some memory issues at first, then I was able to run it but then I saw [it doesn’t support screenshot generation](https://github.com/django/django-docker-box#roadmap) (yet!).

In the end I was able to fix it by forcing light mode as you suggested.

#### Model admins:

I think I get your point but I don’t know how to make what you suggest. Should I [override the default admin](https://docs.djangoproject.com/en/5.2/ref/contrib/admin/#overriding-the-default-admin-site)?

Anyway, I read [AdminSite.get\_app\_list() doesn't seem to respect TransactionTestCase.available\_apps](https://forum.djangoproject.com/t/adminsite-get-app-list-doesnt-seem-to-respect-transactiontestcase-available-apps/40707) and maybe it could be a PR on it’s own because of some other changes on the test suite.

#### Misplaced `<select>` dropdown

I think it can be interesting to try it, since there’s no other alternative (I believe).  
Although I wouldn’t consider it a must, but rather an improvement.  
Just in case, 2/20 images from the admin docs show this problem.

---

_[View the full topic](https://forum.djangoproject.com/t/automate-the-screenshot-generation-process-for-docs-35830/41114)._
