Skip to content

Commit

Permalink
Fix page breaks in UG
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyaohhh committed Nov 14, 2023
1 parent 3b7a76b commit da1d34f
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Warnings in boxes like this contain information that are vital to the running of

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## Quick start

1. Ensure you have Java 11 or above installed in your Computer.
Expand All @@ -82,6 +84,7 @@ As ModCraft writes to files within the directory it is in, we recommend placing
4. Open a command terminal, `cd` into the folder you put the jar file in, and use the `java -jar ModCraft.jar` command to run the application. A GUI similar to below should appear in a few seconds. Note how the app contains some sample data.<br> <br>
![StartUp](images/ImagesForUG/StartUp.png)

<div style="page-break-after: always;"></div>

5. Type the command in the command box and press Enter to execute it. e.g. typing `help` and pressing Enter will open the help window.<br>
Some example commands you can try:
Expand All @@ -102,6 +105,8 @@ As ModCraft writes to files within the directory it is in, we recommend placing

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## Features

<br>
Expand Down Expand Up @@ -131,6 +136,8 @@ As ModCraft writes to files within the directory it is in, we recommend placing

<br>

<div style="page-break-after: always;"></div>

### Viewing help: `help`

Displays to you a popup explaining how to access the User Guide of ModCraft, as shown below.
Expand All @@ -150,6 +157,8 @@ help

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### <span style="text-decoration:underline">Modules</span>

The modules in ModCraft are [courses from National University of Singapore (NUS)](https://nusmods.com/courses?sem[0]=1&sem[1]=2&sem[2]=3&sem[3]=4). The modules have **Module Code**, **Module Title**, **Module Description** and **Modular Credits**.
Expand All @@ -168,6 +177,8 @@ The Module Code, Module Title, Module Description and Modular Credits **cannot**

<br>

<div style="page-break-after: always;"></div>

In ModCraft, you can specify the **Year**, **Semester** and **Grade** of each module when you are adding or editing your study plan.


Expand All @@ -191,6 +202,8 @@ In ModCraft, you can specify the **Year**, **Semester** and **Grade** of each mo

<br>

<div style="page-break-after: always;"></div>

The images below show you the process for adding a module to the Advance Placement semester in ModCraft. The module `CS1010` is being added to Year 0 (the Advance Placement semester).

<div style="display:flex; justify-content:space-around; align-items:center;">
Expand All @@ -208,6 +221,8 @@ The images below show you the process for adding a module to the Advance Placeme

<br>

<div style="page-break-after: always;"></div>

The images below show you the process for adding a module to one of the Special Term (ST) in ModCraft. The module `CS3230` is being added to Year 1, Special Term 1.

<div style="display:flex; justify-content:space-around; align-items:center;">
Expand All @@ -223,6 +238,7 @@ The images below show you the process for adding a module to one of the Special
</figure>
</div>

<div style="page-break-after: always;"></div>

<div class="alert alert-danger"><md>:exclamation: **Caution:**
Currently, ModCraft has certain **limitations**.
Expand All @@ -249,6 +265,8 @@ These features are [planned enhancements](https://ay2324s1-cs2103t-t13-0.github.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Adding a module: `add`

You can add a module to your study plan of the list of modules taken in the specified **year** and **semester** with the specified **grade** using this command.
Expand Down Expand Up @@ -293,6 +311,8 @@ The images below show you the `add` command in action.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Editing a module: `edit`

You can change an attribute of a module using this command. This command works **only if the module has already been added**.
Expand All @@ -314,6 +334,8 @@ If before editing, the module was in Year 2 Semester 1, after editing it would b
If before editing, the module was in Year 1 Semester 2, after editing it would be in Year 1 Semester 1.
</md></div>

<div style="page-break-after: always;"></div>

The images below show you the `edit` command in action. The grade of `CS1101S` is being edited to `C`.

<div style="display:flex; justify-content:space-around; align-items:center;">
Expand All @@ -339,6 +361,8 @@ You need to provide **at least one** of the optional fields (i.e. `GRADE`, `YEAR

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Deleting a module: `delete`

You can remove the module from whichever semester the module is taken using this command. This command works **only if the module has already been added**.
Expand Down Expand Up @@ -368,6 +392,8 @@ The images below show you the `delete` command in action. The module `CS2101` is
</figure>
</div>

<div style="page-break-after: always;"></div>

<div class="alert alert-primary"><md>:bulb: **Tip:**

* If you are **dropping a module** and retaking it in later semesters, the module dropped should be **deleted** before adding the same module to another semester later on.
Expand All @@ -387,6 +413,8 @@ Deleting a module also **deletes all the information associated with the module*

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Finding information about a module: `info`

You can retrieve information about **any** module by its Module Code using this command, including the modules **not yet added** to your study plan.
Expand All @@ -410,7 +438,7 @@ The image below show you what ModCraft should look like after executing the `inf
<img src="images/ImagesForUG/info-after.png" alt="After executing info command" style="height:400px; margin:20px;">
</div>
<p style="text-align: center;">
The command `info CS3230` is executed. Information about the module `CS3230` is displayed.
The command info CS3230 is executed. Information about the module CS3230 is displayed.
</p>

<div class="alert alert-success"><md>:information_source: **Note:** The module information is taken from [NUSmods](https://github.com/nusmodifications/nusmods) for the current Academic Year 23/24.
Expand All @@ -422,6 +450,8 @@ The image below show you what ModCraft should look like after executing the `inf

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Calculating the total current CAP: `calculateCAP`

You can calculate the total current Cumulative Average Point (CAP), or Grade Point Average (GPA) of all modules stored in all years and semesters, using this command.
Expand All @@ -440,7 +470,6 @@ Displays you a `float` of `0.0` $\leq$ value $\leq$ `5.0`.
calculateCAP
```


Here is an example output after executing the `calculateCAP` command:

```
Expand All @@ -458,6 +487,8 @@ The result displayed by the `calculateCAP` command **does not include** the modu

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Calculating the total current Modular Credits (MCs): `calculateMC`

You can calculate the total current Modular Credits (MCs) stored in **all** years and semesters using this command.
Expand All @@ -484,6 +515,8 @@ regardless of the grade.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

### Exiting the program: `exit`

You can exit ModCraft using this command.
Expand All @@ -499,6 +532,8 @@ exit

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## Advanced use

ModuleList data is saved in the hard disk automatically after any command you inputted that changes the data.
Expand All @@ -519,6 +554,8 @@ Advanced users are welcome to update data directly by editing that data file.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## FAQ

| **Question** | **Answer** |
Expand All @@ -536,6 +573,8 @@ Advanced users are welcome to update data directly by editing that data file.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## Known issues

1. **When using multiple screens**, if you move the application to a secondary screen, and later switch to using only the primary screen, the GUI will open off-screen. The remedy is to delete the `preferences.json` file created by the application before running the application again.
Expand All @@ -547,6 +586,8 @@ Advanced users are welcome to update data directly by editing that data file.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## Command summary

| Action | Format, Examples |
Expand All @@ -566,6 +607,8 @@ Advanced users are welcome to update data directly by editing that data file.

--------------------------------------------------------------------------------------------------------------------

<div style="page-break-after: always;"></div>

## Glossary

- **Command Line Interface (CLI)**: A display that allows you to type commands to interact with the application.
Expand Down

0 comments on commit da1d34f

Please sign in to comment.