Skip to content

Commit 360a2c2

Browse files
authored
Improve documentation (#176)
1 parent 03c04c3 commit 360a2c2

File tree

8 files changed

+31
-25
lines changed

8 files changed

+31
-25
lines changed

docs/api.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
The current API provide the following entry points:
77
See:
88

9-
- [routes/web.php](https://github.com/LycheeOrg/Lychee/blob/master/routes/web.php)
10-
- [routes/admin.php](https://github.com/LycheeOrg/Lychee/blob/master/routes/admin.php)
9+
- [routes/api_v2.php](https://github.com/LycheeOrg/Lychee/blob/master/routes/api_v2.php)
10+
- [routes/web-admin-v2.php](https://github.com/LycheeOrg/Lychee/blob/master/routes/web-admin-v2.php)
11+
- [routes/web_v2.php](https://github.com/LycheeOrg/Lychee/blob/master/routes/web_v2.php)
1112

1213
Note that for all request, **'Accept: application/json' is mandatory** and that without mention of the contrary **'Content-Type: application/json' is also mandatory**.
1314

14-
As of version 4.8.1, the api documentation is moved directly inside your own Lychee instance. It is accessible at the url `https://yourLycheeInstance.org/docs/api`.
15+
As of version 4.8.1, the api documentation is moved directly inside your own Lychee instance. It is accessible at the url `https://yourLycheeInstance.org/docs/api`.
16+
It is also possible to see it on our demo website: [https://lychee-demo.fly.dev/docs/api](https://lychee-demo.fly.dev/docs/api)

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Introduction
22

33
Lychee's core configuration is managed using a `.env` file. It probably exists already in your directory, but if not it can be created by copying `.env.example`. The options which are already included in the `.env` file should be sufficient to cover the necessary configuration for the vast majority of all use-cases and setups. Using other options than those included in the `.env` file should rarely be necessary. However, this page contains a more complete list of the available options, incl. some highly advanced ones, together with descriptions and default values.
4-
For non-core options (for example UI options), take a look at [Settings](https://lycheeorg.github.io/docs/settings.html).
4+
For non-core options (for example UI options), take a look at [Settings](https://lycheeorg.dev/docs/settings.html).
55

66
### Base options
77

docs/contributions.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Remember, bug reports are created in the hope that others with the same problem
88

99
## Support Questions
1010

11-
Lychee's GitHub issue trackers are not intended to provide Lychee help or support. Please instead create a discussion [here][3] or contact us directly on [gitter][2].
11+
Lychee's GitHub issue trackers are not intended to provide Lychee help or support. Please instead create a discussion [here][3] or contact us directly on [discord][2].
1212

1313
## Security Vulnerabilities
1414

@@ -21,7 +21,7 @@ Those are the versions in which we accept vulnerability reports.
2121
| latest release | ✔ |
2222
| < 5.0 | &#10005; |
2323

24-
If you discover a security vulnerability within Lychee, please contact us directly on [Gitter][2]. All security vulnerabilities will be promptly addressed.
24+
If you discover a security vulnerability within Lychee, please contact us directly on [Discord][2]. All security vulnerabilities will be promptly addressed.
2525

2626
## Core Development Discussion
2727

@@ -31,10 +31,14 @@ You may propose new features or improvements to existing Lychee behavior in the
3131

3232
You would like to support Lychee and help us push it further? Join the team!
3333
Your passion for Lychee will be measured by how active you are on the project.
34-
A minimum of three pull requests merged is to be expected before receiving the invitation.
35-
However, exceptions may apply (e.g., if you want to rewrite 100% of the front-end to VueJS).
34+
We are looking for people who are willing to help us maintain the project,
35+
review pull requests, and fix bugs.
3636

37-
Contact us on [Gitter][2] if you would like to know more! :)
37+
If you would like to just do code review, that's fine too!
38+
We are always looking for more eyes on the code to ensure its quality.
39+
We will need your github handle to add you to the reviewer team.
40+
41+
Contact us on [Discord][2] if you would like to know more! :)
3842

3943
## How to properly submit a pull-request to Lychee?
4044

@@ -185,7 +189,7 @@ The Lychee code of conduct is the same as Laravel's code of conduct:
185189

186190

187191
[1]: https://github.com/LycheeOrg/Lychee/issues
188-
[2]: https://gitter.im/LycheeOrg/Lobby
192+
[2]: https://discord.gg/JMPvuRQcTf
189193
[3]: https://github.com/LycheeOrg/Lychee/discussions
190194
[4]: https://github.com/LycheeOrg/Lychee/pulls
191195

docs/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Some variables are specific to Docker, and the default values are :
8484

8585
## Advanced configuration
8686

87-
Note that nginx will accept by default images up to 100MB (`client_max_body_size 100M`) and that PHP parameters are overridden according to the [recommendations of the Lychee FAQ](https://lycheeorg.github.io/docs/faq_troubleshooting.html#i-cant-upload-large-photos).
87+
Note that nginx will accept by default images up to 100MB (`client_max_body_size 100M`) and that PHP parameters are overridden according to the [recommendations of the Lychee FAQ](https://lycheeorg.dev/docs/faq_troubleshooting.html#i-cant-upload-large-photos).
8888

8989
You may still want to further customize PHP configuration. The first method is to mount a custom `php.ini` to `/etc/php/7.4/fpm/php.ini` when starting the container. However, this method is kind of brutal as it will override all parameters. It will also need to be remapped whenever an image is released with a new version of PHP.
9090

docs/faq_general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Take a look at the [Release Notes](releases.html) to see what's new.
1616

1717
### How can I easily contact the LycheeOrg organization?
1818

19-
There is a Gitter associated with the project, feel free to join us there: https://gitter.im/LycheeOrg/Lobby
19+
There is a discord associated with the project, feel free to join us there: https://discord.gg/JMPvuRQcTf
2020

2121
### How can I set thumbnails for my albums?
2222

@@ -33,7 +33,7 @@ Either press `n` (as **N**ew) or use the add menu.
3333
In order to bypass the CSRF protection, you can set up the `api_key` setting to a secret value and send that value over in the `Authorization` header.
3434
Note that `api_key` only disables the CSRF protection, you still need to authenticate to the server.
3535

36-
In order to authenticate, use [Session::login](https://lycheeorg.github.io/docs/api.html#apisessionlogin) and pass the returned `lychee_session` cookie to all subsequent requests.
36+
In order to authenticate, use [Session::login](https://lycheeorg.dev/docs/api.html#apisessionlogin) and pass the returned `lychee_session` cookie to all subsequent requests.
3737

3838
The related code is available [here](https://github.com/LycheeOrg/Lychee/blob/master/app/Http/Middleware/VerifyCsrfToken.php#L55)
3939

docs/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Lychee gallery has a few system requirements. You will need to make sure you
99
- MySQL _(version > 5.7.8)_ / MariaDB _(version > 10.2)_
1010
- PostgreSQL _(version > 9.2)_
1111
- Lychee's inbuilt SQLite3 support
12-
- PHP >= 8.2 with these PHP extensions:
12+
- PHP >= 8.3 with these PHP extensions:
1313
- bcmath
1414
- ctype
1515
- dom
@@ -91,7 +91,7 @@ Note that there are up to three OS users which need to be taken into considerati
9191
For example, Apache executes the PHP interpreter as part of its own process if the extension `mod_php` is used.
9292
In case PHP FPM is used, for most distributions PHP FPM or CGI ships with a sensible default configuration which ensures that the PHP user is the same as the Web user.
9393
In both cases the PHP user is not of concern.
94-
However, we are at least aware of one exception to this rule for Nginx on Fedora, see [FAQ](https://lycheeorg.github.io/docs/faq_troubleshooting.html#i-know-my-file-permissions-for-storage-bootstrapcache-publicuploads-and-publicdist-are-correct-and-accessible-by-my-web-server-user-but-im-still-getting-a-php-error-when-writing-to-any-of-these-directories)
94+
However, we are at least aware of one exception to this rule for Nginx on Fedora, see [FAQ](https://lycheeorg.dev/docs/faq_troubleshooting.html#i-know-my-file-permissions-for-storage-bootstrapcache-publicuploads-and-publicdist-are-correct-and-accessible-by-my-web-server-user-but-im-still-getting-a-php-error-when-writing-to-any-of-these-directories)
9595
- The user which you use for shell logins and to run scripts; called the **CLI user** in the following.
9696
This user may be of particular concern, if you are planning to upload photos via the web interface _and_ import photos via the shell scripts.
9797

@@ -160,7 +160,7 @@ It is also strongly recommended to serve Lychee over TLS. You may wish to consid
160160

161161
Lychee includes a `public/.htaccess` file that is used to provide URLs without the `index.php` front controller in the path. Before serving Lychee with Apache, be sure to enable the `mod_rewrite` module so the `.htaccess` file will be honored by the server.
162162

163-
Also check the Apache [upgrade instructions](https://lycheeorg.github.io/docs/upgrade.html#using-apache) for required permissions in your /etc/apache2/sites-available/example.com.conf file.
163+
Also check the Apache [upgrade instructions](https://lycheeorg.dev/docs/upgrade.html#using-apache) for required permissions in your /etc/apache2/sites-available/example.com.conf file.
164164

165165
If the `.htaccess` file that ships with Lychee does not work with your Apache installation, try this alternative:
166166

@@ -179,7 +179,7 @@ RewriteRule ^ index.php [L]
179179
### nginx
180180

181181
This is a sample nginx server block. It does not include TLS, but covers the Lychee-specific requirements.
182-
If you would like to serve from a subdirectory, take a look at [the FAQ](https://lycheeorg.github.io/docs/faq_installation.html#can-i-host-lychee-with-a-subpath-with-nginx-like-httpsexampledevlychee).
182+
If you would like to serve from a subdirectory, take a look at [the FAQ](https://lycheeorg.dev/docs/faq_installation.html#can-i-host-lychee-with-a-subpath-with-nginx-like-httpsexampledevlychee).
183183

184184
```nginx
185185
server {
@@ -205,7 +205,7 @@ server {
205205
fastcgi_param HTTP_PROXY "";
206206
207207
######### Make sure this is the correct socket for your system
208-
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
208+
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
209209
fastcgi_index index.php;
210210
######## You may need to replace $document_root with the absolute path to your public folder.
211211
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

docs/releases.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Released on Nov 27, 2024
8888
> Bug introduced by the new timeline layout that was only affecting the photo layout when the absence of border was set in Lychee SE
8989
* `new` #2749 : Create automated signed releases by @ildyria.
9090
> We use [cosign](https://github.com/sigstore/cosign) to generate signed releases.
91-
> The public key is available here: [lychee-cosign.pub](https://lycheeorg.github.io/lychee-cosign.pub).
91+
> The public key is available here: [lychee-cosign.pub](https://lycheeorg.dev/lychee-cosign.pub).
9292
* `fixes` #2753 : ListAlbum fix by @ildyria.
9393
> When using extremely long albums names, the limiting of strings were getting negative length.
9494
> This resulted in error 500 when fetching the list of target albums.
@@ -189,11 +189,11 @@ For more context on those changes, see our blog posts:
189189

190190
#### Introducing Lychee SE
191191

192-
For the past few years, Lychee has been developed by a [small group of people](https://lycheeorg.github.io/support/) who have been working on it in their free time. We are proud to offer this software for free and we will continue to do so. However with time our team has decreased to the point where maintaining Lychee has become a challenge. We have been thinking about ways to keep Lychee alive, to be able to keep providing support, and to add more features.
192+
For the past few years, Lychee has been developed by a [small group of people](https://lycheeorg.dev/support/) who have been working on it in their free time. We are proud to offer this software for free and we will continue to do so. However with time our team has decreased to the point where maintaining Lychee has become a challenge. We have been thinking about ways to keep Lychee alive, to be able to keep providing support, and to add more features.
193193

194194
We have come to the conclusion that we need to add a sponsor tier system. We have extended Lychee with a new version called SE (Supporter Edition) which will be available for our GitHub supporters. This SE version comes with enhanced features and configurations, helping us fund ongoing improvements while offering a bit extra to our supporters. The free version of Lychee will continue to be available but with a more streamlined feature set.
195195

196-
We strongly encourage you to check the full comparison between the [free and supporter edition](https://lycheeorg.github.io/get-supporter-edition).
196+
We strongly encourage you to check the full comparison between the [free and supporter edition](https://lycheeorg.dev/get-supporter-edition).
197197
If you enjoy using Lychee, please consider [supporting us](https://github.com/sponsors/LycheeOrg).
198198

199199
Thank you for helping us keep Lychee alive and growing!
@@ -905,7 +905,7 @@ Released on Jan 4, 2023
905905
> This reduces the risk of bugs.
906906
* `rm` #1673 : Nuke demo generator, does not reflect the latest version by @ildyria
907907
> This removes the /demo page which was used to generate AJAX response in order to mock a
908-
> server response on the [demo](https://lycheeorg.github.io/demo/) page of Lychee.
908+
> server response on the [demo](https://lychee-demo.fly.dev/) page of Lychee.
909909
* `new` #1671 : Ensure php version is correct prior migrations by @ildyria
910910
> Before running any migration, we are not verifying that the required minimum version of PHP is used.
911911
* `fixes` #1684 : Fix on HasAdminUser by @ildyria
@@ -1028,7 +1028,7 @@ Released on Aug 07, 2022
10281028
- The internal representation of Albums changed with version 4.5.0.
10291029
We strongly recommend that you **BACK UP YOUR DATABASE BEFORE UPDATING**.
10301030
- The folder structure changed for images; **please check the required directory permissions**.
1031-
Read more [here &#187;](https://lycheeorg.github.io/docs/#directory-permissions).
1031+
Read more [here &#187;](https://lycheeorg.dev/docs/#directory-permissions).
10321032

10331033
#### Changes
10341034

@@ -1555,7 +1555,7 @@ Nothing major here. Just a bunch of small bug fixes
15551555

15561556
**WARNING**: Lychee now requires PHP 7.1 ( http://php.net/supported-versions.php )
15571557

1558-
- `Fixes` Cross-Origin Request Blocked: https://lycheeorg.github.io/update.json ( 3#121 )
1558+
- `Fixes` Cross-Origin Request Blocked: https://lycheeorg.dev/update.json ( 3#121 )
15591559
The server is now doing the check for update (on `Session::init`) if this one fail, the user will do an ajax request to check if an update is available.
15601560
- `Fixes` Syntax Error in Session.php ( 3#153 )
15611561
- `Fixes` Small bugs ( 3#136 , 3#157 , 3#159 , 3#163 , 3#166 )

src/content/post/2024-06-29-Future-of-lychee.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ It is very difficult to say, as I am not really able to estimate the amount of w
4949

5050
At the moment, only [@d7415](https://github.com/d7415) and I ([@ildyria](https://github.com/ildyria)) are maintaining Lychee, [@d7415](https://github.com/d7415) doing most of the review work while I am working on fixing the bugs & trying to provide improvements. We aim to maintain this free open-source photography library with high quality of code.
5151

52-
If you feel like helping us, don't hesitate to join us on [discord](https://discord.gg/dcEcQfYR) or [gitter](https://app.gitter.im/#/room/#LycheeOrg_Lobby:gitter.im).
52+
If you feel like helping us, don't hesitate to join us on [discord](https://discord.gg/dcEcQfYR).
5353

5454
If you are using Lychee, a small token of gratitude will go a long way.
5555
You can support further development (and bug fixes!) of Lychee on [opencollective](https://opencollective.com/LycheeOrg) or on [GitHub](https://github.com/sponsors/LycheeOrg).

0 commit comments

Comments
 (0)