55The basic operation is:
66
771. Add this extension to your ``conf.py`` extensions.
8- 2. Add ``missing_references_freeze = True`` to your ``conf.py``
8+ 2. Add ``missing_references_write_json = True`` to your ``conf.py``
993. Run sphinx-build. It will generate ``missing-references.json``
1010 next to your ``conf.py``.
11- 4. Remove ``missing_references_freeze = True`` from your
11+ 4. Remove ``missing_references_write_json = True`` from your
1212 ``conf.py`` (or set it to ``False``)
13135. Run sphinx-build again, and ``nitpick_ignore`` will
1414 contain all of the previously failed references.
2020
2121
2222def record_missing_reference_handler (app , env , node , contnode ):
23- if not app .config .missing_references_freeze :
23+ if not app .config .missing_references_write_json :
2424 # no-op when we are disabled.
2525 return
2626
@@ -38,7 +38,7 @@ def record_missing_reference_handler(app, env, node, contnode):
3838
3939
4040def save_missing_references_handler (app , exc ):
41- if not app .config .missing_references_freeze :
41+ if not app .config .missing_references_write_json :
4242 # no-op when we are disabled.
4343 return
4444
@@ -48,7 +48,7 @@ def save_missing_references_handler(app, exc):
4848
4949
5050def prepare_missing_references_handler (app , config ):
51- if config .missing_references_freeze :
51+ if config .missing_references_write_json :
5252 return
5353
5454 path = os .path .join (app .confdir , "missing-references.json" )
@@ -62,7 +62,7 @@ def prepare_missing_references_handler(app, config):
6262
6363
6464def setup (app ):
65- app .add_config_value ("missing_references_freeze " , False , "env" )
65+ app .add_config_value ("missing_references_write_json " , False , "env" )
6666
6767 app .connect ("config-inited" , prepare_missing_references_handler )
6868 app .connect ("missing-reference" , record_missing_reference_handler )
0 commit comments