This is a docker container for being able to build a site with MKDocs.
It includes MKDocs Material which is a highly recommendable theme.
For more information, see the requirements.txt.
This is image is made and maintained for the use in Jenkins pipelines.
Either via the Groovy based Pipeline DSL or the declarative pipeline syntax.
node('docker') {
stage('SCM') {
checkout scm
}
stage('Build Docs') {
docker.image('caladreas/mkdocs-docker-build-container').inside {
sh 'mkdocs build'
}
}
}
pipeline {
agent none
options {
timeout(time: 10, unit: 'MINUTES')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('Checkout'){
agent { label 'docker' }
steps {
checkout scm
}
}
stage('Build Docs') {
agent {
docker {
image "caladreas/mkdocs-docker-build-container"
label "docker"
}
}
steps {
sh 'mkdocs build'
}
}
}
}