Skip to content

Commit 0e91904

Browse files
committed
review update, added style and created pdf
1 parent 9525975 commit 0e91904

File tree

8 files changed

+260
-180
lines changed

8 files changed

+260
-180
lines changed

README.md

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

Syllabus.pdf

12.7 MB
Binary file not shown.

tools/gen_numbering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def update_heading_numbers_and_generate_toc(directory: Path):
163163
with readme_path.open("w", encoding="utf-8") as readme_file:
164164
readme_file.write("# Table of Contents\n\n")
165165
for _, toc_entry in toc_entries:
166+
toc_entry = toc_entry.replace("`](", "`](website/docs/")
166167
readme_file.write(toc_entry + "\n")
167168

168169
for file in sorted(directory.glob("website/docs/**/*.md")):

tools/gen_pdf.robot

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
*** Settings ***
2+
Library Browser
3+
4+
5+
*** Test Cases ***
6+
Gen Syllabus
7+
Open Syllabus
8+
Expand Menues
9+
Generate Syllabus.pdf
10+
11+
12+
*** Keywords ***
13+
Open Syllabus
14+
New Browser chromium headless=False
15+
New Page https://robotframework.org/robotframework-RFCP-syllabus/docs/overview
16+
${dark} Get Element States
17+
... button[aria-label="Switch between dark and light mode (currently dark mode)"]
18+
... then
19+
... bool(value & attached)
20+
IF $dark
21+
Click button[aria-label="Switch between dark and light mode (currently dark mode)"]
22+
END
23+
24+
Expand Menues
25+
${menus} Get Elements .menu__list-item--collapsed
26+
FOR ${menu} IN @{menus}
27+
Click ${menus}[0]
28+
END
29+
30+
Generate Syllabus.pdf
31+
${pages} Get Elements .theme-doc-sidebar-item-link
32+
${writer} Evaluate pypdf.PdfWriter()
33+
FOR ${page} IN @{pages}
34+
Click ${page}
35+
Scroll To vertical=bottom behavior=smooth
36+
sleep 1s
37+
${title} Get Title then value.split("|")[0]
38+
${file} Save Page As Pdf
39+
... pdfs/${title.replace('/', '_').strip()}.pdf
40+
... displayHeaderFooter=True
41+
... format=A4
42+
... outline=True
43+
... margin={'top': '20px', 'right': '20px', 'bottom': '20px', 'left': '20px'}
44+
... printBackground=True
45+
... tagged=True
46+
... scale=0.8
47+
Log To Console ${file}
48+
Evaluate $writer.append($file)
49+
END
50+
Evaluate $writer.write("Syllabus.pdf")

website/docs/chapter-03/02_variables.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ ${SEARCH_URL} https://example.com/search
180180
... separator=
181181
```
182182

183-
`${SEARCH_URL}` will contain `https://example.com/search?query=robot+framework&page=1&filter=recent&lang=en&category=test-automation`.
183+
`${SEARCH_URL}` will contain:
184+
```
185+
https://example.com/search?query=robot+framework&page=1&filter=recent&lang=en&category=test-automation
186+
```
184187

185188

186189
### 3.2.2.2 Primitive Data Types
@@ -339,8 +342,6 @@ which can be assigned to a scalar variable using the dollar-syntax `${variable_n
339342
Library OperatingSystem
340343
341344
342-
343-
344345
*** Test Cases ***
345346
Returning Example
346347
${server_log} = Get File server.log

website/docs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The primary author of this syllabus is **René Rohner**.
132132

133133
The following individuals have contributed to the development of this syllabus:
134134

135-
**Alena Drebezgova, Alex Read, Christoph Singer, Elout van Leeuwen, Frank van der Kuur, Gerwin Laagland, Ilmari Salmela, Krzysztof Żminkowski, Lydia Peabody, Michael Biech, Miikka Solmela, Pekka Klärck, Pyry Hartman, Sami Pesonen, Simon Meggle, Tatu Kairi, and Tomáš Hák.**
135+
**Alena Drebezgova, Alex Read, Christoph Singer, Elout van Leeuwen, Frank van der Kuur, Gerwin Laagland, Ilmari Salmela, Jörg Irle, Krzysztof Żminkowski, Lydia Peabody, Michael Biech, Miikka Solmela, Pekka Klärck, Pyry Hartman, Sami Pesonen, Simon Meggle, Tatu Kairi, and Tomáš Hák.**
136136

137137
**Special Mentions**
138138

website/docusaurus.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer').themes.github;
4+
const lightCodeTheme = require('prism-react-renderer').themes.vsLight;
55
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
9-
title: ' Syllabus of Robot Framework® Certified Professional',
9+
title: 'Syllabus of Robot Framework® Certified Professional',
1010
tagline: 'The foundation for the "Robot Framework® Certified Professional" (RFCP®) exam and training',
1111
url: 'https://robotframework.org',
1212
baseUrl: '/robotframework-RFCP-syllabus/',
@@ -156,7 +156,7 @@ const config = {
156156
prism: {
157157
theme: lightCodeTheme,
158158
darkTheme: darkCodeTheme,
159-
additionalLanguages: ['robotframework', 'rust'],
159+
additionalLanguages: ['robotframework', 'python'],
160160
},
161161
}),
162162
plugins: [require.resolve('docusaurus-lunr-search')],

website/src/css/custom.css

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
--ifm-alert-padding-vertical: 0.5rem;
5656
--ifm-alert-padding-horizontal: 0.5rem;
5757
--ifm-alert-border-radius: 0.25rem;
58+
--ifm-font-family-monospace: "Courier Code";
5859
}
5960

6061
html[data-theme='dark'] {
@@ -493,40 +494,67 @@ div[class^='announcementBar_'] {
493494
--ifm-tabs-color-active: var(--ifm-alert-foreground-color);
494495
--ifm-tabs-color-active-border: var(--ifm-alert-border-color);
495496
background-color: var(--ifm-alert-background-color);
496-
border: var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);
497+
border: 0.1rem solid rgba(0, 0, 0, 0.1);
498+
border-left: var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);
497499
border-left-width: var(--ifm-alert-border-left-width);
498-
border-radius: var(--ifm-alert-border-radius);
499-
box-shadow: var(--ifm-alert-shadow);
500+
border-radius: var(--ifm-code-border-radius) !important; box-shadow: var(--ifm-alert-shadow);
500501
color: var(--ifm-alert-foreground-color);
501502
padding: var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal);
502503
}
503504

505+
506+
507+
code {
508+
background-color: var(--ifm-color-info-contrast-background) !important;
509+
border: 0.1rem solid rgba(0, 0, 0, 0.1) !important;
510+
border-radius: var(--ifm-code-border-radius) !important;
511+
font-family: var(--ifm-font-family-monospace) !important;
512+
font-size: var(--ifm-code-font-size);
513+
padding: var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal);
514+
vertical-align: middle;
515+
}
516+
517+
504518
.markdown h1:first-child {
505-
--ifm-h1-font-size: 3rem;
519+
--ifm-h1-font-size: 2rem;
506520

507-
margin-bottom: calc(
508-
var(--ifm-h1-vertical-rhythm-bottom) * var(--ifm-leading)
509-
);
521+
margin-bottom: calc(var(--ifm-h1-vertical-rhythm-bottom) * var(--ifm-leading));
510522
}
511523

512-
.markdown > h2 {
513-
--ifm-h2-font-size: 2.5rem;
524+
.markdown>h2 {
525+
--ifm-h2-font-size: 1.75rem;
514526

515-
margin-bottom: calc(
516-
var(--ifm-heading-vertical-rhythm-bottom) * var(--ifm-leading)
517-
);
527+
margin-bottom: calc(var(--ifm-heading-vertical-rhythm-bottom) * var(--ifm-leading));
518528
margin-top: calc(var(--ifm-h2-vertical-rhythm-top) * var(--ifm-leading));
519529
}
520530

521-
.markdown > h3 {
522-
--ifm-h3-font-size: 2rem;
531+
.markdown>h3 {
532+
--ifm-h3-font-size: 1.5rem;
523533

524-
margin-bottom: calc(
525-
var(--ifm-heading-vertical-rhythm-bottom) * var(--ifm-leading)
526-
);
534+
margin-bottom: calc(var(--ifm-heading-vertical-rhythm-bottom) * var(--ifm-leading));
527535
margin-top: calc(var(--ifm-h3-vertical-rhythm-top) * var(--ifm-leading));
528536
}
529537

530538
code {
531539
white-space: pre !important;
540+
}
541+
542+
h1 code,
543+
h2 code,
544+
h3 code,
545+
h4 code,
546+
h5 code,
547+
h6 code {
548+
font-family: var(--ifm-font-family-monospace);
549+
letter-spacing: 0em;
550+
}
551+
552+
h1,
553+
h2,
554+
h3,
555+
h4,
556+
h5,
557+
h6 {
558+
font-family: OCRA;
559+
letter-spacing: -0.11em;
532560
}

0 commit comments

Comments
 (0)