From dd7f3b99d79dd9b11d2c4f1671738bd3a90c9069 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 27 Feb 2017 16:17:37 -0500 Subject: [PATCH] stronger code styling --- view/template/developer/_quickstartApi.php | 6 +++--- view/template/developer/_quickstartCredits.php | 2 +- web/scss/_code.scss | 12 ++++++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/view/template/developer/_quickstartApi.php b/view/template/developer/_quickstartApi.php index f2c1111e..0e2d4477 100644 --- a/view/template/developer/_quickstartApi.php +++ b/view/template/developer/_quickstartApi.php @@ -1,6 +1,6 @@

The API

- When running, the LBRY daemon provides a JSON-RPC server running at https://localhost:5279/lbryapi. + When running, the LBRY daemon provides a JSON-RPC server running at https://localhost:5279/lbryapi.

It can be accessed by any utility capable of making HTTPS GET and POST requests, such as cURL or possibly your toaster. @@ -25,8 +25,8 @@ "thumbnail": "https:\/\/s3.amazonaws.com\/files.lbry.io\/logo.png" } ] -

Above, we called the method resolve_name for the URL lbry://what. This returned the metadata associated with the URL.

-

Now let's download it. This time we're going to call the method get with the same parameters.

+

Above, we called the method resolve_name for the URL lbry://what. This returned the metadata associated with the URL.

+

Now let's download it. This time we're going to call the method get with the same parameters.

$curl 'http://localhost:5279/lbryapi' --data '{"method":"get","params":{"name":"what"} }' ["d5169241150022f996fa7cd6a9a1c421937276a3275eb912790bd07ba7aec1fac5fd45431d226b8fb402691e79aeb24b"]

The LBRY API consists about 50 calls, all related to discovering, distributing, and purchasing content. View the full API documentation.

diff --git a/view/template/developer/_quickstartCredits.php b/view/template/developer/_quickstartCredits.php index e148c05c..f2575aa5 100644 --- a/view/template/developer/_quickstartCredits.php +++ b/view/template/developer/_quickstartCredits.php @@ -9,7 +9,7 @@ 'returnUrl' => Request::getRelativeUri() . '#new-developer' ]) ?> -

Next, confirm you've received your credits by calling wallet_balance:

+

Next, confirm you've received your credits by calling wallet_balance:

$curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_balance"}' [50.00000000]

Publishing

diff --git a/web/scss/_code.scss b/web/scss/_code.scss index 1d825263..fd046f77 100644 --- a/web/scss/_code.scss +++ b/web/scss/_code.scss @@ -9,10 +9,14 @@ code padding: 3px 5px; font-family: $font-mono; color: darken($color-primary, 10%); -} -.code-plain -{ - font-family: $font-mono; + &.code-inline { + padding: 0; + margin-left: 1px; + margin-right: 1px; + font-weight: bold; + color: inherit; + background-color: transparent; + } } pre {