Repository navigation
docs: remove unused file mesa.md - #4065
Conversation
|
Checked One regression needs fixing before merge: the generated source pages have 16 new broken Please keep the cleanup but fix those source backlinks. Adding Also, please move the description into the bug PR template and fill in its sections. The current explanation and build evidence can be reused. The build totals vary with the environment, so the remaining warnings should not be treated as caused by this PR. |
|
Thanks for the detailed check. I added |
|
checked the updated version, the fix looks good to me. lgtm |
|
Is there any place where we link to mesa.md? I can't find it, in which case the entire file might be redundant. |
|
I kept the file at first because I was worried that deleting it would break the docs build or the mesa.Model / mesa.Agent references, so I only removed the duplicate and broken parts. I didn't check whether anything actually links to the page itself. I checked now: it isn't in any toctree (the build warns "document isn't included in any toctree") and nothing links to it. I built the docs with and without it and got 170 warnings with mesa.md included and 88 without it and no broken links or unresolved references. The only thing lost is the top-level mesa.Model / mesa.Agent / mesa.DataCollector anchors (the real pages under apis/ stay). Should I delete the whole file in this PR? I'd keep viewcode_follow_imported_members = False in conf.py either way, since without it some [docs] backlinks are still broken. |
Not sure what you mean with this. But given that it is not used, removing seems more sensible. |
|
I have deleted the file . By "anchors" I meant the duplicate shortcut entries mesa.Model / mesa.Agent / mesa.DataCollector that lived on that page , the real entries under apis/ are unchanged. I have also updated the title and description . |
Pre-PR Checklist
Summary
Removes
docs/mesa.md, a leftover page that is not used anywhere in the docs.Bug / Issue
docs/mesa.mdis a leftover fromsphinx-apidoc. It is not in any toctree (the build warns "document isn't included in any toctree") and nothing links to it. It also causes build problems:mesa.mainsection for a module that does not exist, which gives an import failure on every build.mesa.agent,mesa.datacollectionandmesa.model, which are already documented underdocs/apis/. This causes duplicate object description warnings.Implementation
docs/mesa.md.viewcode_follow_imported_members = Falseindocs/conf.py. Without it, some[docs]links on the generated source pages point to anchors that do not exist. With it, they go to where the object is documented (for exampleapis/model.html).Testing
Built the docs with and without the file (clean builds, notebooks off):
python -m sphinx -E -a -b html -D nb_execution_mode=off . _buildmesa.mdmesa.mdNo broken links or unresolved references appeared after the deletion. Total warning counts vary by environment, so the remaining warnings are not caused by this PR.
Additional Notes
The top-level shortcut names
mesa.Model,mesa.Agentandmesa.DataCollectorwere only documented on this page and are no longer documented. The real entries underdocs/apis/(for examplemesa.model.Model) are unchanged.