Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: configure syntax coloring #878

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Conversation

ivoire
Copy link
Contributor

@ivoire ivoire commented Oct 16, 2023

No description provided.

@@ -103,6 +103,6 @@ class PatchGroupSchema(ModelSchema):

also you can define just a few optional fields instead of all:

```
```Python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please lowercase python?

Python -> python

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. But the current file is using Python instead of python. Should I keep the same format (Python) or not?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm this is unusual. I think powercasing everything is better :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe merge this one and I can create another MR to harmonize everything?

@@ -402,14 +402,14 @@ the `.from_orm()` method on the schema object.

Consider the following model:

```
```Python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please lowercase python?

Python -> python

class Person(models.Model):
name = models.CharField(max_length=50)
```

Which can be accessed using this schema:

```
```Python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please lowercase python?

Python -> python

@@ -419,7 +419,7 @@ schema. Once you have an instance of the schema object, the `.dict()` and
`.json()` methods allow you to get at both dictionary output and string JSON
versions.

```
```Python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please lowercase python?

Python -> python

@@ -432,7 +432,7 @@ PersonSchema(id=1, name='Mr. Smith')

Multiple Items: or a queryset (or list)

```
```Python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please lowercase python?

Python -> python

@vitalik
Copy link
Owner

vitalik commented Oct 16, 2023

yeah, apparently 95% of docs uses Python, while other python(lower)

I guess "Python"-capital it is :)

@vitalik vitalik merged commit fb3b7e3 into vitalik:master Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants