[flang-commits] [flang] [Documentation] Fix some invalid references in sphinx documentation (PR #68239)

via flang-commits flang-commits at lists.llvm.org
Wed Oct 4 10:57:19 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {darker}-->

:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 45a334d31cc3a22b1aa28ba463130eb8622abad7..c880f321e45e7d145809184c5aed0875f54da9ec llvm/docs/llvm_slug.py flang/docs/conf.py llvm/docs/conf.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- llvm/docs/conf.py	2023-10-04 17:43:46.000000 +0000
+++ llvm/docs/conf.py	2023-10-04 17:57:11.815013 +0000
@@ -15,11 +15,11 @@
 from datetime import date
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath("."))
 
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
 # needs_sphinx = '1.0'
@@ -28,10 +28,11 @@
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = ["myst_parser", "sphinx.ext.intersphinx", "sphinx.ext.todo"]
 
 # Automatic anchors for markdown titles
 from llvm_slug import make_slug
+
 myst_heading_anchors = 6
 myst_heading_slug_func = make_slug
 
 
 # Add any paths that contain templates here, relative to this directory.

``````````

</details>


https://github.com/llvm/llvm-project/pull/68239


More information about the flang-commits mailing list