Skip to content

Commit 6a0be81

Browse files
committed
Add vignette
1 parent f4fe066 commit 6a0be81

File tree

5 files changed

+406
-0
lines changed

5 files changed

+406
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.Ruserdata
55
docs
66
.DS_Store
7+
inst/doc

DESCRIPTION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ Imports:
2222
pak,
2323
jsonlite
2424
Suggests:
25+
knitr,
26+
rmarkdown,
2527
testthat (>= 3.0.0)
2628
Encoding: UTF-8
2729
Roxygen: list(markdown = TRUE)
2830
RoxygenNote: 7.3.2
2931
Config/testthat/edition: 3
32+
VignetteBuilder: knitr

_pkgdown.yml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,125 @@
11
url: ~
2+
23
template:
34
bootstrap: 5
5+
bslib:
6+
primary: "#0078D7" # Docker-like blue
7+
border-radius: 0.5rem
8+
btn-border-radius: 0.25rem
9+
opengraph:
10+
image:
11+
src: man/figures/dockitect-logo.svg
12+
alt: "dockitect: An R package for programmatically creating Dockerfiles"
13+
twitter:
14+
creator: "@"
15+
card: summary_large_image
16+
17+
navbar:
18+
structure:
19+
left: [intro, reference, articles, tutorials, news]
20+
right: [search, github]
21+
components:
22+
github:
23+
icon: fab fa-github
24+
href: https://github.com/coatless-rpkg/dockitect
25+
26+
reference:
27+
- title: "Package Overview"
28+
desc: "Introduction to the dockitect package and its core concepts"
29+
contents:
30+
- dockitect-package
31+
32+
- title: "Core Dockerfile Functions"
33+
desc: "Essential functions for creating and managing Dockerfiles"
34+
contents:
35+
- dockerfile
36+
- is_dockerfile
37+
- has_instruction
38+
- check_dockerfile
39+
- print.dockerfile
40+
41+
- title: "Creating Dockerfile Instructions"
42+
desc: "Functions for adding different Docker instructions to a Dockerfile"
43+
contents:
44+
- starts_with("dfi_")
45+
46+
- title: "Dockerfile Input/Output"
47+
desc: "Functions for reading and writing Dockerfiles"
48+
contents:
49+
- read_dockerfile
50+
- write_dockerfile
51+
52+
- title: "Dockerfile Modification"
53+
desc: "Functions for modifying Dockerfiles"
54+
contents:
55+
- starts_with("dfm_")
56+
57+
- title: "Core Dockerignore Functions"
58+
desc: "Essential functions for creating and managing .dockerignore files"
59+
contents:
60+
- dockerignore
61+
- is_dockerignore
62+
- check_dockerignore
63+
- print.dockerignore
64+
- c.dockerignore
65+
66+
- title: "Dockerignore Pattern Instruction Management"
67+
desc: "Functions for adding and removing patterns in .dockerignore files"
68+
contents:
69+
- starts_with("di_")
70+
71+
- title: "Dockerignore Input/Output"
72+
desc: "Functions for reading and writing .dockerignore files"
73+
contents:
74+
- read_dockerignore
75+
- write_dockerignore
76+
77+
- title: "Dockerfile Generation from Environments"
78+
desc: "Functions for generating Dockerfiles from various sources"
79+
contents:
80+
- starts_with("dk_from_")
81+
- dk_add_sysreqs
82+
83+
- title: "Dockerfile Templates"
84+
desc: "Ready-to-use templates for common R container scenarios"
85+
contents:
86+
- dk_template_base
87+
- dk_template_shiny
88+
- dk_template_plumber
89+
- dk_register_template
90+
- dk_template_custom
91+
92+
- title: "Dockerignore Templates"
93+
desc: "Ready-to-use templates for common .dockerignore patterns"
94+
contents:
95+
- starts_with("dk_template_ignore_")
96+
97+
- title: "Utility Functions"
98+
desc: "Helper functions for working with Docker environments"
99+
contents:
100+
- determine_package_manager
101+
- determine_os
102+
- map_to_sysreqs_platform
103+
- generate_pkg_install_cmd
104+
105+
106+
articles:
107+
- title: "Getting Started"
108+
desc: >
109+
Learn how to use dockitect to create and manage Docker files for R projects
110+
contents:
111+
- getting-started-with-dockitect
112+
113+
home:
114+
sidebar:
115+
structure: [links, license, community, citation, authors, dev]
116+
links:
117+
- text: Rocker Project Images
118+
href: https://rocker-project.org/images/
119+
- text: Dockerfile documentation
120+
href: https://docs.docker.com/reference/dockerfile/
121+
- text: Dockerignore documentation
122+
href: https://docs.docker.com/build/concepts/context/#dockerignore-files
4123

124+
development:
125+
mode: auto

vignettes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.html
2+
*.R

0 commit comments

Comments
 (0)