From 353cfc20742aaa069eecba2b291cb56a78e4d497 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 2 Aug 2018 13:52:35 -0400 Subject: [PATCH] 13609: Improve README fomatting a bit. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- doc/css/code.css | 9 +++++++++ sdk/R/README.Rmd | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/css/code.css b/doc/css/code.css index 543a14de0b..ff4a58e12c 100644 --- a/doc/css/code.css +++ b/doc/css/code.css @@ -29,3 +29,12 @@ table.code tr td:nth-child(2) { .userinput { color: #d14; } + +table.CodeRay { + margin-left: 3em; + width: calc(100% - 6em); +} + +td.line-numbers { + width: 2em; +} diff --git a/sdk/R/README.Rmd b/sdk/R/README.Rmd index 7ea226fd09..18454bf2ae 100644 --- a/sdk/R/README.Rmd +++ b/sdk/R/README.Rmd @@ -133,7 +133,7 @@ files <- collection$getFileListing() arvadosFile <- collection$get("location/to/my/file.cpp") ``` - or +or ```{r} arvadosSubcollection <- collection$get("location/to/my/directory/") @@ -177,7 +177,7 @@ fileContent <- arvadosFile$read("raw", offset = 1024, length = 512) size <- arvadosFile$getSizeInBytes() ``` - or +or ```{r} size <- arvadosSubcollection$getSizeInBytes() @@ -189,7 +189,7 @@ size <- arvadosSubcollection$getSizeInBytes() collection$create(files) ``` - Example: +Example: ```{r} mainFile <- collection$create("cpp/src/main.cpp") -- 2.30.2