django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.86k stars 938 forks source link

Code block indentation on /start page #1453

Closed jackoconnordev closed 6 months ago

jackoconnordev commented 6 months ago

Description

I noticed code blocks on /start page do not have any indentation. This issue comes from the DjHTML indentor tool making all indentation for these lines uniform as it currently has no way of knowing that these lines are special and require their own indentation to be treated differently to the rest of the file.

I have created PR https://github.com/django/djangoproject.com/pull/1452 for this issue if somebody could take a look.

Screenshots

Example screenshots comparing current website and PR https://github.com/django/djangoproject.com/pull/1452

Forms and authentication

forms-and-authentication

Internationalisation

internationalisation

Object relational mapper

object-relational-mapper

URLs and views

urls-and-views

Admin

admin
jackoconnordev commented 6 months ago

This is an example of a code-block from a page on djangoproject.com which was generated by sphinx. The code starts from the left-most side of the code block.

image