mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
0023548: [CEA] Generation of documentation is broken if sphinxcontrib.napolen extension is not available
This commit is contained in:
parent
d8bc110152
commit
df4c8718db
@ -132,6 +132,7 @@ IF(SALOME_BUILD_TESTS)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
IF(SALOME_BUILD_DOC)
|
IF(SALOME_BUILD_DOC)
|
||||||
FIND_PACKAGE(SalomeDoxygen)
|
FIND_PACKAGE(SalomeDoxygen)
|
||||||
|
SET(Sphinx_EXTENSIONS sphinxcontrib.napoleon)
|
||||||
FIND_PACKAGE(SalomeSphinx)
|
FIND_PACKAGE(SalomeSphinx)
|
||||||
SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
|
SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
|
||||||
SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
|
SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
|
||||||
|
@ -23,9 +23,13 @@ import sys, os
|
|||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
extensions = ['sphinx.ext.autodoc',
|
extensions = ['sphinx.ext.autodoc']
|
||||||
'sphinxcontrib.napoleon'
|
try:
|
||||||
]
|
import sphinxcontrib.napoleon
|
||||||
|
extensions += ['sphinxcontrib.napoleon']
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
#add pdfbuilder to build a pdf with rst2pdf
|
#add pdfbuilder to build a pdf with rst2pdf
|
||||||
#extensions = ['rst2pdf.pdfbuilder']
|
#extensions = ['rst2pdf.pdfbuilder']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user