Skip to content

Commit 8d459d7

Browse files
authored
Quarto (#230)
add dark mode and share button
1 parent f12373f commit 8d459d7

23 files changed

+58
-124
lines changed

.Rbuildignore

-1
This file was deleted.

_quarto.yml

+25-19
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,39 @@ book:
1010
repo-url: https://github.com/r-devel/rdevguide
1111
repo-branch: main
1212
repo-actions: [edit, issue]
13+
sharing: [linkedin]
14+
open-graph: true
15+
image: img/cover_page_scriberia.png
16+
downloads: [pdf, epub]
1317
chapters:
1418
- index.qmd
15-
- introduction.qmd
16-
- getting_started.qmd
17-
- issue_tracking.qmd
18-
- reporting_bugs.qmd
19-
- submitting_feature_requests.qmd
20-
- reviewing_bugs.qmd
21-
- finding_the_source.qmd
22-
- lifecycle_of_a_patch.qmd
23-
- documenting.qmd
24-
- message_translations.qmd
25-
- testing_pre_release_r_versions.qmd
26-
- r_core_developers.qmd
27-
- where_to_get_help.qmd
28-
- news_and_announcements.qmd
29-
- developer_tools.qmd
19+
- chapters/introduction.qmd
20+
- chapters/getting_started.qmd
21+
- chapters/issue_tracking.qmd
22+
- chapters/reporting_bugs.qmd
23+
- chapters/submitting_feature_requests.qmd
24+
- chapters/reviewing_bugs.qmd
25+
- chapters/finding_the_source.qmd
26+
- chapters/lifecycle_of_a_patch.qmd
27+
- chapters/documenting.qmd
28+
- chapters/message_translations.qmd
29+
- chapters/testing_pre_release_r_versions.qmd
30+
- chapters/r_core_developers.qmd
31+
- chapters/where_to_get_help.qmd
32+
- chapters/news_and_announcements.qmd
33+
- chapters/developer_tools.qmd
3034

3135
format:
3236
html:
33-
theme: cosmo
34-
include-in-header: header.html
37+
theme:
38+
light: cosmo
39+
dark: [cosmo, css/theme-dark.scss]
40+
include-in-header: html/header.html
3541
description-meta: "This guide is a comprehensive resource for contributors (from all levels, beginners, intermediate, and seasoned) to the R project, facilitating their onboarding and helping them navigate the contribution process."
3642
pdf:
3743
documentclass: scrreprt
38-
include-in-header: preamble.tex
39-
include-before-body: frontpage.tex
44+
include-in-header: tex/preamble.tex
45+
include-before-body: tex/frontpage.tex
4046
epub:
4147
cover-image: img/cover_page_scriberia.png
4248

book.bib

-10
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

introduction.qmd chapters/introduction.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ Maintainers and contributors are also requested to follow [this guide's code of
4848

4949
This guide is built using Quarto which makes editing it easier, provided you have a GitHub account (sign-up at [github.com](https://github.com/)). After you log-in to GitHub, click on the ‘Edit this page’ (available in the left side column) link highlighted with a red ellipse in the image below. This will take you to an editable version of the the source R Markdown file that generated the page you are on:
5050

51-
![Screenshot of the toolbar in the HTML version of the guide, with the "Edit this page" link highlighted in red.](img/edit_icon.png)
51+
![Screenshot of the toolbar in the HTML version of the guide, with the "Edit this page" link highlighted in red.](../img/edit_icon.png)
5252

5353
Use the [issue tracker](https://github.com/r-devel/rdevguide/issues) to raise an issue about the guide’s content or to make a feature request.

issue_tracking.qmd chapters/issue_tracking.qmd

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ To get a Bugzilla account send an e-mail to `[email protected]` f
2222

2323
An image of the existing home page of Bugzilla is shared below:
2424

25-
![Screenshot of the existing home page of Bugzilla.](img/bugzilla.png)
25+
![Screenshot of the existing home page of Bugzilla.](../img/bugzilla.png)
2626

2727
On the home page of Bugzilla, there are various buttons and links. There are four square buttons called as:
2828

29-
![Screenshot of the four square buttons on the home page of Bugzilla.](img/squarebuttons.png)
29+
![Screenshot of the four square buttons on the home page of Bugzilla.](../img/squarebuttons.png)
3030

3131
1. [File a bug](https://bugs.r-project.org/enter_bug.cgi): You will have to log in to Bugzilla to file a bug using this button
3232

@@ -46,18 +46,18 @@ Several useful shortcuts are available from the landing page:
4646

4747
A [quick search](https://bugs.r-project.org/page.cgi?id=quicksearch.html) bar is available on the home page where you can enter a bug number to search or some search terms.
4848

49-
![Screenshot of the quick search bar on the home page of Bugzilla.](img/quicksearch.png)
49+
![Screenshot of the quick search bar on the home page of Bugzilla.](../img/quicksearch.png)
5050

5151
There is also a section for Common Queries on the home page which includes links to bugs reported and changed in the last 24 hours and last 7 days.
5252

53-
![Screenshot of the Common Queries section on the home page of Bugzilla.](img/commonquery.png)
53+
![Screenshot of the Common Queries section on the home page of Bugzilla.](../img/commonquery.png)
5454

5555
## Searching for Bugs to Contribute to {#searching}
5656

5757
When presented with a long list of bugs, it can often be a bit demotivating when it's not clear where to start.
5858
To help with this, you can use the [**Advanced Search**](https://bugs.r-project.org/query.cgi?format=advanced).
5959

60-
![Screenshot of Advanced Search page showing the following fields: Summary, Product, Component, Status, Resolution](img/bugzilla-adv-search-home.png)
60+
![Screenshot of Advanced Search page showing the following fields: Summary, Product, Component, Status, Resolution](../img/bugzilla-adv-search-home.png)
6161

6262
This presents several fields that you can use to narrow down your search.
6363
You can find out what a particular field is by clicking on the header, which will take you to that section in the [**Bug Fields Information Page**](https://bugs.r-project.org/page.cgi?id=fields.html).
@@ -93,19 +93,19 @@ You can use this section to narrow down your search further to filter by things
9393

9494
It can be helpful, for example, to search for bugs labelled with `HELPWANTED`, which indicates bugs that may be suitable for anyone to work on regardless of expertise.
9595

96-
![Screenshot of expanded Detailed Bug Information section showing the following fields: Comment, URL, Keywords (with HELPWANTED entered), Deadline, inclusion/exclusion of bug numbers, Version, Severity, Priority, Hardware, and OS](img/bugzilla-adv-search-detailed-bug-info.png)
96+
![Screenshot of expanded Detailed Bug Information section showing the following fields: Comment, URL, Keywords (with HELPWANTED entered), Deadline, inclusion/exclusion of bug numbers, Version, Severity, Priority, Hardware, and OS](../img/bugzilla-adv-search-detailed-bug-info.png)
9797

9898

9999
### Search By People {#searching-sbp}
100100

101101
You can use this to narrow down your search to only include results of a specific person or up to three people who have participated in any component of the bug's discusson.
102102

103-
![Screenshot of expanded Search By People section showing three fields allowing you to enter a person's name who can be any of the bug assignee, the reporter, a CC list member, or a commenter](img/bugzilla-adv-search-search-by-people.png)
103+
![Screenshot of expanded Search By People section showing three fields allowing you to enter a person's name who can be any of the bug assignee, the reporter, a CC list member, or a commenter](../img/bugzilla-adv-search-search-by-people.png)
104104

105105

106106
### Search By Change History {#searching-sbch}
107107

108108
Use this to search for bugs where any of the status fields has been changed (which, depending on the change, could indicate that someone from R-Core has given some attention to the bug).
109109
This also provides a date range to narrow your search.
110110

111-
![Screenshot of expanded Search by Change History section showing three fields: where ANY of the fields (multi-select list), changed to, and between (dates in YYYY-MM-DD format)](img/bugzilla-adv-search-search-by-change-history.png)
111+
![Screenshot of expanded Search by Change History section showing three fields: where ANY of the fields (multi-select list), changed to, and between (dates in YYYY-MM-DD format)](../img/bugzilla-adv-search-search-by-change-history.png)

lifecycle_of_a_patch.qmd chapters/lifecycle_of_a_patch.qmd

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,32 @@ Besides checking in your computer, you can use the Github mirror [r-devel/r-svn
5959

6060
You should first find the file to edit, via the github interface for example:
6161

62-
![Screenshot of the heading of the src/library/stats/man/Mulinom.Rd](img/rsvn_file_to_edit.png "Opening the file to edit.")
62+
![Screenshot of the heading of the src/library/stats/man/Mulinom.Rd](../img/rsvn_file_to_edit.png "Opening the file to edit.")
6363

6464
Then you can edit it, directly in the interface or using the github interface:
6565

66-
![Screenshot of the file src/library/stats/man/Mulinom.Rd being edited via the Github interface](img/rsvn_edit_file.png "Editing a file via Github interface.")
66+
![Screenshot of the file src/library/stats/man/Mulinom.Rd being edited via the Github interface](../img/rsvn_edit_file.png "Editing a file via Github interface.")
6767

6868
Create a commit with a message describing the changes
6969

70-
![Screenshot of the commit message](img/rsvn_commit_message.png "Commiting the change in the file.")
70+
![Screenshot of the commit message](../img/rsvn_commit_message.png "Commiting the change in the file.")
7171

7272
And create a pull request from the branch created to check the changes.
7373

74-
![Screenshot of the message when opening a pull requests from the branch](img/rsvn_commit_pre_PR.png "Starting a pull requests with the changes previously committed.")
74+
![Screenshot of the message when opening a pull requests from the branch](../img/rsvn_commit_pre_PR.png "Starting a pull requests with the changes previously committed.")
7575

7676
Add a message and description of the svn for other users and the R core to know what is the purpose of this modification:
7777

78-
![Screenshot of the message and content while opening a pull requests for the r-svn repository](img/rsvn_PR_message.png "Describe the changes in the pull request.")
78+
![Screenshot of the message and content while opening a pull requests for the r-svn repository](../img/rsvn_PR_message.png "Describe the changes in the pull request.")
7979

80-
![Screenshot of the pull requests opened](img/rsvn_PR_created.png "The result of opening a pull requests with the changes.")
80+
![Screenshot of the pull requests opened](../img/rsvn_PR_created.png "The result of opening a pull requests with the changes.")
8181

8282
Once the PR is submitted, some automatic checks will be triggered (they might need to be approved by some other users as per Github rules):
8383

84-
![Screenshot of the checks triggered by opening the pull request](img/rsvn_PR_automatic_checks.png "Automatic checks triggered in the r-devel/r-svn github repository.")
84+
![Screenshot of the checks triggered by opening the pull request](../img/rsvn_PR_automatic_checks.png "Automatic checks triggered in the r-devel/r-svn github repository.")
8585
When the checks end you will need to explore the results and asses if the results indicate a problem or not.
8686

87-
![Screenshot of the results of the Github checks in the r-svn mirror](img/rsvn_checks_results.png "Summary of the results of the automatic checks triggered by opening the pull request.")
87+
![Screenshot of the results of the Github checks in the r-svn mirror](../img/rsvn_checks_results.png "Summary of the results of the automatic checks triggered by opening the pull request.")
8888

8989
Once you are happy with the changes and the checks report that everything is okay you can retrieve the patch via:
9090

message_translations.qmd chapters/message_translations.qmd

+7-7
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ the Windows Graphical User Interface.
245245

246246
After selecting a component, you can select your preferred language.
247247

248-
![](img/translate_component.png)
248+
![](../img/translate_component.png)
249249

250250
<!-- **Step 3: Check String Status** -->
251251

@@ -257,7 +257,7 @@ After selecting a component, you can select your preferred language.
257257

258258
<!-- given here: https://github.com/r-devel/translations/wiki/Weblate-FAQ -->
259259

260-
<!-- ![](img/unfinished_strings_translate.png) -->
260+
<!-- ![](../img/unfinished_strings_translate.png) -->
261261

262262
**Step 3: Translate the Message**
263263

@@ -266,12 +266,12 @@ Now, you can click on Translate button on your right.
266266
> Note: More information for String status visit:
267267
> <https://docs.weblate.org/en/latest/workflows.html#translation-states>
268268
269-
![](img/translate_button.png)
269+
![](../img/translate_button.png)
270270

271271
Then, start translating the message by typing the translation in the
272272
text box.
273273

274-
![](img/translate_string_and_save.png)
274+
![](../img/translate_string_and_save.png)
275275

276276
- If you are **confident** that the **translation is correct**, make
277277
sure the "Needs editing" box is **unchecked**.
@@ -294,7 +294,7 @@ text box.
294294

295295
2. Accept it if you think the automatic suggestion looks good
296296

297-
![](img/auto-suggestion.png)
297+
![](../img/auto-suggestion.png)
298298

299299
------------------------------------------------------------------------
300300

@@ -326,7 +326,7 @@ Instead of translating one string at a time, it is possible to bulk translate a
326326

327327
2. Select **'Tools > Automatic translation'**
328328

329-
![Tools drop-down menu with "Automatic Translations" selected](img/translate_automatic_translation.png)
329+
![Tools drop-down menu with "Automatic Translations" selected](../img/translate_automatic_translation.png)
330330

331331

332332
3. In the dialog,
@@ -342,7 +342,7 @@ Instead of translating one string at a time, it is possible to bulk translate a
342342

343343
[^09-message-translations-3]: Microsoft Translator is preferred for bulk translation as our free tier covers 2 million characters/month, where DeepL only allows 500k chars/month. If Microsoft Translator translations are much worse than DeepL, it may be useful to use it to translate one string at a time.
344344

345-
![Automatic Translations dialog box](img/translate_dialog.png)
345+
![Automatic Translations dialog box](../img/translate_dialog.png)
346346

347347
4. Review the translations, edit as necessary and uncheck **"needing edit"**.
348348

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

submitting_feature_requests.qmd chapters/submitting_feature_requests.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We recommend sharing your feature request idea on the [R-devel](https://stat.eth
1010

1111
You can submit a feature request by [filing a bug](https://bugs.r-project.org/enter_bug.cgi) on Bugzilla. Under Component, select "Wishlist", the designated label for feature requests.
1212

13-
![The "Wishlist" component in Bugzilla's bug submission screen.](img/feature-requests.png)
13+
![The "Wishlist" component in Bugzilla's bug submission screen.](../img/feature-requests.png)
1414

1515
Similar to bugs, you should ensure that the feature request is [not already reported](#already-reported-bugs) and [follow best practices](#good-practices-bugs) whenever possible.
1616

File renamed without changes.
File renamed without changes.

css/theme-dark.scss

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*-- scss:defaults --*/
2+
// Base document colors
3+
$body-bg: #181818;
4+
$body-color: white;
5+
$link-color: #75AADB;
6+
7+
// Code blocks
8+
$code-block-bg-alpha: -.8;

header.html html/header.html

File renamed without changes.

style.css

-69
This file was deleted.

frontpage.tex tex/frontpage.tex

File renamed without changes.

preamble.tex tex/preamble.tex

File renamed without changes.

0 commit comments

Comments
 (0)