Skip to content

Commit 0bf4b52

Browse files
committed
README.md update
Signed-off-by: Kolja Nolte <kolja.nolte@gmail.com>
1 parent 5d6d042 commit 0bf4b52

File tree

1 file changed

+36
-17
lines changed

1 file changed

+36
-17
lines changed

README.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Modern HTML Error Docs
22

3-
![License](https://img.shields.io/badge/License-MIT-yellow.svg) ![GitHub Stars](https://img.shields.io/github/stars/thaikolja/html-error-docs.svg?style=flat) ![GitHub Forks](https://img.shields.io/github/forks/YOUR_USERNAME/YOUR_REPOSITORY.svg?style=flat)
3+
![GitHub Release](https://img.shields.io/github/v/release/thaikolja/modern-html-error-docs?include_prereleases&display_name=release&style=flat&color=light-blue&link=https%3A%2F%2Fgithub.com%2Fthaikolja%2Fmodern-html-error-docs) ![GitHub forks](https://img.shields.io/github/forks/thaikolja/modern-html-error-docs?style=flat) ![GitHub Repo stars](https://img.shields.io/github/stars/thaikolja/modern-html-error-docs?style=flat&color=dark-green) ![License](https://img.shields.io/badge/License-MIT-yellow.svg)
44

5-
A collection of modern, responsive, and brandable HTML error pages (e.g., 404, 500) designed to turn frustrating moments into memorable, on-brand experiences—with optional doses (customizable) of sarcasm, irony, and humor. Built for teams that want simple customization and a clean structure for deploying custom error docs across their web servers.
5+
A collection of modern, responsive, and brandable [HTML error pages](https://www.presslabs.com/how-to/error-pages/) (e.g., `404`, `500`) designed to turn frustrating moments into memorable, on-brand experiences—with an optional dose (customizable) of sarcasm, irony, and humor. Built for server administrators who are bored with the default Apache/Nginx error docs. This repository is hosted on [GitLab](https://gitlab.com/thaikolja/modern-html-error-docs) and mirrored to [GitHub](https://github.com/thaikolja/modern-html-error-docs).
66

77
**Example for the error code 503:**
88

99
![screenshot](https://p.ipic.vip/k018xl.jpg)
1010

1111
## Features
1212

13-
- ⚡️ **Responsive Design:** Optimized for various screen sizes, from mobile devices to large desktops.
13+
- ⚡️ **Fast:** Only HTML, a little CSS, and Vanilla JavaScript. No additional tools needed.
14+
- 📱 **Responsive Design:** Optimized for various screen sizes, from mobile devices to large desktops.
1415
- 📦 **Single Source of Truth:** All error docs are managed in a central `messages.json` file for easy updates.
1516
- 🛟 **Fallback Mechanism:** Content is displayed even if JavaScript is disabled in the browser.
1617
- 🧹 **Organized Structure:** Clear separation of CSS, JavaScript, and image assets.
@@ -20,26 +21,25 @@ A collection of modern, responsive, and brandable HTML error pages (e.g., 404, 5
2021

2122
Although the error docs have been built for Linux servers, please note that the following paths and folders may not be accurate for your specific distribution.
2223

23-
### Prerequisites
24+
### Requirements
2425

2526
- A server running Linux
2627
- An installed web server, e.g., Apache or Nginx
27-
- Root access or enough permissions to change default error docs
28-
- A modern web browser
28+
- Access to your server's standard error docs files
2929

3030
## Installation
3131

3232
> [!NOTE]
3333
>
34-
> For both installation versions, a Debian 12 server running Plesk, Apache, and Nginx is used. Some file paths may not be the same with your distribution.
34+
> For this installation, a Debian 12 server running Plesk, Apache, and Nginx is used. Some file paths may differ from those in your distribution.
3535
36-
### Built Installation
36+
### Install from Build
3737

38-
Already built version that only has to be moved to the server.
38+
An **already built version** with minified assets and only the necessary files that need to be moved to the server.
3939

40-
1. Log in to your server as the root user
40+
1. Use SSH to log in to your server as a user with enough permission (see: "Requirements")
4141

42-
2. Change into the directory where the error message files are being stored:
42+
2. Change into the directory where the error message files are being stored. In this case, it's the following directory for **new domains**. Already existing domains are located in `/var/www/vhosts/DOMAIN.COM/error-docs`.
4343

4444
```bash
4545
cd /var/www/vhosts/.skel/0
@@ -51,7 +51,7 @@ Already built version that only has to be moved to the server.
5151
zip -r error-docs-backup.zip error_docs
5252
```
5353

54-
4. Use `curl` or `wget` to download the built files as a .zip archive:
54+
4. Head to the "Release" section on GitLab or GitHub and copy the URL of the latest version's .zip file:
5555

5656
```bash
5757
# Using wget
@@ -64,16 +64,16 @@ Already built version that only has to be moved to the server.
6464
5. Unzip the downloaded file `main.zip`:
6565

6666
```bash
67-
unzip main.zip
67+
unzip dist.zip
6868
```
6969

70-
6. Delete the folder `error-docs` and rename your extracted `main`:
70+
6. Backup your existing default `error-docs` and rename your extracted `dist`:
7171

7272
```bash
73-
rm -r error-docs && mv main error-docs
73+
mv error-docs ./error-docs_backup && mv dist error-docs
7474
```
7575

76-
7. `cd` into `error-docs` and use `ls -la`. You should see the following file structure:
76+
7. `cd` into `error-docs` and use `ls -l` (or `tree`, if available). You should see the following file structure:
7777

7878
```bash
7979
├── assets
@@ -123,9 +123,22 @@ Already built version that only has to be moved to the server.
123123

124124
10. 🥳 Your Modern HTML Error Docs are successfully installed!
125125

126+
### Via Git
127+
128+
1. Clone the main repository with unminified codes:
129+
130+
```bash
131+
```
132+
133+
2. Apply your changes.
134+
135+
3. Clea
136+
126137
## Customization
127138

128-
### Error docs
139+
### Messages and Texts
140+
141+
These error docs
129142

130143
All error docs are stored in `assets/data/docs.json`. You can edit this file to change the titles, descriptions, and robot speech for each error code.
131144

@@ -154,6 +167,12 @@ Replace or add new robot images in the `assets/img/` directory. Ensure you updat
154167

155168
The `assets/js/scripts.js` file handles the dynamic loading of docs from `docs.json` and can be extended for additional client-side functionality.
156169

170+
## What's Next
171+
172+
* Creating a way of easier deployment
173+
* Accurate Linux distribution determination
174+
* Expanding `README.md` for the most used Linux distributions
175+
157176
## Contributing
158177

159178
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

0 commit comments

Comments
 (0)