Skip to content

Commit c9a452d

Browse files
refactor(docs): separate course creator and contributor guides
1 parent edc7d2f commit c9a452d

4 files changed

Lines changed: 120 additions & 242 deletions

File tree

docs/src/SUMMARY.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Summary
22

33
- [Introduction](./introduction.md)
4+
5+
# Course Creator Guide
6+
47
- [Getting Started](./getting-started.md)
58
- [CLI](./cli.md)
6-
- [Examples](./examples.md)
79
- [Configuration](./configuration.md)
810
- [Project Syntax](./project-syntax.md)
9-
- [freeCodeCamp - Courses](./freecodecamp-courses.md)
1011
- [Lessoning]()
1112
- [Lifecycle](./lessoning/lifecycle.md)
1213
- [Lesson](./lessoning/lesson.md)
@@ -20,6 +21,11 @@
2021
- [Reset](./resetting/reset.md)
2122
- [Plugin System](./plugin-system.md)
2223
- [Client Injection](./client-injection.md)
24+
- [Examples](./examples.md)
25+
- [freeCodeCamp - Courses](./freecodecamp-courses.md)
26+
27+
# Contributing
28+
2329
- [Contributing](./contributing.md)
24-
- [CHANGELOG](./CHANGELOG.md)
2530
- [Roadmap](./roadmap.md)
31+
- [CHANGELOG](./CHANGELOG.md)

docs/src/cli.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# CLI
22

3+
The `create-freecodecamp-os-app` CLI helps you scaffold and manage freeCodeCampOS courses.
4+
35
## Installation
46

5-
### Releases
7+
### `npx` (recommended)
68

7-
Locate your platform in the [releases](https://github.com/freeCodeCamp/freeCodeCampOS/releases) section and download the latest version.
9+
No installation required — run directly with `npx`:
10+
11+
```bash
12+
npx create-freecodecamp-os-app <command>
13+
```
814

915
### `cargo`
1016

@@ -16,30 +22,36 @@ Requires Rust to be installed: https://www.rust-lang.org/tools/install
1622
cargo install create-freecodecamp-os-app
1723
```
1824

25+
### Releases
26+
27+
Locate your platform in the [releases](https://github.com/freeCodeCamp/freeCodeCampOS/releases) section and download the latest version.
28+
1929
## Usage
2030

21-
To create a new course with some boilerplate:
31+
### Create a new course
2232

2333
```bash
24-
create-freecodecamp-os-app create
34+
npx create-freecodecamp-os-app create
2535
```
2636

27-
To add a project to an existing course:
37+
### Add a project to an existing course
2838

2939
```bash
30-
create-freecodecamp-os-app add-project
40+
npx create-freecodecamp-os-app add-project
3141
```
3242

33-
To rename a project in an existing course:
43+
### Rename a project in an existing course
3444

3545
```bash
36-
create-freecodecamp-os-app rename-project
46+
npx create-freecodecamp-os-app rename-project
3747
```
3848

39-
To validate the course configuration files:
49+
### Validate the course configuration files
4050

4151
```bash
42-
create-freecodecamp-os-app validate
52+
npx create-freecodecamp-os-app validate
4353
```
4454

45-
The version of the CLI is tied to the version of `freecodecamp-os`. Some options may not be available if the version of the CLI is not compatible with the version of `freecodecamp-os` that is installed.
55+
```admonish note
56+
The version of the CLI is tied to the version of `freecodecamp-os`. Some options may not be available if the CLI version is not compatible with the installed version of `freecodecamp-os`.
57+
```

docs/src/contributing.md

Lines changed: 64 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,80 @@
11
# Contributing
22

3+
## System Requirements
4+
5+
- **Rust 1.93.1+**[Install Rust](https://rustup.rs/)
6+
- **Bun 1.3.10+**[Install Bun](https://bun.sh/)
7+
- **Node.js 20+**
8+
39
## Local Development
410

5-
1. Open `freeCodeCampOS/example` as a new workspace in VSCode
11+
1. Clone the repository and open `freeCodeCampOS/example` as a new workspace in VSCode.
12+
613
2. Install dependencies and build the project:
14+
715
```bash
816
bun install
917
bun run build
1018
```
19+
1120
3. Run the development server:
21+
1222
```bash
13-
cargo run --bin server
23+
cargo run --bin freecodecamp-server
1424
```
25+
1526
4. In a separate terminal, run the client in development mode:
27+
1628
```bash
1729
cd client && bun run dev
1830
```
1931

20-
## Gitpod
32+
The client will be available at `http://localhost:5173`.
33+
34+
### Common Tasks
35+
36+
```bash
37+
# Run all tests
38+
cargo test --all
39+
40+
# Check formatting
41+
cargo fmt --all -- --check
42+
43+
# Fix formatting
44+
cargo fmt --all
2145

22-
1. Open the project in Gitpod:
46+
# Run linter
47+
cargo clippy --all -- -D warnings
48+
49+
# Build optimized binaries
50+
cargo build --release --all
51+
52+
# Build client assets
53+
cd client && bun run build
54+
```
55+
56+
### Environment Variables
57+
58+
```bash
59+
RUST_LOG=info # Log level (debug, info, warn, error)
60+
PORT=8080 # Server port (default: 8080)
61+
CONFIG_PATH=./conf.json # Path to configuration file
62+
```
63+
64+
## Repository Layout
65+
66+
```
67+
cli/ # create-freecodecamp-os-app CLI tool
68+
client/ # React frontend
69+
config/ # Shared types and configuration
70+
docs/ # Documentation (this site)
71+
example/ # Example curriculum used for development
72+
parser/ # Curriculum markdown parser
73+
runner/ # Test execution engine
74+
server/ # Axum HTTP server
75+
```
76+
77+
## Gitpod
2378

2479
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/freeCodeCamp/freecodecampOS)
2580

@@ -72,7 +127,7 @@ Any top-level directory or config file. Changing a package should have a scope o
72127

73128
## Documentation
74129

75-
This documention is built using [mdBook](https://rust-lang.github.io/mdBook/). Read their documentation to install the latest version.
130+
This documentation is built using [mdBook](https://rust-lang.github.io/mdBook/). Read their documentation to install the latest version.
76131

77132
Also, the documentation uses `mdbook-admonish`:
78133

@@ -87,7 +142,7 @@ cd docs
87142
mdbook serve
88143
```
89144

90-
This will spin up a local server at `http://localhost:3000`. Also, this has hot-reloading, so any changes you make will be reflected in the browser.
145+
This will spin up a local server at `http://localhost:3000` with hot-reloading.
91146

92147
### Build the Documentation
93148

@@ -98,13 +153,13 @@ mdbook build
98153

99154
## CLI (`create-freecodecamp-os-app`)
100155

101-
The CLI is written in Rust, and is located in the `cli` directory.
156+
The CLI is written in Rust and is located in the `cli` directory.
102157

103158
### Development
104159

105160
```bash
106-
$ cd cli
107-
cli$ cargo run
161+
cd cli
162+
cargo run
108163
```
109164

110165
---

0 commit comments

Comments
 (0)