Skip to content

Commit df5476b

Browse files
committed
Built site for gh-pages
1 parent 00f984f commit df5476b

File tree

123 files changed

+31780
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+31780
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cf031fd1

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
contributor.r-project.org

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2018, Kutay B. Sezginel
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.html

Lines changed: 329 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Source for [R Contributor Site](https://contributor.r-project.org/)
2+
3+
## Website structure
4+
5+
The top-level pages linked in the menu are in correspondingly named markdown files, e.g.
6+
7+
| Menu item | Markdown file | Relative URL |
8+
|-------------|---------------|--------------|
9+
| Home | `index.md` | `/` |
10+
| Slack Group | `slack.md` | `/slack` |
11+
12+
You can create sub-pages by creating a folder with an `index.md` file. Any further markdown pages within that folder will be sub-pages under that, e.g.
13+
14+
| Markdown file | Relative URL |
15+
|---------------|---------------|
16+
|`translating-r-to-your-language/index.md` | `/translating-r-to-your-language` |
17+
|`translating-r-to-your-language/prep.md` | `/translating-r-to-your-language/prep` |
18+
19+
## Basic editing
20+
21+
You can edit the markdown files on the `main` branch and the changes will be automatically deployed to the live site once the changes are committed. If you edit the files directly on GitHub using the browser editor, then you can use the Preview tab to check the formatting before committing.
22+
23+
## Substantial editing
24+
25+
If you are making substantial changes, e.g. adding a new page, or making changes that require collaborating editing/review before being pushed, create a branch and make the changes there.
26+
27+
Any changes pushed to a different branch will not be automatically deployed to preview. so if the GitHub editor preview is not sufficient (i.e. you are doing more than editing a single page) it is best to clone the repo and make your changes locally.
28+
29+
### Previewing locally
30+
31+
To preview the site locally, you will need to install Jekyll, see https://jekyllrb.com/docs/ for installation instructions for common operating systems.
32+
33+
To build the site and make it available on a local server, run the following command in a terminal from the top level directory of the locally cloned repository.
34+
35+
```
36+
bundle exec jekyll serve
37+
```
38+
39+
If you use RStudio, you can open this `README.md` file and use `Ctrl/Cmd + Alt + Enter` to send the above line to the terminal.
40+
41+
Open http://localhost:4000 in your browser to preview the site. The site is repeatedly rebuilt, so if you make changes to the markdown files and save them, you should see the changes straight-away. Use `Ctrl/Cmd + C` to stop locally serving the site.
42+
43+
You will need to restart the server if you add/remove items from the menu.
44+
45+
### Creating pages
46+
47+
Please use the following YAML fields when creating new pages:
48+
49+
---
50+
description: Short description, less than 160 characters.
51+
layout: custom
52+
---
53+
54+
The layout should always be `custom`.
55+
The description is used to create cards when sharing links on social media.
56+
The title and image (including alternative text) are automatically taken from the page content, using the first `<h1>` header and image respectively.
57+
The image file should be in the same directory as the markdown file.
58+
JPG, PNG, WEBP and GIF formats are supported (only the first frame of an animated GIF will be used).
59+
60+
You can check how the card will look using the following validators:
61+
62+
- https://cards-dev.twitter.com/validator
63+
- https://developers.facebook.com/tools/debug/
64+
65+
The Facebook debugger requires log in; you can ignore the following warning
66+
67+
The following required properties are missing: fb:app_id
68+
69+
as that property is not required.
70+
71+
### Editing the menu
72+
73+
To edit the menu you need to edit the `navigation` field of `_config.yml`.
74+
75+
To add a new page, add a new element with the title and URL of the page. Use the relative URL for pages in this repo, e.g.
76+
77+
```
78+
- title: Slack Group
79+
url: slack
80+
```
81+
82+
Use the full URL for external pages, e.g.
83+
84+
```
85+
- title: R Developer Page
86+
url: https://developer.r-project.org/
87+
```
88+
89+
Like any change to `config.yml`, you will need to restart the Jekyll server for
90+
the change to take effect (when previewing locally).
91+
92+
## Website theme
93+
94+
This is a GitHub pages site, using the [modified minimal Jekyll theme](https://github.com/kbsezginel/gh-pages-template) by [kbsezginel](https://github.com/kbsezginel). The [theme documentation](https://kbsezginel.github.io/gh-pages-template/setup) provides instructions for initial setup and customization, which are probably not required for day-to-day editing.
95+
96+
### Jekyll/Liquid notes
97+
98+
* `| relative.url` filter will make path relative (add `/` at beginning if necessary)
99+
* `| absolute.url` filter will add the site domain at the start
100+
101+
## Icons
102+
103+
Some icons obtained from https://uxwing.com.

assets/css/style.css

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
@font-face { font-family: 'Noto Sans'; font-weight: 400; font-style: normal; src: url("../fonts/Noto-Sans-regular/Noto-Sans-regular.eot"); src: url("../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix") format("embedded-opentype"), local("Noto Sans"), local("Noto-Sans-regular"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2") format("woff2"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.woff") format("woff"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf") format("truetype"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans") format("svg"); }
2+
@font-face { font-family: 'Noto Sans'; font-weight: 700; font-style: normal; src: url("../fonts/Noto-Sans-700/Noto-Sans-700.eot"); src: url("../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix") format("embedded-opentype"), local("Noto Sans Bold"), local("Noto-Sans-700"), url("../fonts/Noto-Sans-700/Noto-Sans-700.woff2") format("woff2"), url("../fonts/Noto-Sans-700/Noto-Sans-700.woff") format("woff"), url("../fonts/Noto-Sans-700/Noto-Sans-700.ttf") format("truetype"), url("../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans") format("svg"); }
3+
@font-face { font-family: 'Noto Sans'; font-weight: 400; font-style: italic; src: url("../fonts/Noto-Sans-italic/Noto-Sans-italic.eot"); src: url("../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix") format("embedded-opentype"), local("Noto Sans Italic"), local("Noto-Sans-italic"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2") format("woff2"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.woff") format("woff"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf") format("truetype"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans") format("svg"); }
4+
@font-face { font-family: 'Noto Sans'; font-weight: 700; font-style: italic; src: url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot"); src: url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix") format("embedded-opentype"), local("Noto Sans Bold Italic"), local("Noto-Sans-700italic"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2") format("woff2"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff") format("woff"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf") format("truetype"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans") format("svg"); }
5+
.highlight table td { padding: 5px; }
6+
7+
.highlight table pre { margin: 0; }
8+
9+
.highlight .cm { color: #999988; font-style: italic; }
10+
11+
.highlight .cp { color: #999999; font-weight: bold; }
12+
13+
.highlight .c1 { color: #999988; font-style: italic; }
14+
15+
.highlight .cs { color: #999999; font-weight: bold; font-style: italic; }
16+
17+
.highlight .c, .highlight .cd { color: #999988; font-style: italic; }
18+
19+
.highlight .err { color: #a61717; background-color: #e3d2d2; }
20+
21+
.highlight .gd { color: #000000; background-color: #ffdddd; }
22+
23+
.highlight .ge { color: #000000; font-style: italic; }
24+
25+
.highlight .gr { color: #aa0000; }
26+
27+
.highlight .gh { color: #999999; }
28+
29+
.highlight .gi { color: #000000; background-color: #ddffdd; }
30+
31+
.highlight .go { color: #888888; }
32+
33+
.highlight .gp { color: #555555; }
34+
35+
.highlight .gs { font-weight: bold; }
36+
37+
.highlight .gu { color: #aaaaaa; }
38+
39+
.highlight .gt { color: #aa0000; }
40+
41+
.highlight .kc { color: #000000; font-weight: bold; }
42+
43+
.highlight .kd { color: #000000; font-weight: bold; }
44+
45+
.highlight .kn { color: #000000; font-weight: bold; }
46+
47+
.highlight .kp { color: #000000; font-weight: bold; }
48+
49+
.highlight .kr { color: #000000; font-weight: bold; }
50+
51+
.highlight .kt { color: #445588; font-weight: bold; }
52+
53+
.highlight .k, .highlight .kv { color: #000000; font-weight: bold; }
54+
55+
.highlight .mf { color: #009999; }
56+
57+
.highlight .mh { color: #009999; }
58+
59+
.highlight .il { color: #009999; }
60+
61+
.highlight .mi { color: #009999; }
62+
63+
.highlight .mo { color: #009999; }
64+
65+
.highlight .m, .highlight .mb, .highlight .mx { color: #009999; }
66+
67+
.highlight .sb { color: #d14; }
68+
69+
.highlight .sc { color: #d14; }
70+
71+
.highlight .sd { color: #d14; }
72+
73+
.highlight .s2 { color: #d14; }
74+
75+
.highlight .se { color: #d14; }
76+
77+
.highlight .sh { color: #d14; }
78+
79+
.highlight .si { color: #d14; }
80+
81+
.highlight .sx { color: #d14; }
82+
83+
.highlight .sr { color: #009926; }
84+
85+
.highlight .s1 { color: #d14; }
86+
87+
.highlight .ss { color: #990073; }
88+
89+
.highlight .s { color: #d14; }
90+
91+
.highlight .na { color: #008080; }
92+
93+
.highlight .bp { color: #999999; }
94+
95+
.highlight .nb { color: #0086B3; }
96+
97+
.highlight .nc { color: #445588; font-weight: bold; }
98+
99+
.highlight .no { color: #008080; }
100+
101+
.highlight .nd { color: #3c5d5d; font-weight: bold; }
102+
103+
.highlight .ni { color: #800080; }
104+
105+
.highlight .ne { color: #990000; font-weight: bold; }
106+
107+
.highlight .nf { color: #990000; font-weight: bold; }
108+
109+
.highlight .nl { color: #990000; font-weight: bold; }
110+
111+
.highlight .nn { color: #555555; }
112+
113+
.highlight .nt { color: #000080; }
114+
115+
.highlight .vc { color: #008080; }
116+
117+
.highlight .vg { color: #008080; }
118+
119+
.highlight .vi { color: #008080; }
120+
121+
.highlight .nv { color: #008080; }
122+
123+
.highlight .ow { color: #000000; font-weight: bold; }
124+
125+
.highlight .o { color: #000000; font-weight: bold; }
126+
127+
.highlight .w { color: #bbbbbb; }
128+
129+
.highlight { background-color: #f8f8f8; }
130+
131+
body { background-color: #fff; padding: 50px; font: 14px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #727272; font-weight: 400; }
132+
133+
h1, h2, h3, h4, h5, h6 { color: #222; margin: 0 0 20px; }
134+
135+
p, ul, ol, table, pre, dl { margin: 0 0 20px; }
136+
137+
h1, h2, h3 { line-height: 1.1; }
138+
139+
h1 { font-size: 28px; }
140+
141+
h2 { color: #393939; }
142+
143+
h3, h4, h5, h6 { color: #494949; }
144+
145+
a { color: #267CB9; text-decoration: none; }
146+
147+
a:hover, a:focus { color: #069; font-weight: bold; }
148+
149+
a small { font-size: 11px; color: #777; margin-top: -0.3em; display: block; }
150+
151+
a:hover small { color: #777; }
152+
153+
.wrapper { width: 860px; margin: 0 auto; }
154+
155+
blockquote { border-left: 1px solid #e5e5e5; margin: 0; padding: 0 0 0 20px; font-style: italic; }
156+
157+
code, pre { font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace; color: #333; }
158+
159+
pre { padding: 8px 15px; background: #f8f8f8; border-radius: 5px; border: 1px solid #e5e5e5; overflow-x: auto; }
160+
161+
table { width: 100%; border-collapse: collapse; }
162+
163+
th, td { text-align: left; padding: 5px 10px; border-bottom: 1px solid #e5e5e5; }
164+
165+
dt { color: #444; font-weight: 700; }
166+
167+
th { color: #444; }
168+
169+
img { max-width: 100%; }
170+
171+
kbd { background-color: #fafbfc; border: 1px solid #c6cbd1; border-bottom-color: #959da5; border-radius: 3px; box-shadow: inset 0 -1px 0 #959da5; color: #444d56; display: inline-block; font-size: 11px; line-height: 10px; padding: 3px 5px; vertical-align: middle; }
172+
173+
header { width: 270px; float: left; position: fixed; -webkit-font-smoothing: subpixel-antialiased; }
174+
175+
ul.downloads { list-style: none; height: 40px; padding: 0; background: #f4f4f4; border-radius: 5px; border: 1px solid #e0e0e0; width: 270px; }
176+
177+
.downloads li { width: 89px; float: left; border-right: 1px solid #e0e0e0; height: 40px; }
178+
179+
.downloads li:first-child a { border-radius: 5px 0 0 5px; }
180+
181+
.downloads li:last-child a { border-radius: 0 5px 5px 0; }
182+
183+
.downloads a { line-height: 1; font-size: 11px; color: #676767; display: block; text-align: center; padding-top: 6px; height: 34px; }
184+
185+
.downloads a:hover, .downloads a:focus { color: #675C5C; font-weight: bold; }
186+
187+
.downloads ul a:active { background-color: #f0f0f0; }
188+
189+
strong { color: #222; font-weight: 700; }
190+
191+
.downloads li + li + li { border-right: none; width: 89px; }
192+
193+
.downloads a strong { font-size: 14px; display: block; color: #222; }
194+
195+
section { width: 500px; float: right; padding-bottom: 50px; }
196+
197+
small { font-size: 11px; }
198+
199+
hr { border: 0; background: #e5e5e5; height: 1px; margin: 0 0 20px; }
200+
201+
footer { width: 270px; float: left; position: fixed; bottom: 50px; -webkit-font-smoothing: subpixel-antialiased; }
202+
203+
@media print, screen and (max-width: 960px) { div.wrapper { width: auto; margin: 0; }
204+
header, section, footer { float: none; position: static; width: auto; }
205+
header { padding-right: 320px; }
206+
section { border: 1px solid #e5e5e5; border-width: 1px 0; padding: 20px 0; margin: 0 0 20px; }
207+
header a small { display: inline; }
208+
header ul { position: absolute; right: 50px; top: 52px; } }
209+
@media print, screen and (max-width: 720px) { body { word-wrap: break-word; }
210+
header { padding: 0; }
211+
header ul, header p.view { position: static; }
212+
pre, code { word-wrap: normal; } }
213+
@media print, screen and (max-width: 480px) { body { padding: 15px; }
214+
.downloads { width: 99%; }
215+
.downloads li, .downloads li + li + li { width: 33%; } }
216+
@media print { body { padding: 0.4in; font-size: 12pt; color: #444; } }

0 commit comments

Comments
 (0)