Код: Выделить всё
sphinx-apidoc -F -o "./docs" --templatedir=./templates "."
Не могли бы вы помочь мне понять, как решить эту проблему?
Спасибо за сотрудничество.Вот подробности проблемы.
Спасибо за помощь.
- ОС
ОС: Windows - Оболочка: PowerShell
- Среда Python:
Miniconda: 24.1.2
< li>Python: 3.12.2
[*]выполненный результат
Код: Выделить всё
ファイル C:\Users\username\Downloads\test\docs\conf.py を作成しています。
ファイル C:\Users\username\Downloads\test\docs\index.rst を作成しています。
ファイル C:\Users\username\Downloads\test\docs\Makefile を作成しています。
ファイル C:\Users\username\Downloads\test\docs\make.bat を作成しています。
Код: Выделить всё
conf.py_t
Код: Выделить всё
#hogehoge
#hogehoge
#hogehoge
#hogehoge
#hogehoge
#hogehoge
#hogehoge
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os
import sys
sys.path.insert(0, os.path.abspath('../'))
# -- Project information -----------------------------------------------------
project = '{{ project_name }}'
copyright = '{{ copyright_year }}, {{ author }}'
author = '{{ author }}'
# The full version, including alpha/beta/rc tags
release = '{{ version }}'
# -- General configuration ---------------------------------------------------
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode'
]
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
html_theme = 'alabaster'
html_static_path = ['_static']
Код: Выделить всё
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'test'
copyright = '2024, Author'
author = 'Author'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.todo',
]
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
language = 'en'
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'alabaster'
html_static_path = ['_static']
# -- Options for todo extension ----------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration
todo_include_todos = True
Примечание. Я создал репозиторий GitHub, в котором можно воспроизвести проблему. При необходимости посмотрите
https://github.com/wassawa1/sphinx-temp ... st/actions
Подробнее здесь: https://stackoverflow.com/questions/791 ... s-expected