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

Extend internal API docs, part 2 #8133

Merged
merged 2 commits into from
Apr 1, 2023

Conversation

Ericson2314
Copy link
Member

Motivation

The internal API docs now contain more useful information.

Context

Picking up from #8111.

Checklist for maintainers

Maintainers: tick if completed or explain if not relevant

  • agreed on idea
  • agreed on implementation strategy
  • tests, as appropriate
    • functional tests - tests/**.sh
    • unit tests - src/*/tests
    • integration tests - tests/nixos/*
  • documentation in the manual
  • code and comments are self-explanatory
  • commit message explains why the change was made
  • new feature or incompatible change: updated release notes

Priorities

Add 👍 to pull requests you find important.

src/libutil/comparator.hh Outdated Show resolved Hide resolved
Ericson2314 and others added 2 commits March 31, 2023 23:01
Picking up from NixOS#8111.

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
`///@file` makes them show up in the internal API dos. A tiny few were
missing `#pragma once`.
@Ericson2314 Ericson2314 force-pushed the improve-internal-api-docs branch from 8ef7962 to f4ab297 Compare April 1, 2023 03:37
@Ericson2314 Ericson2314 merged commit ea1cbc3 into NixOS:master Apr 1, 2023
@Ericson2314 Ericson2314 deleted the improve-internal-api-docs branch April 1, 2023 16:42
@Ericson2314
Copy link
Member Author

Ericson2314 commented Apr 1, 2023

I think I want to be a bit more aggressive merging internal API doc changes than most changes, as to quote @thufschmitt

Thanks, I think it's great to have this.

I didn't check every comment in detail as I believe it's OK for these to be imperfect at first, just noted the things that stood out.

I.e. even if I did something silly inside PRs, it's probably still a clear net positive as no behavior is changed and no code is refactored. We have plenty of other PRs more deserving of thorough reviews!

Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Apr 1, 2023
99% of this was just reformatting existing comments. Only two exceptions:

- Expanded upon `BuildResult::status` compat note

- Split up file-level `symbol-table.hh` doc comments to get
  per-definition docs

Also fixed a few whitespace goofs, turning leading tabs to spaces and
removing trailing spaces.

Picking up from NixOS#8133
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Apr 1, 2023
99% of this was just reformatting existing comments. Only two exceptions:

- Expanded upon `BuildResult::status` compat note

- Split up file-level `symbol-table.hh` doc comments to get
  per-definition docs

Also fixed a few whitespace goofs, turning leading tabs to spaces and
removing trailing spaces.

Picking up from NixOS#8133
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/this-month-in-nix-docs-1-march-2023/26913/1

Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Apr 5, 2023
99% of this was just reformatting existing comments. Only two exceptions:

- Expanded upon `BuildResult::status` compat note

- Split up file-level `symbol-table.hh` doc comments to get
  per-definition docs

Also fixed a few whitespace goofs, turning leading tabs to spaces and
removing trailing spaces.

Picking up from NixOS#8133
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Apr 7, 2023
99% of this was just reformatting existing comments. Only two exceptions:

- Expanded upon `BuildResult::status` compat note

- Split up file-level `symbol-table.hh` doc comments to get
  per-definition docs

Also fixed a few whitespace goofs, turning leading tabs to spaces and
removing trailing spaces.

Picking up from NixOS#8133
Ericson2314 added a commit that referenced this pull request Apr 7, 2023
* Finish converting existing comments for internal API docs

99% of this was just reformatting existing comments. Only two exceptions:

- Expanded upon `BuildResult::status` compat note

- Split up file-level `symbol-table.hh` doc comments to get
  per-definition docs

Also fixed a few whitespace goofs, turning leading tabs to spaces and
removing trailing spaces.

Picking up from #8133

* Fix two things from comments

* Use triple-backtick not indent for `dumpPath`

* Convert GNU-style `\`..'` quotes to markdown style in API docs

This will render correctly.
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/this-month-in-nix-docs-2-april-2023/27899/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants