1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SphinxのWARNING解決メモ

Last updated at Posted at 2021-02-06

初めに

Sphinxでのドキュメント生成はオリジナルで自動生成を行おうとする際にwaringが割と発生する。
特に一定期間触れないと忘れるので、対策後にまとめる。
したがって、新たに発生したら追記しようと思う。

WARNING: Title underline too short.

Title underline too short.

見出しに使用するテキストより、見出し指定を行うアンダーラインが短いと出るエラー。

[NG]
text
==

[OK]
text
========

WARNING: Field list ends without a blank line; unexpected unindent.

Field list ends without a blank line; unexpected unindent.

フィールドリスト(ブロック)や属性を設定するなどを示す区切り文字としてコロンが使用されている。
但し、コロンはソースコードの各行1文字目に置くことができない。
ただの文字としては空白を設けることでエラーを防げるが、元々のフィールドリストを記載したい場合はその記法に則った記載を行う。

[NG]
: 

[OK]
 :

WARNING: the following exception was raised

autodoc: failed to import function 'xxx_function' from module 'xxx_module'; the following exception was raised:
No module named 'xxx_module'

autodoc拡張を使用している場合において、moduleがルートディレクトリ内に存在しない。
ルート設定はしているが、moduleを認識できていない。
未解決。

最後に

追記した場合は以下に記載していく。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?