diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-04-27 17:20:34 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-04-27 17:20:34 +0100 |
| commit | 784db5af9466d15a50f7d6f46e54950ddd6c02cd (patch) | |
| tree | 48f33bbb02a6c5c0e656c3a8057a4cd49c0052d9 | |
| parent | Properly resolve image urls (fixes #45) (diff) | |
| parent | Merge branch 'sirupsen-print-macos' (diff) | |
| download | paper2remarkable-784db5af9466d15a50f7d6f46e54950ddd6c02cd.tar.gz paper2remarkable-784db5af9466d15a50f7d6f46e54950ddd6c02cd.zip | |
Merge branch 'master' into bugfix/html-images
| -rw-r--r-- | README.md | 21 | ||||
| -rw-r--r-- | make_release.py | 4 |
2 files changed, 21 insertions, 4 deletions
@@ -18,8 +18,8 @@ $ p2r https://hbr.org/2019/11/getting-your-team-to-do-more-than-meet-deadlines The script can be run through the ``p2r`` command line program or via Docker (see below). If you're using MacOS, you might be interested in the [Alfred -workflow](#alfred). On Linux, a background terminal such as -[Guake](http://guake-project.org/) can be very handy. +workflow](#alfred) or [Printing to p2r](#printing). On Linux, a background +terminal such as [Guake](http://guake-project.org/) can be very handy. ``paper2remarkable`` makes it as easy as possible to get a PDF on your reMarkable from any of the following sources: @@ -170,6 +170,23 @@ You can edit the Workflow in Alfred if this doesn't work for your setup. [workflow]: https://github.com/GjjvdBurg/paper2remarkable/blob/master/Remarkable.alfredworkflow?raw=true +## Printing + +Printing to `p2r` allows printing prompts to save directly to your reMarkable +tablet, passing through `p2r` for processing. + +For MacOS, you can follow [the guide][print-guide] for printing with `rmapi`, +but for the bash script, instead use this script: + +``` +for f in "$@" +do + bash -c -l "p2r --right '$f'" +done +``` + +[print-guide]: https://github.com/juruen/rmapi/blob/master/docs/tutorial-print-macosx.md + ## Docker If you'd like to avoid installing the dependencies directly on your machine, diff --git a/make_release.py b/make_release.py index b3ea935..cb4af59 100644 --- a/make_release.py +++ b/make_release.py @@ -52,7 +52,7 @@ def get_package_name(): ) return nameline.split("=")[-1].strip().strip('"') -def get_package_version(): +def get_package_version(pkgname): ctx = {} with open(f"{pkgname.lower()}/__version__.py", "r") as fp: exec(fp.read(), ctx) @@ -220,7 +220,7 @@ class WaitForRTD(Step): ) -def main(): +def main(target=None): colorama.init() procedure = [ ("gittomaster", GitToMaster()), |
