Skip to content

Commit 017e177

Browse files
authored
Merge pull request #431 from jordanliu/feature/images
[docs] feature/images
2 parents c08d282 + c6fbc12 commit 017e177

17 files changed

+232
-367
lines changed

Diff for: β€Ž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)

Diff for: β€Ždocs/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
navbar: {
1616
title: 'CodeRoad',
1717
logo: {
18-
alt: 'My Site Logo',
18+
alt: 'CodeRoad Logo',
1919
src: 'img/logo.svg',
2020
},
2121
links: [

Diff for: β€Ždocs/src/css/custom.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/* You can override the default Infima variables here. */
99
:root {
10-
--ifm-color-primary: #25c2a0;
10+
--ifm-color-primary: #33a5f1;
1111
--ifm-color-primary-dark: rgb(33, 175, 144);
1212
--ifm-color-primary-darker: rgb(31, 165, 136);
1313
--ifm-color-primary-darkest: rgb(26, 136, 112);

Diff for: β€Ždocs/src/pages/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import styles from './styles.module.css'
99
const features = [
1010
{
1111
title: <>Your Editor</>,
12-
imageUrl: 'img/undraw_docusaurus_mountain.svg',
12+
imageUrl: 'img/undraw_editor.svg',
1313
description: <>Playing tutorials in a real-world setting: within your coding editor.</>,
1414
},
1515
{
1616
title: <>Your Code</>,
17-
imageUrl: 'img/undraw_docusaurus_tree.svg',
17+
imageUrl: 'img/undraw_code.svg',
1818
description: <>You own your progress. Save with Git to build your timeline. Deploy to build your portfolio.</>,
1919
},
2020
{
2121
title: <>Free & Open</>,
22-
imageUrl: 'img/undraw_docusaurus_react.svg',
22+
imageUrl: 'img/undraw_open_source.svg',
2323
description: <>CodeRoad is open-source. Build your own tutorials. Contribute to the tooling.</>,
2424
},
2525
]

Diff for: β€Ždocs/static/img/favicon.ico

654 Bytes
Binary file not shown.

Diff for: β€Ždocs/static/img/logo-128.png

7.2 KB
Loading

Diff for: β€Ždocs/static/img/logo-16.png

637 Bytes
Loading

Diff for: β€Ždocs/static/img/logo-200.png

16.5 KB
Loading

Diff for: β€Ždocs/static/img/logo-24.png

1005 Bytes
Loading

Diff for: β€Ždocs/static/img/logo-32.png

1.39 KB
Loading

Diff for: β€Ždocs/static/img/logo.svg

+39-1
Loading

Diff for: β€Ždocs/static/img/undraw_code.svg

+21
Loading

0 commit comments

Comments
Β (0)