sphinx-doc / sphinx-autobuild

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
MIT License
552 stars 83 forks source link

Can not build project (a folder is not found?) #186

Open Gabriel-p opened 4 days ago

Gabriel-p commented 4 days ago

I'm trying to generate the docs for my project https://github.com/asteca/ASteCA. The old command:

$ make clean & make html

works fine.

Here's the output when using this package:

$ sphinx-autobuild docs docs/_build/html
[sphinx-autobuild] Starting initial build
[sphinx-autobuild] > python -m sphinx build docs docs/_build/html
Ejecutando Sphinx v8.0.2
cargando traducciones [en]... hecho
[Autodoc2] Analysing package...[100%] asteca.membership
[Autodoc2] Determining files to write ...
[Autodoc2] Writing modules...[100%] asteca.synthetic
myst v4.0.0: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions={'amsmath', 'dollarmath'}, disable_syntax=[], all_links_external=False, links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, fence_as_directive=set(), number_code_blocks=[], title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, footnote_sort=True, footnote_transition=True, words_per_minute=200, substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
myst-nb v1.1.2: NbParserConfig(custom_formats={}, metadata_key='mystnb', cell_metadata_key='mystnb', kernel_rgx_aliases={}, eval_name_regex='^[a-zA-Z_][a-zA-Z0-9_]*$', execution_mode='off', execution_cache_path='', execution_excludepatterns=(), execution_timeout=30, execution_in_temp=False, execution_allow_errors=False, execution_raise_on_error=False, execution_show_tb=False, merge_streams=False, render_plugin='default', remove_code_source=False, remove_code_outputs=False, code_prompt_show='Show code cell {type}', code_prompt_hide='Hide code cell {type}', number_source_lines=False, output_stderr='show', render_text_lexer='myst-ansi', render_error_lexer='ipythontb', render_image_options={}, render_figure_options={}, render_markdown_format='commonmark', output_folder='build', append_css=True, metadata_to_fm=False)
Using jupyter-cache at: /home/gabriel/Github/ASteCA/ASteCA/asteca/docs/_build/.jupyter_cache
compilando [mo]: los objetivos para 0 los archivos po que estan desactualizados
escribiendo salida... 
compilando [html]: los objetivos para 21 los archivos fuentes que estan desactualizados
actualizando ambiente: [nueva configuración] 21añadido, 0 cambiado, 0 removido
leyendo fuentes... [  5%] CHANGELOG
Extension error:
Manipulador <function source_read_handler at 0x7a6ab06ecb80> para el evento 'source-read' lanzó una excepción (exception: [Errno 2] No existe el archivo o el directorio: './apidocs/asteca/')
Sphinx exited with exit code: 2
The server will continue serving the build folder, but the contents being served are no longer in sync with the documentation sources. Please fix the cause of the error above or press Ctrl+C to stop the server.
[sphinx-autobuild] Serving on http://127.0.0.1:8000
[sphinx-autobuild] Waiting to detect changes...

the result is a Not found site.