- Clone https://github.com/pytest-dev/pytest.
- Checkout the version you want to build the docs for.
- Install the following dependencies (I suggest Poetry for this step):
- pytest
- sphinx
- doc2dash
- In
pytest/doc/en
runmake html
. - Generate the docs with
doc2dash -n pytest _build/html/
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
stage('Get response and status code') { | |
curlCommand = "curl -s -w '%{response_code}' www.example.com" | |
response = sh(script: curlCommand, returnStdout: true).trim() | |
responseCode = response.tokenize('\n').last() | |
} | |
} |