Move setting and builtin documentation that is currently in C++ to .md files; make setting defaults generate C++? #292
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
6 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We currently have a Pawblem: Lix documentation doesn't like to be built in cross, since the documentation needs to be extracted by running a C++ program. This is backwards, we should put the docs into another file, which we have a simple program to generate C++ from (maybe the .gen.hh things, but we actually think we might want more cleverness), and then generate the docs forward from that.
Probably we can use the same kind of machinery and the same python libs as release notes and shove the metadata in yaml front-matter blocks, then generate simple C++ from that, including generating defaults so they don't go out of date?
Concept:
and then this would be used as:
I have written a clang query to pull that data out of there, which someone could use later to actually execute on writing a migration using our
clang-tidy/.Usage, with a non-Nix clang-query (due to https://github.com/NixOS/nixpkgs/pull/300157):
cc @alois31
This issue was mentioned on Gerrit on the following CLs:
@alois31 you worked on this, is there something missing or should we consider this finished?
The new CLI is the last thing that is not ported yet:
nix3_cli_json = custom_target(command : [ nix, '__dump-cli' ],capture : true,output : 'nix.json',env : nix_env_for_docs,# FIXME: put the actual lib targets in here? meson have introspection challenge 2024 though.build_always_stale : true,)this still open or fully resolved by now?
I cannot find a
__dump-clianymore, it feels like to me this is actually finished, @alois31 can we let you close if you agree with this?It's still there without changes:
nix3_cli_json = custom_target(command : [ nix, '__dump-cli' ],capture : true,output : 'nix.json',env : nix_env_for_docs,# FIXME: put the actual lib targets in here? meson have introspection challenge 2024 though.build_always_stale : true,)In any case https://gerrit.lix.systems/c/lix/+/4676 unspaghettifies the code generator (thank you!) so any changes will be based on this. Then the stores seem manageable but the subcommands are a significantly larger mess due to being more dynamic. Sorry for dropping the ball on it, I will see what can be done in the next few weeks.
if its about python, will be happy to help out with the codegen and stuff