Fix rst2html5
This commit is contained in:
@@ -2,8 +2,8 @@ image: alpine/edge
|
||||
packages:
|
||||
- curl
|
||||
- git
|
||||
- openssh
|
||||
- py3-docutils
|
||||
- py3-pip
|
||||
- python3
|
||||
sources:
|
||||
- https://git.sr.ht/~sumner/sublime-music
|
||||
secrets:
|
||||
@@ -17,17 +17,19 @@ triggers:
|
||||
to: ~sumner/sublime-music-devel@lists.sr.ht
|
||||
tasks:
|
||||
- setup: |
|
||||
pip3 install rst2html5
|
||||
echo "cd ${REPO_NAME}" >> ~/.buildenv
|
||||
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.buildenv
|
||||
|
||||
# If we are on the master branch, compile the README.rst to HTML and set it
|
||||
# as the README for the repo.
|
||||
- readme: |
|
||||
set +x
|
||||
git branch --contains | grep master &&
|
||||
rst2html5 --no-doc-title README.rst | \
|
||||
curl -H "Content-Type: text/html" \
|
||||
-H "Authorization: Bearer $(cat ~/.readme-token)" \
|
||||
-XPUT \
|
||||
--data-binary @- \
|
||||
rst2html5 --template="{body}" README.rst | \
|
||||
curl -H "Content-Type: text/html" \
|
||||
-H "Authorization: Bearer $(cat ~/.readme-token)" \
|
||||
-XPUT \
|
||||
--data-binary @- \
|
||||
"https://git.sr.ht/api/repos/${REPO_NAME}/readme" &&
|
||||
echo "README set" || echo "Skipping README set because not on master"
|
||||
|
34
poetry.lock
generated
34
poetry.lock
generated
@@ -314,6 +314,18 @@ python-versions = "*"
|
||||
[package.extras]
|
||||
speedup = ["python-levenshtein (>=0.12)"]
|
||||
|
||||
[[package]]
|
||||
name = "genshi"
|
||||
version = "0.7.3"
|
||||
description = "A toolkit for generation of output for the web"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[package.extras]
|
||||
i18n = ["Babel (>=0.8)"]
|
||||
plugin = ["setuptools (>=0.6a2)"]
|
||||
|
||||
[[package]]
|
||||
name = "idna"
|
||||
version = "2.10"
|
||||
@@ -725,6 +737,19 @@ category = "dev"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[[package]]
|
||||
name = "rst2html5"
|
||||
version = "1.10.6"
|
||||
description = "Generates (X)HTML5 documents from standalone reStructuredText sources"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[package.dependencies]
|
||||
docutils = ">=0.14"
|
||||
genshi = ">=0.7"
|
||||
pygments = ">=2.0.2"
|
||||
|
||||
[[package]]
|
||||
name = "secretstorage"
|
||||
version = "3.1.2"
|
||||
@@ -971,7 +996,7 @@ server = ["bottle"]
|
||||
[metadata]
|
||||
lock-version = "1.0"
|
||||
python-versions = "^3.8"
|
||||
content-hash = "9b5bc5f3a3b231e3366a8d7120c3fad10bd9a37601c05f73def347ccf659deb7"
|
||||
content-hash = "8f2347fd5d6fb642a38a353623b5176a1c6766317c5bb165ef48779663b31d38"
|
||||
|
||||
[metadata.files]
|
||||
alabaster = [
|
||||
@@ -1166,6 +1191,10 @@ fuzzywuzzy = [
|
||||
{file = "fuzzywuzzy-0.18.0-py2.py3-none-any.whl", hash = "sha256:928244b28db720d1e0ee7587acf660ea49d7e4c632569cad4f1cd7e68a5f0993"},
|
||||
{file = "fuzzywuzzy-0.18.0.tar.gz", hash = "sha256:45016e92264780e58972dca1b3d939ac864b78437422beecebb3095f8efd00e8"},
|
||||
]
|
||||
genshi = [
|
||||
{file = "Genshi-0.7.3-py3-none-any.whl", hash = "sha256:5e92e278ca1ea395349a451d54fc81dc3c1b543c48939a15bd36b7b3335e1560"},
|
||||
{file = "Genshi-0.7.3.tar.gz", hash = "sha256:7933c95151d7dd2124a2b4c8dd85bb6aec881ca17c0556da0b40e56434b313a0"},
|
||||
]
|
||||
idna = [
|
||||
{file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"},
|
||||
{file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"},
|
||||
@@ -1394,6 +1423,9 @@ requirements-parser = [
|
||||
{file = "requirements-parser-0.2.0.tar.gz", hash = "sha256:5963ee895c2d05ae9f58d3fc641082fb38021618979d6a152b6b1398bd7d4ed4"},
|
||||
{file = "requirements_parser-0.2.0-py2-none-any.whl", hash = "sha256:76650b4a9d98fc65edf008a7920c076bb2a76c08eaae230ce4cfc6f51ea6a773"},
|
||||
]
|
||||
rst2html5 = [
|
||||
{file = "rst2html5-1.10.6-py2.py3-none-any.whl", hash = "sha256:8e64e80c52d0383aa04f2701a7627c2f2a09d59c61a3dc3555d845333bc31648"},
|
||||
]
|
||||
secretstorage = [
|
||||
{file = "SecretStorage-3.1.2-py3-none-any.whl", hash = "sha256:b5ec909dde94d4ae2fa26af7c089036997030f0cf0a5cb372b4cccabd81c143b"},
|
||||
{file = "SecretStorage-3.1.2.tar.gz", hash = "sha256:15da8a989b65498e29be338b3b279965f1b8f09b9668bd8010da183024c8bff6"},
|
||||
|
@@ -60,6 +60,7 @@ termcolor = "^1.1.0"
|
||||
requirements-parser = "^0.2.0"
|
||||
sphinx = "^3.2.1"
|
||||
sphinx_rtd_theme = "^0.5.0"
|
||||
rst2html5 = "^1.10.6"
|
||||
|
||||
[tool.poetry.extras]
|
||||
chromecast = ["pychromecast"]
|
||||
|
Reference in New Issue
Block a user