[all-commits] [llvm/llvm-project] af6ec9: [lldb] Cleanup Python API reference files after bu...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jun 16 16:31:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af6ec9200b09039573d85e349496c4f5b17c3d7f
      https://github.com/llvm/llvm-project/commit/af6ec9200b09039573d85e349496c4f5b17c3d7f
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

  Changed paths:
    M lldb/docs/conf.py

  Log Message:
  -----------
  [lldb] Cleanup Python API reference files after building the docs

The sphinx-automodapi extension requires that the generated RST files
live next to the index file. This means that we generate them in the
source directory rather than the build directory. This patch ensures
these files are removed again when sphinx finishes its build.

The proper solution to this problem would be to move everything in the
doc folder from the source directory to the build directory before
generating the docs.

I believe that old RST files being kept around is the reason that the
Python API references on the website isn't getting updated. This patch
is meant as a speculative fix and a way to confirm that.




More information about the All-commits mailing list