simonw / django-screenshots

Automated screenshots for the Django documentation
8 stars 1 forks source link

Recreate screenshots from existing Django documentation #5

Open simonw opened 2 months ago

simonw commented 2 months ago

I'll start by figuring out how to extract a list of them.

A bunch are here: https://github.com/django/django/tree/main/docs/intro/_images

simonw commented 2 months ago

In a fresh Django checkout:

find docs -type f -name "*.png"

Returns:

docs/ref/contrib/admin/_images/actions-as-modeladmin-methods.png
docs/ref/contrib/admin/_images/admin-actions.png
docs/ref/contrib/admin/_images/fieldsets.png
docs/ref/contrib/admin/_images/adding-actions-to-the-modeladmin.png
docs/ref/contrib/admin/_images/list_filter.png
docs/ref/contrib/admin/_images/raw_id_fields.png
docs/intro/_images/admin01.png
docs/intro/_images/admin06t.png
docs/intro/_images/admin10t.png
docs/intro/_images/admin02.png
docs/intro/_images/admin07.png
docs/intro/_images/admin11t.png
docs/intro/_images/admin09.png
docs/intro/_images/admin08t.png
docs/intro/_images/admin12t.png
docs/intro/_images/admin04t.png
docs/intro/_images/admin05t.png
docs/intro/_images/admin13t.png
docs/intro/_images/admin14t.png
docs/intro/_images/admin03t.png
docs/howto/_images/postmortem.png
docs/howto/_images/template-lines.png
docs/_theme/djangodocs/static/docicons-note.png
docs/_theme/djangodocs/static/docicons-warning.png
docs/_theme/djangodocs/static/docicons-philosophy.png
docs/_theme/djangodocs/static/docicons-behindscenes.png
simonw commented 2 months ago

Ran this:

find docs -type f -name "*.png" | \
  sed 's|^|# |; s|.*|&\n\n![](https://raw.githubusercontent.com/django/django/refs/heads/main/&)\n|; s|main/# |main/|'

Thanks Claude: https://gist.github.com/simonw/f9fbeea58fc56943e4b8d515b9264698

Here are all those images:

docs/ref/contrib/admin/_images/actions-as-modeladmin-methods.png

docs/ref/contrib/admin/_images/admin-actions.png

docs/ref/contrib/admin/_images/fieldsets.png

docs/ref/contrib/admin/_images/adding-actions-to-the-modeladmin.png

docs/ref/contrib/admin/_images/list_filter.png

docs/ref/contrib/admin/_images/raw_id_fields.png

docs/intro/_images/admin01.png

docs/intro/_images/admin06t.png

docs/intro/_images/admin10t.png

docs/intro/_images/admin02.png

docs/intro/_images/admin07.png

docs/intro/_images/admin11t.png

docs/intro/_images/admin09.png

docs/intro/_images/admin08t.png

docs/intro/_images/admin12t.png

docs/intro/_images/admin04t.png

docs/intro/_images/admin05t.png

docs/intro/_images/admin13t.png

docs/intro/_images/admin14t.png

docs/intro/_images/admin03t.png

docs/howto/_images/postmortem.png

docs/howto/_images/template-lines.png

docs/_theme/djangodocs/static/docicons-note.png

docs/_theme/djangodocs/static/docicons-warning.png

docs/_theme/djangodocs/static/docicons-philosophy.png

docs/_theme/djangodocs/static/docicons-behindscenes.png

simonw commented 2 months ago

I think each of these deserve a new issue.