docsには、ビルドが行われるvirtualenvにあらかじめインストールされているプラグインがほんの少数しかないことがあります。カスタムプラグインを使用してドキュメントサービスを読むにはどうしたらいいですか?サードパーティのpythonプラグイン extensionsの使い方は?
私は次の拡張子を追加したmkdocs.yml
設定ファイルに、少しドキュメントを構築するために
mkdocs
を使用しています
:に展開する際に、正常に動作しているプレビューがmkdocs serve
を添えてローカル環境では
markdown_extensions:
- smarty
- admonition
#https://pythonhosted.org/Markdown/extensions/abbreviations.html
- abbr
#https://pythonhosted.org/Markdown/extensions/definition_lists.html
- def_list
#https://pythonhosted.org/Markdown/extensions/footnotes.html
- footnotes
#https://facelessuser.github.io/pymdown-extensions/
- pymdownx.emoji:
emoji_generator: !!python/name:pymdownx.emoji.to_png
- pymdownx.details
- pymdownx.superfences
- pymdownx.caret
- pymdownx.mark
を(接続されたgithubリポジオを介して)ドキュメントを読むと、pymdownx
プラグインが見つからないためビルドに失敗しましたが、ビルドenvにあるデフォルトのプラグインとは別にRTDによって自動的に取得されたと思いました。