[PATCH 0/8] Sphinx extension fix + logging/warning cleanups

From
Vegard Nossum <hidden>
Date
2024-02-05 17:51:58
Hi,

The first patch in the series fixes the "UnboundLocalError: local
variable 'fname' referenced before assignment" error and should
probably go into v6.8 and then stable.

The rest are just cleanup/improvements, mainly the removal of
kernellog.py in favour of sphinx.util.logging, but also adding a
warning if you pass something strange to the kernel-abi:: or
kernel-feat:: directives.

The reason I'm sending these two things together is that there
is a very slight dependency on the very first patch.

I've tested on 2.4.4, 4.3.2, and 7.3.0+/b660154eaf71 by running
make cleandocs; make htmldocs. Figures, features, and ABI lists
looked fine to me.


Vegard

---

Vegard Nossum (8):
  docs: kernel_feat.py: fix build error for missing files
  docs: kernel_{abi,feat}.py: use doc.current_source
  doc: kernel_abi.py: convert to sphinx.util.logging
  doc: kernel_feat.py: convert to sphinx.util.logging
  doc: kerneldoc.py: convert to sphinx.util.logging
  doc: kfigure.py: convert to sphinx.util.logging
  doc: remove kernellog.py
  doc: kernel_{abi,feat}.py: warn about missing directory

 Documentation/sphinx/kernel_abi.py  | 15 +++++--
 Documentation/sphinx/kernel_feat.py | 19 +++++----
 Documentation/sphinx/kerneldoc.py   | 14 +++---
 Documentation/sphinx/kernellog.py   | 22 ----------
 Documentation/sphinx/kfigure.py     | 66 ++++++++++++++---------------
 5 files changed, 60 insertions(+), 76 deletions(-)
 delete mode 100644 Documentation/sphinx/kernellog.py

-- 
2.34.1
Thread (32 messages) 32 messages, 6 authors, last reply 2024-02-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help