This userscript has moved to https://github.com/lesteve/userscripts/blob/master/add-button-for-pr-circleci-doc.user.js.
Last active
March 2, 2018 08:54
-
-
Save lesteve/470170f288884ec052bcf4bc4ffe958a to your computer and use it in GitHub Desktop.
Greasemonkey script that adds a button to the PR page to open the doc generated by CircleCI for this PR.
This is great. Can confirm it also works on Chome with Tampermonkey.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This involves three components (which I introduced piece by piece):
/circle?<CIRCLE_ID>/<PATH>
to the corresponding artifact path_changed.html
being output in the build process, which uses some heuristics for mappingexamples
toauto_examples
and similar for generated docs. It could be improved particularly by matching more precisely which docstrings were modified. Atm it just lands up reporting all public objects from a module.How to package this all up? I'm not sure! The first step is not strictly necessary; one only needs a way to template and into a URL.