Commit Graph

48 Commits

Author SHA1 Message Date
Randell Dawson
00a876d9b2 fix(learn): use json files for comments (#40844) 2021-01-31 21:36:57 +05:30
Oliver Eyton-Williams
ac6fc605ad refactor: clean up supportLangs refs 2021-01-31 12:15:34 +05:30
Oliver Eyton-Williams
24d9c94fe5 refactor: remove confusing abstraction 2021-01-31 12:15:34 +05:30
Oliver Eyton-Williams
7c4e0ec41e refactor: abstract out walk in getChallenges 2021-01-31 12:15:33 +05:30
Tom
3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Oliver Eyton-Williams
ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00
Oliver Eyton-Williams
1f65b3b7eb fix: require project completion to claim certs (#40399)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
2020-12-08 07:53:02 -08:00
Oliver Eyton-Williams
0bd52f8bd1 Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00
Oliver Eyton-Williams
e4a9b2988c feat: update Ask for help (#40114)
* feat: get helpCategory from frontmatter

* DEBUG: sets all the projects to JavaScript

This is just so the tests pass, it'll need to go.

* fix: updated helpCategoryMap categories

* fix: added Python to helpCategory frontmatter key

Co-authored-by: Randell Dawson <rdawson@onepathtech.com>
2020-10-30 14:10:34 -05:00
Oliver Eyton-Williams
92a60f8bce fix(tools): update translation parser
Since we're adding more validation we can simplify the parser and
make sure it does catch all the comments.  Rather than worry about a
load of edge cases that do not appear in our challenges.
2020-10-22 03:18:16 +05:30
Oliver Eyton-Williams
793fa8fb52 test: check replaced iff translatable comment
All translatable comments should be replaced, but nothing else.
2020-10-22 03:18:13 +05:30
Oliver Eyton-Williams
d2ecd03013 fix: recreate comment map 2020-10-22 02:51:46 +05:30
Randell Dawson
2cae697f65 fix: change variables to match exported names 2020-10-22 02:51:45 +05:30
Randell Dawson
5eb33e36e1 fix(learn): add a comments dictionary 2020-10-22 02:51:45 +05:30
Oliver Eyton-Williams
1b895e7809 fix: translate title and dashName correctly 2020-10-06 23:10:08 +05:30
Oliver Eyton-Williams
df532099bc test: stop relying on curriculum dir structure
Also refactors path resolution a little
2020-09-29 22:09:02 +02:00
Oliver Eyton-Williams
9089ddca5c fix: use location for language, not extension
Rather than relying on .lang.md this expects to find the English source
challenge in /curriculum/challenges/english/<translationPath>
2020-09-29 22:09:01 +02:00
Oliver Eyton-Williams
34f2c4ae32 refactor: acceptedLanguage -> supported 2020-09-29 22:08:59 +02:00
Oliver Eyton-Williams
7bed07ee8a fix(tools): update parser for multi-file editor 2020-09-16 11:54:13 +05:30
Oliver Eyton-Williams
301212e194 feat: handle multi-file solutions 2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
754a33970e refactor(multi) move preparation into curriculum 2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00
Shaun Hamilton
83c6de0144 fix: add backslash to path test for windows paths (#39454)
* fix: add backslash to path test for windows paths

* fix: add posix seperator to path tester

Co-authored-by: Randell Dawson <rdawson@onepathtech.com>
2020-08-25 13:22:03 -07:00
Oliver Eyton-Williams
b197f73881 feat: restrict translation to audited certs 2020-08-16 04:45:19 +05:30
Oliver Eyton-Williams
1ec6cf1efd fix: handle video challenges 2020-08-16 04:45:19 +05:30
Oliver Eyton-Williams
0952ca6bfd feat: parse translated challenges
Using the English challenge as a source for the seed, solution and tests
this takes the parts that can be translated from the translated version
of the challenge. It also translates known comments in the seed.
2020-08-16 04:45:17 +05:30
Oliver Eyton-Williams
de3492fded Chore: remove old translation tools, import parser (#39273) 2020-07-27 18:11:53 +05:30
Oliver Eyton-Williams
b4926052f4 chore: refactor and simplify testing (#39050) 2020-06-13 14:57:15 +05:30
Oliver Eyton-Williams
d233cb35a3 fix(client): ensure validation works during watch (#38936) 2020-05-28 20:54:29 +05:30
Oliver Eyton-Williams
4d176bf2fb fix(curriculum): validate straight after parsing (#38896) 2020-05-27 16:59:58 +05:30
Oliver Eyton-Williams
9b297ed76d fix(curriculum): control visibility via env 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams
68aef571ee feat: hide isHidden challenges 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams
d865e2cb0e feat: restore challenge validation 2020-05-25 16:25:19 +05:30
Tom
560aacd4eb fix: add more tests for curriclum testing (#38464)
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-23 22:31:15 +05:30
Oliver Eyton-Williams
9c2f1ffd82 refactor: combine slug utils into one module 2019-09-26 22:15:27 +05:30
Valeriy
4d79af2b46 fix(tools): wait for the last challenge to be populated (#35596) 2019-03-15 22:12:56 +01:00
Bouncey
b13e5fb41a feat: Use prettier-eslint to format code 2019-02-19 14:30:27 +05:30
Valeriy
088cbb684e fix: watch challenges 2018-11-28 15:19:38 +00:00
Valeriy
4c1b8ce52c fix: replace localeChallengesRootDir to getChallengesDirForLang 2018-11-28 15:19:38 +00:00
Stuart Taylor
cee98aef43 feat: watch challenges (#34321) 2018-11-16 23:52:52 +05:30
Bouncey
dace86663f fix(current-challenge): Fix current-challenge API 2018-11-13 05:39:50 +05:30
Valeriy
bad6fc3e53 fix: build on Windows (#18831) 2018-10-25 15:24:57 +05:30
Beau Carnes
e3f9dc4b86 feat: add Spanish and language parser 2018-10-11 02:15:05 +05:30
Bouncey
aa668ca30e feat(langs): Prep Spanish challenges for parsing 2018-10-11 02:15:05 +05:30
Bouncey
badc68089f chore(pkg): Prep md parser for publish
fix(netlify): Fix Build
2018-10-05 15:58:12 +01:00
Bouncey
3151390be4 feat(next): BREAKING New curriculum package 2018-10-05 15:58:12 +01:00
Bouncey
2723a943c9 feat(getChallenges): Get Challenges by Lang 2018-10-05 15:58:12 +01:00
Mrugesh Mohapatra
67929d80ff chore: preparing for the move 2018-09-27 12:36:41 +05:30