Last active
July 5, 2022 16:15
-
-
Save maxromanovsky/ec01d455b61f30a88d218f9a19086e86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
; clone or download latest https://github.com/aws/sagemaker-python-sdk | |
cd sagemaker-python-sdk/doc | |
pipx install doc2dash | |
python3 -m venv .venv | |
. .venv/bin/activate | |
pip3 install -r requirements.txt | |
; see https://github.com/readthedocs/readthedocs.org/issues/9038 | |
pip3 install "Jinja2<3.1" sagemaker | |
; Edit Makefile and set empty SPHINXOPTS = | |
make html | |
; download latest asset package: https://aws.amazon.com/architecture/icons/ | |
doc2dash -A -n sagemaker -u "https://sagemaker.readthedocs.io/" -f -j -I index.html -i ~/Downloads/Architecture-Service-Icons_04302022/Arch_Machine-Learning/16/Arch_Amazon-SageMaker_16.png _build/html | |
rm -rfv ~/Downloads/sagemaker.docset && cp -R ~/Library/Application\ Support/doc2dash/DocSets/sagemaker.docset ~/Downloads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment