This issue is just to track the changes we're making to the layout of the descriptions and how the tests are rendered. Many of these are minor changes like moving the challenge instructions to the instructions section, or removing <p>
tags and/or the space between the function name and the first parenthesis in the seed. I'll submit a PR over the next few days.
More substantial changes are listed below:
<ul>
<pre>
section and <ul>
. Reordered some text in the instructions section<pre>
section, inline border style, and bolded some text<ol>
for example section, removed the word "Task", and removed the "Related Tasks" section<ul>
list and line breaks for math functions<ul>
s and bolded some text<ul>
for the resources and further readings, and moved the resources list to the bottom of the description<ol>
and <ul>
<ul>
<ul>
s and bolded text<ul>
<ul>
sections and bolded text<ul>
and bolded text<pre>
sections in description and bolded text<pre>
<pre>
and bolded text<pre>
section, and edited the instructions for clarity<pre>
section<pre>
section, spacing, and edited the testString of the second test, changing it from "...should return a array" to "...should return an array"<pre>
section and edited the testString of the second test, changing it from "...should return a array" to "...should return an array"<pre>
section and edited the testString of the second test, changing it from "...should return a array" to "...should return an array"<pre>
so users can scroll horizontally<code>
tags to the 5th and 6th tests, and fixed grammatical error in instructions, chaging "it's" to "its"<pre>
section, and fixed spelling error, changing "quatro" to "cuatro"<code>
tags and removed a commented out console.log
call in the solutionfunction crossProduct() {...
to function crossProduct(a, b) {...
since the function should take two arrays as parametersfunction dotProduct() {...
to function dotProduct(...vectors) {...
since the function should take any number of arrays as parametersDuplicate challenges that have been skipped and will be removed in #35547:
Okay, I definitely misunderstood something there, I've made one PR, sorry for that @scissorsneedfoodtoo , didn't realize that you were doing these until I read it again for like the 5th time 馃う
@thecodingaviator, sorry about that! I see how what I wrote can be confusing. I'll go back and make things more clear.
The changes in your PR look great, so I'll revert the changes I made to the 24 Game challenge.
Would you like to help me go over the other challenges? If so, you could start from the end of the list at Z and I'll keep working from the top. There are a few challenges that need to be removed since they're duplicates, though, and I'll make a note of those in my first comment.
@scissorsneedfoodtoo I'd be glad to. Will start working up the list!
@thecodingaviator, thanks! Really appreciate the help.
@raisedadead, @Bouncey, some of the challenges like "Cut a rectangle" use pictures. Is there a place we can host the pictures ourselves?
We frown upon pictures. But unless they are an absolute necessity, you can add them to our CDN repo https://github.com/freecodecamp/cdn
These are served from https://cdn.freecodecamp.org
We frown upon pictures. But unless they are an absolute necessity
To add further to this. If a picture is the only way to go, please use a REALLY good alt
description.
I can see why pictures would be frowned upon. Here's the picture in question:
So not strictly necessary, but definitely a useful visualization for this challenge. Right now on freecodecamp.rocks we just have a link to the image on Rosetta Code. I was thinking, since it's an svg we could just have the code in the description rather than linking to it from the CDN repo. Would that and a good alt
description be a good alternative? Adding aria-hidden="true"
should hide the wall of text from screen readers, too.
@scissorsneedfoodtoo Are we also moving the challenge instruction to the instructions div or we're leaving it in the description only?
@thecodingaviator, I would probably say it's fine just to leave the challenge instructions where they are. Which challenge are you working on?
@scissorsneedfoodtoo , @thecodingaviator We have a PR for the APIs and Microservices challenges where we are moving instructions to the Instructions sections (where applicable). Some of the challenges in those sections only have instructions. In those cases, we have been leaving everything in the Description section.
I think it makes the challenge clear about what is info vs. instructions.
@RandellDawson, thanks for the info! I took a look but couldn't find that particular PR. Could you post a link? I'd like to do the same here if possible. There's usually a last sentence or two in the description that could be moved to the instructions section.
@scissorsneedfoodtoo I was still working on my PR (#35442) a the time I responded earlier. It is one of several PRs addressing issue #35413 which is tracking similar changes to all the challenges in in the back-end challenges.
@scissorsneedfoodtoo I was waiting for your input on whether we are moving instructions to the instructions section. I currently haven't moved ahead the Zig Zag challenge
@RandellDawson, thank you for the links! Those examples will be really helpful here.
@thecodingaviator, sorry for the late response. I take back what I said earlier about leaving the instructions in the description. It would be better to move them to the instruction section. Usually it's the last couple of sentences in the description, or anything after "Task".
@scissorsneedfoodtoo Alright! That's how I'll proceed with it now 馃憤
@thecodingaviator, alright, sounds great! Thanks again for all your help here. I'll review your PRs as they come in.
@scissorsneedfoodtoo Hey, I'm interested in working on this. I was busy recently so I was not able to ask before.
Hey @Nirajn2311! The actual formatting and fixes for most of these problems are done, but it would be great if you could help review a couple of PRs.
If you would rather work on one of the problems, I noticed that the tests and description for "Department Numbers" could use some work.
@scissorsneedfoodtoo PR #35487 is already merged, and I'll go through the other PR this weekend.