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

Doc formatting cleanup #124

Merged
merged 4 commits into from
Jul 9, 2024
Merged

Doc formatting cleanup #124

merged 4 commits into from
Jul 9, 2024

Conversation

slaarti
Copy link
Contributor

@slaarti slaarti commented Jul 8, 2024

Description

Preliminary to work I've been doing for #72, this PR is to some cleanup of the docs and docstrings, mostly in terms of consistency in formatting. See the Changes section for more details.

Changes

  • Add inline code markup in places where it's missing.
  • Add trailing commas in example multi-line parameter lists.
  • Adjust spacing and tab indent levels.
  • Migrate soft delete column final paragraphs up: Put them before talking about an updated-at column instead of after, so we're not randomly going back to a previous topic.
  • Quote strings in code markup to make it clear that they are strings.
  • Replace some HTML in docs with Markdown. (Couldn't quite figure out how to do it for the HTML at the start of index.md, but still an improvement.)
  • Apply correct/standard formatting to paginated/ docstrings.
  • Other misc docstring formatting fixes.

Tests

There are no code changes, and therefore no changes to tests.

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • I have added necessary documentation (if appropriate).

* Add inline code markup in places where it's missing.
* Add trailing commas in example multiline param lists.
* Adjust spacing and tab indent levels.
* Migrate soft delete column final paragraphs up: Put them before
  talking about an updated-at column instead of after, so we're not
  randomly going back to a previous topic.
* Quote strings in code markup to make it clear that they are strings.
Couldn't quite figure out how to do it for the HTML at the start of
index.md, but still an improvement.
* Fix incorrect indent levels.
* Apply correct/standard formatting to paginated docstrings.
* Docstring formatting fixes for fastcrud and endpoint.
* Quote strings in code markup to make it clear that they are strings.
Copy link
Owner

@igorbenav igorbenav left a comment

Choose a reason for hiding this comment

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

Really a great work, @slaarti. Thank you so much

@igorbenav igorbenav merged commit e70ffe5 into igorbenav:main Jul 9, 2024
7 checks passed
@slaarti slaarti deleted the doc_cleanup branch July 9, 2024 04:52
slaarti added a commit to slaarti/fastcrud that referenced this pull request Jul 15, 2024
This is a possible correction to igorbenav#124: `mkdocs` complains about not
recognizing the relative links' destination. The recommendation it
provides didn't quite make sense to me relative to the URL structure as
rendered, but it apparently automatically substituted it in and it
appeared to work, so I just left them as I'd written them.

Now, I realize now that it may be more about the actual structure of the
filesystem getting from `api/fastcrud.md` (which contains the includes
from the code's docstrings) to `advanced/crud.md`, and `mkdocs` handles
translating the file paths to URLs. So I put this PR together to fix the
links and you can figure out whether or not it needs to go in. :D
slaarti added a commit to slaarti/fastcrud that referenced this pull request Jul 17, 2024
This is a possible correction to igorbenav#124: `mkdocs` complains about not
recognizing the relative links' destination. The recommendation it
provides didn't quite make sense to me relative to the URL structure as
rendered, but it apparently automatically substituted it in and it
appeared to work, so I just left them as I'd written them.

Now, I realize now that it may be more about the actual structure of the
filesystem getting from `api/fastcrud.md` (which contains the includes
from the code's docstrings) to `advanced/crud.md`, and `mkdocs` handles
translating the file paths to URLs. So I put this PR together to fix the
links and you can figure out whether or not it needs to go in. :D
slaarti added a commit to slaarti/fastcrud that referenced this pull request Jul 25, 2024
This is a possible correction to igorbenav#124: `mkdocs` complains about not
recognizing the relative links' destination. The recommendation it
provides didn't quite make sense to me relative to the URL structure as
rendered, but it apparently automatically substituted it in and it
appeared to work, so I just left them as I'd written them.

Now, I realize now that it may be more about the actual structure of the
filesystem getting from `api/fastcrud.md` (which contains the includes
from the code's docstrings) to `advanced/crud.md`, and `mkdocs` handles
translating the file paths to URLs. So I put this PR together to fix the
links and you can figure out whether or not it needs to go in. :D
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