Skip to content

Commit 5d0a186

Browse files
committed
docs: added documentation
1 parent 7354d9e commit 5d0a186

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,28 @@ def call(){
107107
)
108108
}
109109
}
110+
stage('Building Documentation'){
111+
steps {
112+
catchError(buildResult: 'UNSTABLE', message: 'Building Sphinx documentation has issues', stageResult: 'UNSTABLE') {
113+
sh(label: 'Running Sphinx',
114+
script: 'uv run -m sphinx -b html docs build/docs/html -d build/docs/doctrees -v -w logs/build_sphinx.log -W --keep-going'
115+
)
116+
}
117+
}
118+
post{
119+
always {
120+
recordIssues(tools: [sphinxBuild(name: 'Sphinx Documentation Build', pattern: 'logs/build_sphinx.log', id: 'sphinx_build')])
121+
}
122+
success{
123+
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'build/docs/html', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
124+
script{
125+
def props = readTOML( file: 'pyproject.toml')['project']
126+
zip archive: true, dir: 'build/docs/html', glob: '', zipFile: "dist/${props.name}-${props.version}.doc.zip"
127+
}
128+
stash includes: 'dist/*.doc.zip,build/docs/html/**', name: 'DOCS_ARCHIVE'
129+
}
130+
}
131+
}
110132
stage('Running Tests'){
111133
parallel {
112134
stage('PyTest'){

0 commit comments

Comments
 (0)