generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 328
fix: update coding challenges page #1246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
raisedadead
merged 16 commits into
freeCodeCamp:main
from
jdwilkin4:clean-coding-challenges-page
Mar 15, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7458989
fix: clean up tip
jdwilkin4 31f292d
fix: cleanup intro and remove outdated information
jdwilkin4 bee8fd5
wip: updating early sections
jdwilkin4 39a6d48
Merge branch 'main' into clean-coding-challenges-page
jdwilkin4 718338e
fix: cleanup specialized guides section
jdwilkin4 f900be8
fix: template
jdwilkin4 ea75366
fix: specialized guides section
jdwilkin4 57ff428
chore: moving naming challenges to video courses page
jdwilkin4 8245bd0
fix: removing deprecated content
jdwilkin4 2750865
chore: update examples in seed code section
jdwilkin4 bff0a5d
feat: add core curriculum section
jdwilkin4 33f2e1c
Apply suggestion from @jdwilkin4
jdwilkin4 805f290
Apply suggestion from @jdwilkin4
jdwilkin4 35d8e58
feat: add create project section
jdwilkin4 0c58298
fix: code example
jdwilkin4 f279f90
feat: add note to video page
jdwilkin4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,41 @@ A video challenge is a small section of a full-length video course on a particul | |
|
|
||
| The video challenge pages are created by members of the freeCodeCamp team. YouTube videos are also uploaded by members of the freeCodeCamp team. | ||
|
|
||
| ## Numbering Challenges | ||
|
|
||
| :::note | ||
| This section only applies to the catalog items which don't use the existing scripts for generating files with MongoDB ids. | ||
| ::: | ||
|
Comment on lines
+13
to
+15
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can use the if needed the template they use can be updated more |
||
|
|
||
| Every challenge needs an `id`. If you don't specify one, then MongoDB will create a new random one when it saves the data; however, we don't want it to do that, since we want the challenge ids to be consistent across different environments (staging, production, lots of different developers, etc.). | ||
|
|
||
| To generate a new one in a shell (assuming MongoDB is running separately): | ||
|
|
||
| 1. Run `mongo` command. | ||
| 2. Run `ObjectId()` command. | ||
|
|
||
| For example: | ||
|
|
||
| ```bash | ||
| $ mongo | ||
| MongoDB shell version v3.6.1 | ||
| connecting to: mongodb://127.0.0.1:27017 | ||
| MongoDB server version: 3.4.10 | ||
| ... | ||
| $ ObjectId() | ||
| ObjectId("5a474d78df58bafeb3535d34") | ||
| ``` | ||
|
|
||
| The result is a new id, for example, `5a474d78df58bafeb3535d34` above. | ||
|
|
||
| Once you have your id, put it into the markdown file as the `id` field at the top, e.g. | ||
|
|
||
| ```yml | ||
| --- | ||
| id: 5a474d78df58bafeb3535d34 | ||
| title: Challenge Title | ||
| ``` | ||
|
|
||
| ## Challenge Template | ||
|
|
||
| Below is a template of what the challenge markdown files look like. | ||
|
|
@@ -20,7 +55,6 @@ sidebar: | |
| label: Work on Video Challenges | ||
| challengeType: 11 | ||
| videoId: 'YouTube videoId for video challenge' | ||
| forumTopicId: 12345 | ||
| --- | ||
|
|
||
| # --description-- | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.