Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R_basis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
formations
R_basis
Commits
9362051b
Commit
9362051b
authored
2 years ago
by
Carine Rey
Browse files
Options
Downloads
Patches
Plain Diff
try to fix rendering bug
parent
d83b5828
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Switch to main as default branch
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+18
-6
18 additions, 6 deletions
Makefile
session_1/session_1.Rmd
+1
-1
1 addition, 1 deletion
session_1/session_1.Rmd
www/style_Rmd.css
+2
-2
2 additions, 2 deletions
www/style_Rmd.css
with
21 additions
and
9 deletions
Makefile
+
18
−
6
View file @
9362051b
...
@@ -27,18 +27,30 @@ public/session_1.html: public/ session_1/session_1.Rmd public/www/style_Rmd.css
...
@@ -27,18 +27,30 @@ public/session_1.html: public/ session_1/session_1.Rmd public/www/style_Rmd.css
## Test docker in local
## Test docker in local
test
:
local/session_1.html
\
test
:
local/index.html
\
local/index.html
local/session_1.html
local/
:
local/
:
mkdir
-p
local
mkdir
-p
local
mkdir
-p
local
/www
mkdir
-p
local
/img
local/session_1.html
:
local/ session_1/session_1.Rmd www/style_Rmd.css
local/www/github-pandoc.css
:
local/ www/github-pandoc.css
docker run
--rm
-ti
-v
${
PWD
}
:/work
-w
/work rocker/r-rmd
\
cp
www/github-pandoc.css
local
/www/github-pandoc.css
local/www/style_Rmd.css
:
local/ www/style_Rmd.css
cp
www/style_Rmd.css
local
/www/style_Rmd.css
local/www/*.ttf
:
local/ www/Raleway-Regular.ttf www/YanoneKaffeesatz-Bold.ttf
cp
www/
*
ttf
local
/www/
local/session_1.html
:
local/ session_1/session_1.Rmd local/www/style_Rmd.css
docker run
--rm
-ti
-v
${
PWD
}
:/work
-w
/work rocker/tidyverse
\
Rscript
-e
'install.packages("rmdformats"); rmarkdown::render("session_1/session_1.Rmd", output_dir = "local/")'
Rscript
-e
'install.packages("rmdformats"); rmarkdown::render("session_1/session_1.Rmd", output_dir = "local/")'
local/index.html
:
local/ index.md www/github-pandoc.css
local/index.html
:
local/ index.md
local/
www/github-pandoc.css
docker run
--rm
-ti
-v
${
PWD
}
:/work
-w
/work rocker/
r-rmd
\
docker run
--rm
-ti
-v
${
PWD
}
:/work
-w
/work rocker/
tidyverse
\
pandoc
-s
-c
www/github-pandoc.css index.md
-o
local
/index.html
pandoc
-s
-c
www/github-pandoc.css index.md
-o
local
/index.html
clean
:
clean
:
...
...
This diff is collapsed.
Click to expand it.
session_1/session_1.Rmd
+
1
−
1
View file @
9362051b
...
@@ -8,7 +8,7 @@ output:
...
@@ -8,7 +8,7 @@ output:
use_bookdown: true
use_bookdown: true
default_style: "light"
default_style: "light"
lightbox: true
lightbox: true
css: "www/style_Rmd.css"
css: "
../
www/style_Rmd.css"
---
---
```{r setup, include=FALSE}
```{r setup, include=FALSE}
...
...
This diff is collapsed.
Click to expand it.
www/style_Rmd.css
+
2
−
2
View file @
9362051b
...
@@ -16,11 +16,11 @@ html, body {
...
@@ -16,11 +16,11 @@ html, body {
@font-face
{
@font-face
{
font-family
:
'Yanone Kaffeesatz'
;
font-family
:
'Yanone Kaffeesatz'
;
src
:
url("../
src
/YanoneKaffeesatz-Bold.ttf")
;
src
:
url("../
www
/YanoneKaffeesatz-Bold.ttf")
;
}
}
@font-face
{
@font-face
{
font-family
:
'Raleway'
;
font-family
:
'Raleway'
;
src
:
url("../
src
/Raleway-Regular.ttf")
;
src
:
url("../
www
/Raleway-Regular.ttf")
;
}
}
@import
url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz&display=swap')
;
@import
url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz&display=swap')
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment