diff --git a/Jenkinsfile b/Jenkinsfile index f308af3..3f1b524 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,6 @@ pipeline { SPHINX_DIR = 'docs' BUILD_DIR = 'build/html' SOURCE_DIR = 'source' - DEPLOY_HOST = 'deployer@www.example.com:/path/to/docs/' } stages { stage('Build') { @@ -24,14 +23,12 @@ pipeline { // clear out old files sh 'rm -rf ${BUILD_DIR}' sh 'rm -f ${SPHINX_DIR}/sphinx-build.log' - sh 'ls' sh ''' pyenv/bin/sphinx-build \ -w ${SPHINX_DIR}/sphinx-build.log \ -b html ${SPHINX_DIR}/${SOURCE_DIR} ${SPHINX_DIR}/${BUILD_DIR} ''' stash includes: 'docs/build/html/**/*.*', name: 'html' - // archiveArtifacts 'docs/build/html/**/*.*', onlyIfSuccessful: true } post { failure { @@ -45,33 +42,9 @@ pipeline { } steps { unstash 'html' - sh 'ls docs/build/html' - sh 'df -hT' - sh 'hostname' - sh 'cp -r docs/build/html /opt/esbo-etc/' + sh 'rm -rf /opt/esbo-etc/html/*' + sh 'cp -rf docs/build/html /opt/esbo-etc/' } } -/* - stage('Deploy') { - steps { - sshagent(credentials: ['deployer']) { - sh '''#!/bin/bash - rm -f ${SPHINX_DIR}/rsync.log - RSYNCOPT=(-aze 'ssh -o StrictHostKeyChecking=no') - rsync "${RSYNCOPT[@]}" \ - --exclude-from=${SPHINX_DIR}/rsync-exclude.txt \ - --log-file=${SPHINX_DIR}/rsync.log \ - --delete \ - ${BUILD_DIR}/ ${DEPLOY_HOST} - ''' - } - } - post { - failure { - sh 'cat ${SPHINX_DIR}/rsync.log' - } - } - } -*/ } } \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 684ffb3..1f88625 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,11 +9,11 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -# -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) -import sphinx_rtd_theme + +import os +import sys +sys.path.insert(0, os.path.abspath('.')) +# import sphinx_rtd_theme # -- Project information -----------------------------------------------------