Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Creating Lessons on CTFGuide

Pranav Ramesh edited this page Apr 30, 2022 · 1 revision

Creating Lessons for CTFGuide

  1. Fork https://github.com/ctfguide-tech/CTFGuideReact/tree/dev

  2. Head to /pages/content

  3. You'll notice files name Ch1_1.js and what not.

  4. You are responsible for creating lessons Ch2_1 and Ch2_2 so create the files for those.

  5. All those files should have everything https://github.com/ctfguide-tech/CTFGuideReact/blob/dev/src/pages/content/Ch1_1.js/ has.

  6. Scroll down all the way to Line 283. This is where the content you will need to add will be. It's indicated by a comment too.

  7. After doing so replace the Ch1_1 on line 14 and line 326 with the correct substitute.

  8. After this head to src/index.js.

  9. Head to line 24 where you'll see a comment stating LESSONS. Import your lesson id there. It should look something along the lines of import Ch1_1 from "./pages/content/Ch1_1.

  10. Insert <Route path="/learn/chapter1/lesson1" element={<Ch1_1 />} /> under line 54 but replace with the stuff your editing.

  11. Create a pull request and wait for us to approve your changes.

Clone this wiki locally