Skip to content

Commit 8415634

Browse files
Copilotjbtronics
andcommitted
Fix spelling and grammar mistakes in documentation
Co-authored-by: jbtronics <[email protected]>
1 parent b8ae5c0 commit 8415634

22 files changed

+48
-49
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ was translated in other languages (this is possible via the "Other languages" dr
2020
## Project structure
2121
Part-DB uses symfony's recommended [project structure](https://symfony.com/doc/current/best_practices.html).
2222
Interesting folders are:
23-
* `public`: Everything in this directory will be publicy accessible via web. Use this folder to serve static images.
23+
* `public`: Everything in this directory will be publicly accessible via web. Use this folder to serve static images.
2424
* `assets`: The frontend assets are saved here. You can find the javascript and CSS code here.
2525
* `src`: Part-DB's PHP code is saved here. Note that the sub directories are structured by the classes purposes (so use `Controller` Controllers, `Entities` for Database models, etc.)
2626
* `translations`: The translations used in Part-DB are saved here
@@ -49,7 +49,7 @@ Part-DB uses GitHub actions to run various tests and checks on the code:
4949
* PHPunit tests run successful
5050
* Config files, translations and templates has valid syntax
5151
* Doctrine schema valid
52-
* No known vulnerable dependecies are used
52+
* No known vulnerable dependencies are used
5353
* Static analysis successful (phpstan with `--level=2`)
5454

5555
Further the code coverage of the PHPunit tests is determined and uploaded to [CodeCov](https://codecov.io/gh/Part-DB/Part-DB-server).

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ If you want to test Part-DB without installing it, you can use [this](https://de
2929

3030
You can log in with username: *user* and password: *user*.
3131

32-
Every change to the master branch gets automatically deployed, so it represents the current development progress and is
33-
may not completely stable. Please mind, that the free Heroku instance is used, so it can take some time when loading
32+
Every change to the master branch gets automatically deployed, so it represents the current development progress and
33+
may not be completely stable. Please mind, that the free Heroku instance is used, so it can take some time when loading
3434
the page
3535
for the first time.
3636

docs/api/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This allows external applications to interact with Part-DB, extend it or integra
1717
> Some features might be missing or not working yet.
1818
> Also be aware, that there might be security issues in the API, which could allow attackers to access or edit data via
1919
> the API, which
20-
> they normally should be able to access. So currently you should only use the API with trusted users and trusted
20+
> they normally should not be able to access. So currently you should only use the API with trusted users and trusted
2121
> applications.
2222
2323
Part-DB uses [API Platform](https://api-platform.com/) to provide the API, which allows for easy creation of REST APIs
@@ -106,11 +106,11 @@ This is a great way to test the API and see how it works, without having to writ
106106

107107
By default, all list endpoints are paginated, which means only a certain number of results is returned per request.
108108
To get another page of the results, you have to use the `page` query parameter, which contains the page number you want
109-
to get (e.g. `/api/categoues/?page=2`).
109+
to get (e.g. `/api/categories/?page=2`).
110110
When using JSONLD, the links to the next page are also included in the `hydra:view` property of the response.
111111

112112
To change the size of the pages (the number of items in a single page) use the `itemsPerPage` query parameter (
113-
e.g. `/api/categoues/?itemsPerPage=50`).
113+
e.g. `/api/categories/?itemsPerPage=50`).
114114

115115
See [API Platform docs](https://api-platform.com/docs/core/pagination) for more infos.
116116

docs/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A part entity has many fields, which can be used to describe it better. Most of
2828
the comment field or the specifications
2929
* **Category** (Required): The category (see there) to which this part belongs to.
3030
* **Tags**: The list of tags this part belongs to. Tags can be used to group parts logically (similar to the category),
31-
but tags are much less strict and formal (they don't have to be defined forehands) and you can assign multiple tags to
31+
but tags are much less strict and formal (they don't have to be defined beforehand) and you can assign multiple tags to
3232
a part. When clicking on a tag, a list with all parts which have the same tag, is shown.
3333
* **Min Instock**: *Not really implemented yet*. Parts where the total instock is below this value, will show up for
3434
ordering.

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Part-DBs behavior can be configured to your needs. There are different kinds of
1010
user-changeable (changeable dynamically via frontend), options that can be configured by environment variables, and
1111
options that are only configurable via Symfony config files.
1212

13-
## User configruation
13+
## User configuration
1414

1515
The following things can be changed for every user and a user can change it for himself (if he has the correct permission
1616
for it). Configuration is either possible via the user's own settings page (where you can also change the password) or via
@@ -43,7 +43,7 @@ options listed, see `.env` file for the full list of possible env variables.
4343
Environment variables allow to overwrite settings in the web interface. This is useful, if you want to enforce certain
4444
settings to be unchangable by users, or if you want to configure settings in a central place in a deployed environment.
4545
On the settings page, you can hover over a setting to see, which environment variable can be used to overwrite it, it
46-
is shown as tooltip. API keys or similar sensitve data which is overwritten by env variables, are redacted on the web
46+
is shown as tooltip. API keys or similar sensitive data which is overwritten by env variables, are redacted on the web
4747
interface, so that even administrators cannot see them (only the last 2 characters and the length).
4848

4949
For technical and security reasons some settings can only be configured via environment variables and not via the web
@@ -116,7 +116,7 @@ bundled with Part-DB. Set `DATABASE_MYSQL_SSL_VERIFY_CERT` if you want to accept
116116
value should be handled as confidential data and not shared publicly.
117117
* `SHOW_PART_IMAGE_OVERLAY`: Set to 0 to disable the part image overlay, which appears if you hover over an image in the
118118
part image gallery
119-
* `IPN_SUGGEST_REGEX`: A global regular expression, that part IPNs have to fullfill. Enforce your own format for your users.
119+
* `IPN_SUGGEST_REGEX`: A global regular expression, that part IPNs have to fulfill. Enforce your own format for your users.
120120
* `IPN_SUGGEST_REGEX_HELP`: Define your own user help text for the Regex format specification.
121121
* `IPN_AUTO_APPEND_SUFFIX`: When enabled, an incremental suffix will be added to the user input when entering an existing
122122
* IPN again upon saving.

docs/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ It is installed on a web server and so can be accessed with any browser without
1818
> You can log in with username: **user** and password: **user**, to change/create data.
1919
>
2020
> Every change to the master branch gets automatically deployed, so it represents the current development progress and
21-
> is
22-
> maybe not completely stable. Please mind, that the free Heroku instance is used, so it can take some time when loading
21+
> may not be completely stable. Please mind, that the free Heroku instance is used, so it can take some time when loading
2322
> the page
2423
> for the first time.
2524
@@ -53,7 +52,7 @@ It is installed on a web server and so can be accessed with any browser without
5352
KiCad and see available parts from Part-DB directly inside KiCad.
5453

5554
With these features Part-DB is useful to hobbyists, who want to keep track of their private electronic parts inventory,
56-
or makerspaces, where many users have should have (controlled) access to the shared inventory.
55+
or makerspaces, where many users should have (controlled) access to the shared inventory.
5756

5857
Part-DB is also used by small companies and universities for managing their inventory.
5958

docs/installation/choosing_database.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ you have started creating data**. So you should choose the database type for you
3838

3939
* **Performance**: SQLite is not as fast as MySQL or PostgreSQL, especially when using complex queries or many users.
4040
* **Emulated RegEx search**: SQLite does not support RegEx search natively. Part-DB can emulate it, however that is pretty slow.
41-
* **Emualted natural sorting**: SQLite does not support natural sorting natively. Part-DB can emulate it, but it is pretty slow.
41+
* **Emulated natural sorting**: SQLite does not support natural sorting natively. Part-DB can emulate it, but it is pretty slow.
4242
* **Limitations with Unicode**: SQLite has limitations in comparisons and sorting of Unicode characters, which might lead to
4343
unexpected behavior when using non-ASCII characters in your data. For example `µ` (micro sign) is not seen as equal to
4444
`μ` (greek minuscule mu), therefore searching for `µ` (micro sign) will not find parts containing `μ` (mu) and vice versa.
@@ -131,7 +131,7 @@ The host (here 127.0.0.1) and port should also be specified according to your My
131131
In the `serverVersion` parameter you can specify the version of the MySQL/MariaDB server you are using, in the way the server returns it
132132
(e.g. `8.0.37` for MySQL and `10.4.14-MariaDB`). If you do not know it, you can leave the default value.
133133

134-
If you want to use a unix socket for the connection instead of a TCP connnection, you can specify the socket path in the `unix_socket` parameter.
134+
If you want to use a unix socket for the connection instead of a TCP connection, you can specify the socket path in the `unix_socket` parameter.
135135
```shell
136136
DATABASE_URL="mysql://user:password@localhost/database?serverVersion=8.0.37&unix_socket=/var/run/mysqld/mysqld.sock"
137137
```
@@ -150,7 +150,7 @@ In the `serverVersion` parameter you can specify the version of the PostgreSQL s
150150

151151
The `charset` parameter specify the character set of the database. It should be set to `utf8` to ensure that all characters are stored correctly.
152152

153-
If you want to use a unix socket for the connection instead of a TCP connnection, you can specify the socket path in the `host` parameter.
153+
If you want to use a unix socket for the connection instead of a TCP connection, you can specify the socket path in the `host` parameter.
154154
```shell
155155
DATABASE_URL="postgresql://db_user@localhost/db_name?serverVersion=16.6&charset=utf8&host=/var/run/postgresql"
156156
```
@@ -177,6 +177,6 @@ In natural sorting, it would be sorted as:
177177
Part-DB can sort names in part tables and tree views naturally. PostgreSQL and MariaDB 10.7+ support natural sorting natively,
178178
and it is automatically used if available.
179179

180-
For SQLite and MySQL < 10.7 it has to be emulated if wanted, which is pretty slow. Therefore it has to be explicity enabled by setting the
180+
For SQLite and MySQL < 10.7 it has to be emulated if wanted, which is pretty slow. Therefore it has to be explicitly enabled by setting the
181181
`DATABASE_EMULATE_NATURAL_SORT` environment variable to `1`. If it is 0 the classical binary sorting is used, on these databases. The emulations
182182
might have some quirks and issues, so it is recommended to use a database which supports natural sorting natively, if you want to use it.

docs/installation/email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ automatic mail providers (like MailChimp or SendGrid). If you want to use one of
1919
Mailer documentation for more information.
2020

2121
We will only cover the configuration of an SMTP provider here, which is sufficient for most use-cases.
22-
You will need an email account, which you can use send emails from via password-bases SMTP authentication, this account
22+
You will need an email account, which you can use to send emails from via password-based SMTP authentication, this account
2323
should be dedicated to Part-DB.
2424

2525
To configure the SMTP provider, you have to set the following environment variables:

docs/installation/installation_docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ services:
143143
# - DB_AUTOMIGRATE=true
144144

145145
# You can configure Part-DB using the webUI or environment variables
146-
# However you can add add any other environment configuration you want here
146+
# However you can add any other environment configuration you want here
147147
# See .env file for all available options or https://docs.part-db.de/configuration.html
148148

149-
# Override value if you want to show to show a given text on homepage.
150-
# When this is outcommented the webUI can be used to configure the banner
149+
# Override value if you want to show a given text on homepage.
150+
# When this is commented out the webUI can be used to configure the banner
151151
#- BANNER=This is a test banner<br>with a line break
152152

153153
database:

docs/installation/nginx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nav_order: 10
77

88
# Nginx
99

10-
You can also use [nginx](https://www.nginx.com/) as webserver for Part-DB. Setup Part-DB with apache is a bit easier, so
10+
You can also use [nginx](https://www.nginx.com/) as webserver for Part-DB. Setting up Part-DB with Apache is a bit easier, so
1111
this is the method shown in the guides. This guide assumes that you already have a working nginx installation with PHP
1212
configured.
1313

0 commit comments

Comments
 (0)