Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

🎨 Update inline source examples, hide # in annotations (from MkDocs Material) - #677

#677
Merged
tiangolo merged 3 commits into
fastapi:mainfastapi/sqlmodel:mainfrom
Matthieu-LAURENT39:prettify_docsMatthieu-LAURENT39/sqlmodel:prettify_docsCopy head branch name to clipboard
Oct 29, 2023
Merged

🎨 Update inline source examples, hide # in annotations (from MkDocs Material)#677
tiangolo merged 3 commits into
fastapi:mainfastapi/sqlmodel:mainfrom
Matthieu-LAURENT39:prettify_docsMatthieu-LAURENT39/sqlmodel:prettify_docsCopy head branch name to clipboard

Conversation

@Matthieu-LAURENT39

Copy link
Copy Markdown
Contributor

This PR hides the # before all annotations in code blocks for the documentation.
It's just a graphical change, the source code doesn't actually change

I initially also removed a space before the inline comment, changing from 2 to 1 space. It looked slightly better, but PEP8 does specify you need at least 2 spaces before an inline comment, so i played it safe and kept it at 2 spaces.
I did however keep the changes stashed, if you want.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit ab08cbd at: https://10066f61.sqlmodel.pages.dev

@tiangolo tiangolo changed the title Hide # in annotations 🎨 Update inline source examples, hide # in annotations (from MkDocs Material) Oct 29, 2023
@tiangolo

Copy link
Copy Markdown
Member

Thanks @Matthieu-LAURENT39! 🎉 ☕

@tiangolo
tiangolo enabled auto-merge (squash) October 29, 2023 07:22
@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit ec31941 at: https://5665f8a3.sqlmodel.pages.dev

@tiangolo
tiangolo merged commit 9632980 into fastapi:main Oct 29, 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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.