File tree Expand file tree Collapse file tree 2 files changed +33
-39
lines changed
web-app/src/components/NewUserExperience Expand file tree Collapse file tree 2 files changed +33
-39
lines changed Original file line number Diff line number Diff line change 44
55CodeRoad allows you to play interactive coding tutorials in your editor.
66
7- ## Requirements
7+ ## Getting Started
88
9- Requires:
9+ ### Launch
10+
11+ To start the extension, inside VSCode:
12+
13+ - Open the VSCode command palette.
14+ - select “View” > “Command Palette” from the top panel
15+ - alternatively, press ` cmd/ctrl + shift + P `
16+ - Search for and run ` CodeRoad:Start `
17+ - A web view should appear on the right side of your editor asking you to click "Start"
18+
19+ ### Requirements
1020
1121- VSCode 1.40+
1222- Git
@@ -15,4 +25,24 @@ Requires:
1525## Run
1626
17271 . Open the command prompt: ` cmd/ctrl + shift + p `
18- 2 . Search for and run ` coderoad:start `
28+ 2 . # Search for and run ` coderoad:start `
29+
30+ ### Installation
31+
32+ > Currently CodeRoad is not yet available in the VSCode marketplace (coming soon!).
33+
34+ To install the extension manually:
35+
36+ - run ` vsce package ` to build the package.
37+ Learn more about [ VSCE] ( https://code.visualstudio.com/api/working-with-extensions/publishing-extension )
38+ - run ` code —install-extension coderoad-0.1.0.vsix ` .
39+
40+ ## Creating a Tutorial
41+
42+ Build and share your own interactive tutorials.
43+
44+ Learn more about [ how tutorials area created] ( ./docs/tutorials.md ) .
45+
46+ ## License
47+
48+ [ AGPL v3] ( ./LICENSE.md )
Original file line number Diff line number Diff line change 11import React from 'react'
22import { Collapse , Icon } from '@alifd/next'
3- import Button from '../Button'
43import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
54import './transition.css'
65
@@ -27,27 +26,6 @@ const styles = {
2726 } ,
2827}
2928
30- type LoadSolutionButtonProps = {
31- onLoadSolution : ( ) => void
32- close : ( ) => void
33- }
34-
35- const LoadSolutionButton = ( props : LoadSolutionButtonProps ) => {
36- const [ loadedSolution , setLoadedSolution ] = React . useState ( false )
37- const onClickHandler = ( ) => {
38- props . close ( )
39- if ( ! loadedSolution ) {
40- setLoadedSolution ( true )
41- props . onLoadSolution ( )
42- }
43- }
44- return (
45- < Button type = "secondary" onClick = { onClickHandler } disabled = { loadedSolution } >
46- Load Solution
47- </ Button >
48- )
49- }
50-
5129type NuxProps = {
5230 onClose : ( ) => void
5331 onLoadSolution : ( ) => void
@@ -113,20 +91,6 @@ const NewUserExperienceTutorialCollapsible = (props: NuxProps) => {
11391 Read the tests. The tests can be found in the test directory and can be read in detail to help you
11492 understand what's failing.
11593 </ li >
116- < br />
117- < li >
118- Still stuck? Load the solution. Each step in CodeRoad is stored as a Git commit - including the solution.
119- Load the solution commit by pressing the button below.
120- < br />
121- < br />
122- < LoadSolutionButton
123- onLoadSolution = { props . onLoadSolution }
124- close = { ( ) => {
125- setExpandedKeys ( [ ] )
126- props . onClose ( )
127- } }
128- />
129- </ li >
13094 </ ol >
13195 </ Panel >
13296 < Panel title = "Contact" >
You can’t perform that action at this time.
0 commit comments