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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
CAN
R_basis
Commits
0039f171
Commit
0039f171
authored
2 years ago
by
Carine Rey
Browse files
Options
Downloads
Patches
Plain Diff
start to use gitlab pages
parent
01f4619d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
Makefile
+43
-0
43 additions, 0 deletions
Makefile
with
56 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
13
−
0
View file @
0039f171
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
pages
:
stage
:
deploy
image
:
rocker/r-rmd
script
:
-
make
artifacts
:
paths
:
-
public
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
43
−
0
View file @
0039f171
all
:
public/index.html
\
public/session_1.html
public/
:
mkdir
-p
public
mkdir
-p
public/www
mkdir
-p
public/img
public/www/github-pandoc.css
:
www/github-pandoc.css
cp
www/github-pandoc.css public/www/github-pandoc.css
public/www/style_Rmd.css
:
www/style_Rmd.css
cp
www/style_Rmd.css public/www/style_Rmd.css
public/www/*.ttf
:
www/Raleway-Regular.ttf www/YanoneKaffeesatz-Bold.ttf
cp
www/
*
ttf public/www/
public/index.html
:
public/ index.md public/www/github-pandoc.css
pandoc
-s
-c
www/github-pandoc.css index.md
-o
public/index.html
public/session_1.html
:
public/ session_1/session_1.Rmd public/www/style_Rmd.css
Rscript
-e
'install.packages("rmdformats"); rmarkdown::render("session_1/session_1.Rmd", output_dir = "public/")'
## Test docker in local
test
:
local/session_1.html
\
local/index.html
local/
:
mkdir
-p
local
local/session_1.html
:
local/ session_1/session_1.Rmd www/style_Rmd.css
docker run
--rm
-ti
-v
${
PWD
}
:/work
-w
/work rocker/r-rmd
\
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
docker run
--rm
-ti
-v
${
PWD
}
:/work
-w
/work rocker/r-rmd
\
pandoc
-s
-c
www/github-pandoc.css index.md
-o
local
/index.html
clean
:
sudo rm
-r
local
public
.PHONY
:
clean test
\ No newline at end of file
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