Skip to content

doc/builtins: Auto link experimental features - #8371

Closed
roberth wants to merge 1 commit into
NixOS:masterfrom
hercules-ci:doc-link-primop-experimental-feature
Closed

roberth wants to merge 1 commit into
NixOS:masterfrom
hercules-ci:doc-link-primop-experimental-feature

Conversation

@roberth

@roberth roberth commented May 19, 2023

Copy link
Copy Markdown
Member

... with links.

It leaks a very small number of C strings, but that's acceptable as they wouldn't get released anyway. When EvalState is done, normally the whole process is done.

Motivation

Add the appropriate links to the manual.
Make sure we don't forget to mention the experimental nature of new primops, when applicable.

Context

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
  • documentation in the internal API docs
  • 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.

... with links.

It leaks a very small number of C strings, but that's acceptable as
they wouldn't get released anyway. When EvalState is done, normally
the whole process is done.
@roberth roberth added documentation contributor-experience Developer experience for Nix contributors labels May 19, 2023
@roberth
roberth requested a review from edolstra as a code owner May 19, 2023 10:19
Comment thread src/libexpr/primops.cc
.doc = primOp.doc,
.doc =
primOp.experimentalFeature
? strdup(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we should just change the type of doc to std::string or BackedStringView, then we don't need hacks like this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In 9800c1e I went with the appraoch of just dumping the info in the JSON, and letting the remote side render it.

I think that is generally preferable, but in this case there is also a repl way of viewing the docs, so we would have to do something in two places.

Maybe that's OK --- e.g. I don't know if the repl one supports markdown necessarily, but didn't want to not "come clean" on that caveat :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My #8330 now does what I suggested there too.

Ericson2314 added a commit that referenced this pull request Jun 16, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Valentin Gagarin <[email protected]>
@Ericson2314

Copy link
Copy Markdown
Member

Closing in favor of new additions to #8330 after discussing taking this over from @roberth.

Ericson2314 added a commit that referenced this pull request Jun 19, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 19, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 19, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 19, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 19, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 21, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 21, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 21, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 21, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 22, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 22, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 22, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 22, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 23, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 27, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 27, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Ericson2314 added a commit that referenced this pull request Jun 27, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR #8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
iFreilicht pushed a commit to iFreilicht/nix that referenced this pull request Jul 2, 2023
This is done in roughly the same way builtin functions are documented.

Also auto-link experimental features for primops, subsuming PR NixOS#8371.

Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor-experience Developer experience for Nix contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants