Use indexed option directive on unit reference documentation (Infra)#1739
Use indexed option directive on unit reference documentation (Infra)#1739
Conversation
|
Fixed ↓ |
Hook25
left a comment
There was a problem hiding this comment.
lgtm, should we enable fail on warning on all doc sets?
|
|
|
do double check on the others if you have some time, I'm pretty sure testflinger doesn't have it |
|
Nice reminder! The option was removed from Testflinger two weeks ago 🤔 |
|
now I remember, I approved that PR. The problem with that option is that the build fails on readthedocs but not locally and I couldn't find a way to make it behave the same, which is pretty crappy. Can you please look into that as well? The behaviour should be the same |
Description
The unit references currently use definition lists for explaining each field, but each element is not indexed so cannot be cross-referenced. This PR replaces those
<dl>list and manually defined anchors with the:option:directive in Sphinx.. option:: name, and then are indexed during doc build:option: `name`.. program:: unit, so that duplicated option names can be specified by adding the scope name before the field:option: `unit name`.sigelementsChore:
fail_on_warningon readthedocs build to prevent broken linksResolved issues
CHECKBOX-1747
Documentation
NA
Tests
PR checks on Readthedocs
Preview: https://canonical-checkbox--1739.com.readthedocs.build/en/1739/reference/units/job.html