Skip to content

Commit d8127e7

Browse files
committed
feat: update docs
1 parent 81ab195 commit d8127e7

File tree

7 files changed

+71
-39
lines changed

7 files changed

+71
-39
lines changed

src/administration-guide/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ The command should return something similar to:
7272

7373
`[{"id":"`**`YOUR_ACCESS_TOKEN`**`","created":"2017-03-11T13:13:13Z","expired":false,"user_id":1}]`
7474

75+
---
76+
7577
## Using token to make API requests
7678

7779
Once you have your API token, include it in the **Authorization** header to authenticate your requests.
@@ -89,6 +91,8 @@ curl -v -XPOST \
8991
http://localhost:3000/api/project/1/tasks
9092
```
9193

94+
---
95+
9296
## Expiring an API token
9397

9498
If you no longer need the token, you should expire it to keep your account secure.

src/administration-guide/configuration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ Full list of available configuration options:
7272
| <br>`auth.totp.enabled` <hr> `SEMAPHORE_TOTP_ENABLED` <br><br> | |
7373
| <br>`auth.totp.allow_recovery` <hr> `SEMAPHORE_TOTP_ALLOW_RECOVERY` <br><br> | |
7474

75+
## Frequently asked questions
7576

76-
## Public URL
77+
### 1. How to configure a public URL for Semaphore UI
7778

7879
If you use nginx or other web server before Semaphore, you should provide configuration option `web_host`.
7980

src/administration-guide/configuration/config-file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Use the following commands to generate the configuration file interactively:
2626
### Generate via Web
2727

2828
Alternatively, you can use the web-based interactive configurator:
29-
* [Server Configurator](https://semaphoreui.com/install/binary/2_13/config)
30-
* [Runner Configurator](https://semaphoreui.com/install/binary/2_13/runner)
29+
* [Server configurator](https://semaphoreui.com/install/binary/2_13/config)
30+
* [Runner configurator](https://semaphoreui.com/install/binary/2_13/runner)
3131

3232
## Configuration file example
3333

src/administration-guide/installation/docker.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,4 @@ Run the following command to start Semaphore with configured database (MySQL or
7979
docker-compose up
8080
```
8181

82-
&#x20;Semaphore will be available via the following URL [http://localhost:3000](http://localhost:3000).
83-
84-
For more information about the Docker Compose, see the [Docker Compose reference](https://docs.docker.com/compose/).
82+
&#x20;Semaphore will be available via the following URL [http://localhost:3000](http://localhost:3000).

src/faq/troubleshooting.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Troubleshooting
22

3-
## Renner prints error 404
3+
## 1. Renner prints error 404
44

55
### How to fix
66

77
[Getting 401 error code from Runner](https://github.com/semaphoreui/semaphore/discussions/1873?converting=1)
88

99
---
1010

11-
## Gathering Facts issue for localhost
11+
## 2. Gathering Facts issue for localhost
1212

1313
The issue can occur on Semaphore UI installed via [Snap](https://snapcraft.io/semaphore) or [Docker](https://hub.docker.com/r/semaphoreui/semaphore).
1414

@@ -44,7 +44,7 @@ There are two ways:
4444
127.0.0.1 ansible_connection=ssh ansible_ssh_user=your_localhost_user
4545
```
4646
---
47-
## panic: pq: SSL is not enabled on the server
47+
## 4. panic: pq: SSL is not enabled on the server
4848

4949
This means that your Postgres doesn't work by SSL.
5050

@@ -63,8 +63,12 @@ Add option `sslmode=disable` to the configuration file:
6363
}
6464
},
6565
```
66+
67+
6668
---
67-
## fatal: bad numeric config value '0' for 'GIT_TERMINAL_PROMPT': invalid unit
69+
70+
71+
## 5. fatal: bad numeric config value '0' for 'GIT_TERMINAL_PROMPT': invalid unit
6872

6973
This means that you are trying to access a repository over HTTPS that requires authentication.
7074

@@ -76,9 +80,12 @@ This means that you are trying to access a repository over HTTPS that requires a
7680
* Specify the password. You can't use your account password for GitHub/BitBucket, you should use a Personal Access Token (PAT) instead of it. Read more [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
7781
* After creating the key, go to the **Repositories** screen, find your repository and specify the key.
7882

83+
7984
---
8085

81-
## unable to read LDAP response packet: unexpected EOF
86+
87+
88+
## 6. unable to read LDAP response packet: unexpected EOF
8289

8390
Most likely, you are trying to connect to the LDAP server using an insecure method, although it expects a secure connection (via TLS).
8491

@@ -94,7 +101,7 @@ Enable TLS in your `config.json` file:
94101

95102
---
96103

97-
## LDAP Result Code 49 "Invalid Credentials"
104+
## 7. LDAP Result Code 49 "Invalid Credentials"
98105

99106
You have the wrong password or `binddn`.
100107

@@ -118,6 +125,6 @@ You also can read the following articles:
118125

119126
---
120127

121-
## LDAP Result Code 32 "No Such Object"
128+
## 8. LDAP Result Code 32 "No Such Object"
122129

123130
Coming soon.

src/user-guide/repositories.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,32 @@ For Remote Repositories that do not have authentication, you can create a Key wi
2121

2222
## Creating a New Repository
2323
1. Make sure you have configured the key for the Repository you are about to add in the key store section.
24+
2425
2. Go to the Repositories section of Semaphore, click the **New Repository** button in the upper right hand corner.
26+
2527
3. Configure the Repository:
26-
* Name Repository
27-
* Add the URL. The URL must start with the following:
28-
* `/path/to/the/repo` for a local folder on the file system
29-
* `https://` for a remote Git Repository accessed over HTTPS
30-
* `ssh://` for a remote Git Repository accessed over SSH
31-
* `file://` for a local Git Repository
32-
* `git://` for a remote Git Repository accessed over Git protocol
33-
* Set the branch of the Repository, if you are not sure what it should be, it is probably master or main
34-
* Select the **Access Key** you configured prior to setting up this Repository.
28+
* Name Repository
29+
* Add the URL. The URL must start with the following:
30+
* `/path/to/the/repo` for a local folder on the file system
31+
* `https://` for a remote Git Repository accessed over HTTPS
32+
* `ssh://` for a remote Git Repository accessed over SSH
33+
* `file://` for a local Git Repository
34+
* `git://` for a remote Git Repository accessed over Git protocol
35+
* Set the branch of the Repository, if you are not sure what it should be, it is probably master or main
36+
* Select the **Access Key** you configured prior to setting up this Repository.
37+
3538
4. Click Save once everything is configured.
3639

3740
## Editing an Existing Repository
3841
1. Go to the Repositories section of Semaphore.
42+
3943
2. Click on the pencil icon next to the Repository you wish to change, then you will be presented with the Repository configuration.
4044

4145
## Deleting a Repository
4246
Make sure the Repository that is about to be delete is not in use by any Task Templates.
4347
A Repository cannot be deleted if it is used in any Task Templates:
4448
1. Go to the Repositories section of Semaphore.
49+
4550
2. Click on the trash can icon on of the Repository you wish to delete.
51+
4652
3. Click Yes on the confirmation pop-up if you are sure you want this Repository to be deleted.

src/user-guide/team.md

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,36 @@
22

33
In Semaphore UI, every project is associated with a **Team**. Only team members and admins can access the project. Each member of the team is assigned one of four predefined roles, which govern their level of access and the actions they can perform.
44

5-
> **Tip:** To avoid losing access to a project, it’s recommended to have at least two team members with the **Owner** role.
5+
<div class="warning">
6+
To avoid losing access to a project, it’s recommended to have at least two team members with the <b>Owner</b> role.
7+
</div>
68

79
---
810

911
## Team roles
1012

11-
Every team member has exactly one of these four roles: **Owner**, **Manager**, **Task Runner**, or **Guest**. Below are detailed descriptions of each role and its permissions.
13+
Every team member has exactly one of these four roles:
14+
15+
- **Owner**
16+
- **Manager**
17+
- **Task Runner**
18+
- **Guest**
19+
20+
Below are detailed descriptions of each role and its permissions.
1221

1322
### Owner
1423

15-
- **Full permissions:** Owners can do anything within the project, including managing roles, adding/removing members, and configuring any project settings.
16-
- **Multiple owners:** A project can have multiple Owners, ensuring there is more than one person with full privileges.
17-
- **Restrictions on self-removal:** An Owner cannot remove themselves if they are the only Owner of the project. This prevents the project from being left without an Owner.
18-
- **Managing other wwners:** Owners can manage (including remove or change roles of) all team members, including other Owners.
24+
- **Full permissions**<br>
25+
Owners can do anything within the project, including managing roles, adding/removing members, and configuring any project settings.
26+
27+
- **Multiple owners**<br>
28+
A project can have multiple Owners, ensuring there is more than one person with full privileges.
29+
30+
- **Restrictions on self-removal**<br>
31+
An Owner cannot remove themselves if they are the only Owner of the project. This prevents the project from being left without an Owner.
32+
33+
- **Managing other wwners**<br>
34+
Owners can manage (including remove or change roles of) all team members, including other Owners.
1935

2036
### Manager
2137

@@ -30,21 +46,27 @@ Every team member has exactly one of these four roles: **Owner**, **Manager**, *
3046
### Task Runner
3147

3248
- **Run tasks:** Task Runners can execute any task template that exists within the project.
49+
3350
- **Read-only for other resources:** While they can run tasks, they only have read‐only access to other resources such as inventory, variables, repositories, etc.
51+
3452
- **Typical use case:** Developers or QA engineers who need to trigger and monitor tasks but do not need the ability to modify project settings or manage team membership.
3553

3654
### Guest
3755

3856
- **Read-only access:** Guests have read-only access to all project resources (e.g., viewing logs, inventories, dashboards).
57+
3958
- **No write permissions:** They cannot modify settings, run tasks, or change roles.
59+
4060
- **Typical use case:** Stakeholders or other collaborators who only need to view project status and details without making changes.
4161

4262
---
4363

4464
## Managing team members
4565

4666
- **Inviting new members:** **Owners** and **Managers** can invite new users to join the team and assign them an initial role.
67+
4768
- **Changing roles:** Owners can always change the roles of any team member. Managers can change the roles of **Task Runners** and **Guests**, but **not** other Managers or Owners.
69+
4870
- **Removing members:** Owners and Managers can remove team members with lower roles.
4971
- An Owner can remove anyone (including other Owners), but cannot remove themselves if they are the sole Owner.
5072
- A Manager can remove **Task Runners** and **Guests**, but **not** other Managers or Owners.
@@ -68,23 +90,17 @@ Every team member has exactly one of these four roles: **Owner**, **Manager**, *
6890

6991
## Frequently asked questions
7092

71-
**1. Can an Owner remove another Owner?**
93+
### 1. Can an Owner remove another Owner?
7294
Yes, an Owner can remove or change the role of any other Owner, unless they are the only remaining Owner in the project.
7395

74-
**2. Who can delete the project?**
96+
### 2. Who can delete the project?
7597
Only **Owners** can delete a project.
7698

77-
**3. Can Managers add or remove other Managers?**
99+
### 3. Can Managers add or remove other Managers?
78100
No. Managers can only add or remove users with **Task Runner** or **Guest** roles. To manage Owners or other Managers, you must be an Owner.
79101

80-
**4. What happens if I remove all Owners by accident?**
102+
### 4. What happens if I remove all Owners by accident?
81103
Semaphore UI prevents the removal of an Owner if it would leave the project with no Owners at all. There must be at least one Owner at all times.
82104

83-
**5. Can Guests run tasks?**
105+
### 5. Can Guests run tasks?
84106
No. Guests only have read‐only access and cannot trigger or manage tasks.
85-
86-
---
87-
88-
## Conclusion
89-
90-
Roles in Semaphore UI help you control access and manage permissions within each project. By choosing the appropriate role for every team member and following best practices, you ensure smooth collaboration, secure operations, and straightforward delegation of responsibilities.

0 commit comments

Comments
 (0)