From cfa9f9170a9cdfad5dbe88f6c76d2f939953724b Mon Sep 17 00:00:00 2001 From: Simon Eskildsen Date: Mon, 27 Apr 2020 08:34:30 -0400 Subject: readme: add printing section --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf82989..c74ffe4 100644 --- a/README.md +++ b/README.md @@ -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, -- cgit v1.2.3 From 944dcb1827905c2b87b6b062e33e66841c434747 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 27 Apr 2020 17:17:09 +0100 Subject: minor fixes to release script --- make_release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()), -- cgit v1.2.3