Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting issues in UG #273

Merged
merged 3 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ HouR is a **desktop app for managing employee records, optimized for use via a C
- [Clearing all employees](#clearing-all-entries--clear): `clear`
- [Exiting the program](#exiting-the-program--exit): `exit`
- [Employee Commands](#employee-commands)
- [Adding an employee](#adding-an-employee-add): `add`
- [Adding an employee](#adding-an-employee--add): `add`
- [Deleting an employee](#deleting-an-employee--delete): `delete`
- [Editing an employee](#editing-an-employee--edit): `edit`
- [Listing all employees](#listing-all-employees--list): `list`
- [Finding employees](#finding-employees--find): `find`
- [Sorting employees](#sorting-all-employees--sort): `sort`
- [Employee Metrics Commands](#employee-metrics-commands)
- [Adding a leave period](#adding-a-leave-period-of-an-employee-addleave): `addleave`
- [Deleting a leave period](#deleting-a-leave-period-of-an-employee-deleteleave): `deleteleave`
- [Adding a leave period](#adding-a-leave-period-of-an-employee--addleave): `addleave`
- [Deleting a leave period](#deleting-a-leave-period-of-an-employee--deleteleave): `deleteleave`
- [Editing a leave date](#editing-a-leave-date-of-an-employee--editleave): `editleave`
- [Listing employees on leave](#listing-the-employees-on-leave-on-a-specified-date--listleave) `listleave`
- [Listing employees on leave](#listing-the-employees-on-leave-on-a-specified-date--listleave): `listleave`
- [Adding remarks](#adding-a-remark-for-an-employee--addremark): `addremark`
- [Deleting remarks](#deleting-a-remark-of-an-employee--deleteremark): `deleteremark`
- [Updating overtime hours](#updating-overtime-hours-of-an-employee--overtime): `overtime`
Expand Down Expand Up @@ -92,8 +92,8 @@ The following glossary table provides clarification on commonly-used terms as we
A GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.<br>
![Ui](images/Ui.png)

<div markdown="span" class="alert alert-warning">:exclamation: **Caution to Mac users:**
Performing these instructions may result in non-deterministic behaviour of data loading in HouR. This was tested on multiple MacOS Systems:
<div markdown="span" class="alert alert-warning">:exclamation: **Caution to macOS users:**
Performing these instructions may result in non-deterministic behaviour of data loading in HouR. This was tested on multiple macOS Systems:
<br/>1. Right-click `hour.jar` > Open With > JavaLauncher.app
<br/>2. First-time users may be prompted with a warning that the file was downloaded from the Internet. Simply click Open in the prompt to continue.

Expand All @@ -102,37 +102,37 @@ Performing these instructions may result in non-deterministic behaviour of data
5. Type a 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:

* `help`: Shows help window with link to user guide.
* `help` : Shows help window with link to user guide.

* `add n/John Doe pos/Senior Software Enginner id/EID2023-7890 p/81239876 e/[email protected] s/5000` : Adds an employee named `John Doe` to the employee list.

* `list` : Lists all employees.

* `edit 1 n/Alex Yeoh`: Edits the name of the 1st employee shown in the current list to `Alex Yeoh`.
* `edit 1 n/Alex Yeoh` : Edits the name of the 1st employee shown in the current list to `Alex Yeoh`.

* `find Alex Manager`: Lists all employees with the keywords `Alex` or `Manager`.

* `delete EID2023-1234` : Deletes the employee with employee id EID2023-1234 shown in the list.

* `sort f/salary in/asc`: Sorts the employees by their salaries in ascending order.
* `sort f/salary in/asc` : Sorts the employees by their salaries in ascending order.

* `addleave id/EID1234-5678 from/2023-12-26 to/2023-12-28`: Adds leave dates from 26 to 28 December 2023 inclusive for employee with id EID1234-5678.
* `addleave id/EID1234-5678 from/2023-12-26 to/2023-12-28` : Adds leave dates from 26 to 28 December 2023 inclusive for employee with id EID1234-5678.

* `deleteleave id/EID1234-5678 from/2023-12-27 to/2023-12-27`: Deletes leave date 27 December 2023 for employee with id EID1234-5678.
* `deleteleave id/EID1234-5678 from/2023-12-27 to/2023-12-27` : Deletes leave date 27 December 2023 for employee with id EID1234-5678.

* `editleave id/EID1234-5678 old/2023-12-26 new/2023-12-29`: Edits the old leave date on 26 December 2023 of employee with id EID1234-5678 to new leave date on 29 December 2023.
* `editleave id/EID1234-5678 old/2023-12-26 new/2023-12-29` : Edits the old leave date on 26 December 2023 of employee with id EID1234-5678 to new leave date on 29 December 2023.

* `listleave on/2023-12-28`: Lists all employees on leave on 28 December 2023.
* `listleave on/2023-12-28` : Lists all employees on leave on 28 December 2023.

* `addremark id/EID1234-5678 r/good worker`: Adds the remark `good worker` to the employee with id EID1234-6788.
* `addremark id/EID1234-5678 r/good worker` : Adds the remark `good worker` to the employee with id EID1234-6788.

* `deleteremark id/EID1234-5678 r/good worker`: Deletes the remark `good worker` from the employee with id EID1234-5678.
* `deleteremark id/EID1234-5678 r/good worker` : Deletes the remark `good worker` from the employee with id EID1234-5678.

* `overtime id/EID1234-5678 o/inc a/10`: Increases the overtime hours of employee with id EID1234-5678 by 10 hours.
* `overtime id/EID1234-5678 o/inc a/10` : Increases the overtime hours of employee with id EID1234-5678 by 10 hours.

* `report EID1234-5678`: Generates a report with details of the employee with id EID1234-5678.
* `report EID1234-5678` : Generates a report with details of the employee with id EID1234-5678.

* `reset f/overtime`: Resets the overtime hours field of all employees to the default value 0.
* `reset f/overtime` : Resets the overtime hours field of all employees to the default value 0.

* `clear` : Deletes all employees.

Expand Down Expand Up @@ -255,7 +255,7 @@ Format: `exit`

This section contains commands relating to the employee list and/or employees.

### Adding an employee: `add`
### Adding an employee : `add`

Adds an employee to the employee list.

Expand Down Expand Up @@ -369,7 +369,7 @@ Examples:

You can use the following commands to keep track of employee metrics and gauge employee performance.

### Adding a leave period of an employee: `addleave`
### Adding a leave period of an employee : `addleave`

Adds the dates between a specified period of time to the leaves taken by the specified employee.

Expand Down Expand Up @@ -404,7 +404,7 @@ Examples:

![addleave failure 2](images/ug-pics/addLeaveFailure2.png)

### Deleting a leave period of an employee: `deleteleave`
### Deleting a leave period of an employee : `deleteleave`

Deletes the specified leave dates of an employee.

Expand Down Expand Up @@ -656,10 +656,10 @@ DO NOT modify data directly as it might result in the malfunction of the applica
**Method 2**: For users that wish to create a script to launch HouR (Recommended)
1. Create a new text file
2. Copy and paste the following into the text file: `java -jar [JAR file location]/hour.jar`
3. Save the text file as `hour.bat` (Windows) or `hour.sh` (MacOS/Linux)
3. Save the text file as `hour.bat` (Windows) or `hour.sh` (macOS/Linux)
4. Change the admin settings of the script to allow it to run as program:
* Windows: Right-click on the script and select **Properties**. Under **General**, check the box that says `Allow this file to run as a program`.
* MacOS/Linux: Open the Terminal and navigate to the directory where the script is located. Type `chmod +x [script name]` and press Enter.<br>
* macOS/Linux: Open the Terminal and navigate to the directory where the script is located. Type `chmod +x [script name]` and press Enter.<br>
Note: (`chmod +x` changes permissions of the script to allow it to be executed)
5. Double-click on the script to launch HouR
6. HouR should launch
Expand All @@ -671,7 +671,7 @@ If you have any further issues, please raise an issue on our [Github page](https
**Q**: How can I check my Java version?<br>
**A**: Open a Command Prompt and type `java -version`. If you do not have Java installed, you can install Java 11 using the Oracle guide [here](https://www.oracle.com/java/technologies/downloads/#java11). Alternatively, you can install the OpenJDK version.

For Mac users, you may wish to follow the instructions listed [here](https://nus-cs2103-ay2324s1.github.io/website/admin/programmingLanguages.html).
For macOS users, you may wish to follow the instructions listed [here](https://nus-cs2103-ay2324s1.github.io/website/admin/programmingLanguages.html).

### Loading Data from Another Computer

Expand Down Expand Up @@ -763,7 +763,7 @@ If you would like to reset the number of leaves or overtime hours for **a specif

## Parameter information

The table below provides information on the usage of the allowed parameters in HouR. Do note that the examples given are not exhaustive
The table below provides information on the usage of the allowed parameters in HouR. Do note that the examples given are not exhaustive.

| Parameter, Description | Case sensitive | Constraints | Valid Examples | Invalid Examples |
|---------------------------------------------------------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|----------------------------------------------------------|
Expand Down
Loading