Styling project command line options - #12146
Conversation
|
I like the change, but 80 new lines of Python, I don't fancy those. |
5a478c3 to
344b863
Compare
|
Dunno, I'm rather sceptical about having more Python and more custom CSS, both of which has to be supported in eternity (e. g., if ReadTheDocs makes breaking changes). |
46922ed to
bb59581
Compare
Thanks @ffaf1. The line count change is looking better. |
|
I am fine with extra python and css. I find sequence like |
It is there as a symbol (or key) to introduce a command line option. Of the possible options, I like that symbol the best:
Are you able to look at the rendered user guide again and see those |
|
These new docs link together better than the current latest one does. To see this in action, look at with-compiler: PATH. Clicking anywhere on the line below with the command line equivalent items goes nowhere but on the rendered docs for this pull request, clicking on any of the command line equivalents take you to that command line option on the cabal commands page1. Footnotes
|
3d6bbb3 to
30acb73
Compare
This reverts commit 083f3ec.
- reject-unconstrained* was not indented at 4 spaces
30acb73 to
8ccd081
Compare

Related to #12144, renders the project command line options with a command line style. The
--preceded options are parsed out or you can optionally use a:command-line-options:directive.Note
If this is acceptable and enough to show command line options (the
$prefix indicating this), then we might remove some of the text describing the same thing. In other words, instead of fixing #12144 by using the plural, we could remove a lot of that text where it adds no value.Warning
I used Copilot to write the
*.pyand*.csschanges.I used sphinx warnings reporting missing references to identify undocumented command line options. I've added these as a new "Undocumented options" section, a fraction of which is shown here:
Having an undocumented section like this gets rid of those missing reference warnings. Also note the
enable-*, disable-*items on the same line. This works for linking to references.