Skip to content

Commit c6fbc12

Browse files
committed
readme: formatting
Signed-off-by: jordanliu <jordanxavierliu@gmail.com>
1 parent 1eb0e1f commit c6fbc12

File tree

1 file changed

+81
-21
lines changed

1 file changed

+81
-21
lines changed

docs/README.md

+81-21
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,93 @@
1-
# Website
1+
<p align="center">
2+
<a href="https://coderoad.github.io/">
3+
<img alt="CodeRoad Logo" src="https://user-images.githubusercontent.com/9423525/89562564-26b4f780-d7e8-11ea-9eb0-3109b0e55d3b.png" width="100" />
4+
</a>
5+
</p>
6+
<h1 align="center">
7+
CodeRoad VSCode
8+
</h1>
29

3-
This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator.
10+
<p align="center">
11+
<a href="#" alt="Version"><img src="https://vsmarketplacebadge.apphb.com/version/Coderoad.coderoad.svg" /></a>
12+
<a href="#" alt="Installs"><img src="https://vsmarketplacebadge.apphb.com/installs/Coderoad.coderoad.svg" /></a>
13+
<a href="#" alt="Downloads"><img src="https://vsmarketplacebadge.apphb.com/downloads/Coderoad.coderoad.svg" /></a>
14+
</p>
415

5-
### Installation
16+
CodeRoad is a VSCode extension that allows you to play interactive coding tutorials in your editor.
617

7-
```
8-
$ yarn
9-
```
18+
![CodeRoad Image](./docs/static/img/tutorial-example.png)
1019

11-
### Local Development
20+
## Why
1221

13-
```
14-
$ yarn start
15-
```
22+
Interactive learning is the most effective way to gain new skills and knowledge. CodeRoad aims to help tutorial creators develop and share interactive content with the community.
1623

17-
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
24+
For learners, there are a number of advantages to running tutorials inside VSCode:
1825

19-
### Build
26+
- learn in a real world coding environment
27+
- get rapid feedback on save and helpful error messages
28+
- users own the code, and can build a Git timeline and deploy a portfolio
2029

21-
```
22-
$ yarn build
23-
```
30+
## Getting Started
2431

25-
This command generates static content into the `build` directory and can be served using any static contents hosting service.
32+
### Start
2633

27-
### Deployment
34+
To start the extension, inside VSCode:
2835

29-
```
30-
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
31-
```
36+
- open an empty VSCode workspace (an empty folder)
37+
- launch the app from the VSCode command palette:
38+
- select “View” > “Command Palette” from the top panel OR press `cmd/ctrl + shift + P`
39+
- in the command palette, search for and run `CodeRoad:Start`
40+
- a webview should appear on the right side of your editor. Click "Start"
3241

33-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
42+
### Install
43+
44+
Install CodeRoad from [this link in the VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=CodeRoad.coderoad).
45+
46+
- You may need to reload the window (`ctrl/cmd + R`)
47+
- See ["Start"](#start) to get started.
48+
49+
### Requirements
50+
51+
- OS: MacOS, Windows, Linux
52+
- VSCode 1.39.2+
53+
- Node.js 10+
54+
- Git
55+
56+
## How CodeRoad Works
57+
58+
Read more in the docs about [how CodeRoad works](https://coderoad.github.io/docs/how-coderoad-works).
59+
60+
## Creating Tutorials
61+
62+
Build and share your own interactive tutorials.
63+
64+
Learn more about [how tutorials area created](https://coderoad.github.io/docs/build-tutorial).
65+
66+
## Editing Tutorials
67+
68+
Tutorials can be edited directly as markdown on Github.
69+
70+
## Development
71+
72+
To run the extension locally:
73+
74+
- copy environmental variables from `/web-app/.env.example` as `/web-app/.env`
75+
- install dependencies with `yarn install-all`
76+
- build the extension with `yarn build`
77+
- open the extension with the vscode extension debugger by pressing F5. In the new window, open CodeRoad.
78+
79+
To test a packaged build locally:
80+
81+
- if on Mac, ensure you have [VSCode command line tools](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line) installed
82+
- run `yarn package`. It will build the extension and install it locally.
83+
- open a new vscode window and launch the new version of CodeRoad
84+
85+
## Contributing
86+
87+
CodeRoad is an ambitious project, we're always looking for contributors :)
88+
89+
See [CONTRIBUTING.md](./CONTRIBUTING.md).
90+
91+
## License
92+
93+
[AGPL v3](./LICENSE.md)

0 commit comments

Comments
 (0)