sphinx-markdown-builder icon indicating copy to clipboard operation
sphinx-markdown-builder copied to clipboard

[BUG] markdown_uri_doc_suffix and markdown_file_suffix ignored

Open barseghyanartur opened this issue 1 month ago • 4 comments

Describe the bug markdown_uri_doc_suffix and markdown_file_suffix ignored

To Reproduce Steps to reproduce the behavior: Filename: docs/conf.py


extensions = [
  ...,
  "sphinx_markdown_builder",
]

# -- Options for sphinx-markdown-builder -------------------------------------

# Configuration for the sphinx-markdown-builder extension
markdown_uri_doc_suffix = ".txt"
markdown_file_suffix = ".txt"

Command

sphinx-build -M markdown ./docs ./build -a -D markdown_file_suffix=".txt" -D markdown_uri_doc_suffix=".txt"

Result

Files still have .md extension, instead of .txt.

Expected behavior I expect the files to have .txt extension.

Environment (please complete the following information):

  • OS: macOS Sequoia
  • Version 15.7.2 (24G325)

Additional context

  • Python version: Python 3.12.12
  • Sphinx version: 5.3.0
  • pip list:
Sphinx                                   5.3.0
sphinx-autobuild                         2024.10.3
sphinx-markdown-builder                  0.6.8
sphinx-no-pragma                         0.1.1
sphinx-rtd-theme                         2.0.0
sphinxcontrib-applehelp                  2.0.0
sphinxcontrib-devhelp                    2.0.0
sphinxcontrib-htmlhelp                   2.1.0
sphinxcontrib-jquery                     4.1
sphinxcontrib-jsmath                     1.0.1
sphinxcontrib-qthelp                     2.0.0
sphinxcontrib-serializinghtml            2.0.0

barseghyanartur avatar Nov 27 '25 08:11 barseghyanartur

As far as markdown_file_suffix goes it was added two months ago in https://github.com/liran-funaro/sphinx-markdown-builder/pull/40, but a new release hasn't been cut since January.

jdillard avatar Dec 01 '25 22:12 jdillard

Ah... Why not release now? :) @liran-funaro

barseghyanartur avatar Dec 01 '25 22:12 barseghyanartur

I can indeed confirm, that with pip install https://github.com/liran-funaro/sphinx-markdown-builder/archive/refs/heads/main.zip it works.

barseghyanartur avatar Dec 01 '25 22:12 barseghyanartur

I glad it works well. I didn't have time to do the release. I'll try to attend to it this week or the next one.

liran-funaro avatar Dec 02 '25 16:12 liran-funaro

Fix released v0.6.9

liran-funaro avatar Dec 07 '25 14:12 liran-funaro