Skip to content

Commit b74799d

Browse files
author
Anass Rach
committed
Refactor: Split monolithic files into modular flashcard system!
1 parent 6e2c7db commit b74799d

70 files changed

Lines changed: 5671 additions & 4719 deletions

File tree

Some content is hidden

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

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contributing to Java 21 OCP Flashcards
2+
3+
Thank you for your interest in contributing!
4+
5+
## Adding New Flashcards
6+
7+
1. Choose the appropriate category directory under `_flashcards/`
8+
2. Create a new file using the naming convention: `##-descriptive-name.md`
9+
3. Use the template in `_templates/flashcard-template.md`
10+
4. Test locally with `bundle exec jekyll serve`
11+
12+
## Adding Quiz Questions
13+
14+
Add questions to `_data/quiz/questions.yml` following the existing format:
15+
16+
```yaml
17+
- question: "Your question text?"
18+
options:
19+
- "Option A"
20+
- "Option B"
21+
- "Option C"
22+
- "Option D"
23+
correct: 1 # 0-based index
24+
explanation: "Explanation of the correct answer"
25+
category: "Category Name"
26+
```
27+
28+
## Guidelines
29+
30+
- Use clear, practical examples
31+
- Include explanations for all concepts
32+
- Follow existing formatting patterns
33+
- Test code examples before submitting
34+
35+
See the full contribution guide for detailed instructions.

Gemfile.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ GEM
1313
http_parser.rb (~> 0)
1414
eventmachine (1.2.7)
1515
ffi (1.17.1-arm64-darwin)
16+
ffi (1.17.1-x64-mingw-ucrt)
1617
ffi (1.17.1-x86_64-linux-gnu)
1718
forwardable-extended (2.6.0)
1819
google-protobuf (4.29.3-arm64-darwin)
1920
bigdecimal
2021
rake (>= 13)
22+
google-protobuf (4.29.3-x64-mingw-ucrt)
23+
bigdecimal
24+
rake (>= 13)
2125
google-protobuf (4.29.3-x86_64-linux)
2226
bigdecimal
2327
rake (>= 13)
@@ -45,6 +49,11 @@ GEM
4549
webrick (~> 1.7)
4650
jekyll-include-cache (0.2.1)
4751
jekyll (>= 3.7, < 5.0)
52+
jekyll-remote-theme (0.4.3)
53+
addressable (~> 2.0)
54+
jekyll (>= 3.5, < 5.0)
55+
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
56+
rubyzip (>= 1.3.0, < 3.0)
4857
jekyll-sass-converter (3.0.0)
4958
sass-embedded (~> 1.54)
5059
jekyll-seo-tag (2.8.0)
@@ -75,9 +84,12 @@ GEM
7584
ffi (~> 1.0)
7685
rexml (3.4.0)
7786
rouge (4.5.1)
87+
rubyzip (2.4.1)
7888
safe_yaml (1.0.5)
7989
sass-embedded (1.83.4-arm64-darwin)
8090
google-protobuf (~> 4.29)
91+
sass-embedded (1.83.4-x64-mingw-ucrt)
92+
google-protobuf (~> 4.29)
8193
sass-embedded (1.83.4-x86_64-linux-gnu)
8294
google-protobuf (~> 4.29)
8395
terminal-table (3.0.2)
@@ -87,10 +99,12 @@ GEM
8799

88100
PLATFORMS
89101
arm64-darwin
102+
x64-mingw-ucrt
90103
x86_64-linux-gnu
91104

92105
DEPENDENCIES
93106
jekyll (~> 4.4.1)
107+
jekyll-remote-theme
94108
just-the-docs (= 0.10.1)
95109

96110
BUNDLED WITH

_config.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,37 @@ title: Java 21 OCP Flashcards
22
description: A Structured collection of flashcards to help you prepare for the Oracle Certified Professional (OCP) Java 21 exam.
33
remote_theme: just-the-docs/just-the-docs
44
url: https://anasss.github.io
5-
baseurl: /java21docCards # Add this line!
5+
baseurl: /java21docCards
66
nav_enabled: true
77
back_to_top: true
8+
89
plugins:
910
- jekyll-remote-theme
11+
12+
# Collections configuration
13+
collections:
14+
flashcards:
15+
output: true
16+
permalink: /:collection/:name/
17+
sort_by: order
18+
19+
# Default front matter
20+
defaults:
21+
- scope:
22+
path: ""
23+
type: "flashcards"
24+
values:
25+
layout: "flashcard"
26+
parent: "Java 21 OCP Flashcards"
27+
28+
# Just the Docs configuration
29+
search_enabled: true
30+
aux_links:
31+
"GitHub Repository":
32+
- "https://github.com/Anasss/java21docCards"
33+
34+
# Quiz configuration
35+
quiz:
36+
title: "Java 21 OCP Quiz"
37+
description: "Test your knowledge of Java 21 OCP exam topics"
38+
total_questions: 32

0 commit comments

Comments
 (0)