mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 00:09:39 -06:00
remove themes
This commit is contained in:
parent
753946fc96
commit
dcba6afccb
@ -115,7 +115,6 @@ module.exports = {
|
||||
collapsable: false,
|
||||
children: [
|
||||
'/community/config/nodes/add_node.md',
|
||||
'/community/tutorials/custom_theme_setup.md',
|
||||
'/community/tutorials/artisan.md',
|
||||
],
|
||||
},
|
||||
|
||||
@ -94,36 +94,4 @@ This will initiate a rebuild on all servers, all servers on a node, or a specifi
|
||||
php artisan p:info
|
||||
```
|
||||
|
||||
Displays a variety of panel information which can be used to check the configuation of this like database and email.
|
||||
|
||||
## Theme Management
|
||||
|
||||
This is a commonly missed section of commands, but they exist and more people should be aware of them. Pterodactyl has a built in theming system and with that comes a variety of commands for managing them easier.
|
||||
|
||||
### List All Themes
|
||||
|
||||
```bash
|
||||
php artisan theme:list
|
||||
```
|
||||
|
||||
This is will show a table of all currently installed themes along with their views and asset paths. This does not show themes that are ready to be installed, only installed themes.
|
||||
|
||||
### Install a Theme
|
||||
|
||||
```bash
|
||||
php artisan theme:install [theme-name]
|
||||
```
|
||||
|
||||
This will search for the file with the theme name followed by a `.theme.tar.gz` (standard Igaster theme packaged). If no theme name is provided, it will load all themes and give you a selection to install from.
|
||||
|
||||
### Create a Theme
|
||||
|
||||
```bash
|
||||
php artisan theme:create [theme-name]
|
||||
```
|
||||
|
||||
### Remove a Theme
|
||||
|
||||
```bash
|
||||
php artisan theme:remove [theme-name]
|
||||
```
|
||||
Displays a variety of panel information which can be used to check the configuation of this like database and email.
|
||||
@ -1,57 +0,0 @@
|
||||
# Creating a theme for Pterodactyl
|
||||
This tutorial briefly covers how to create a theme for Pterodactyl without overwriting the main theme files.
|
||||
|
||||
:::warn
|
||||
The theming system has not been ported to 1.0+. This guide is only applicable to 0.7.X.
|
||||
:::
|
||||
|
||||
## Using CLI
|
||||
Begin by going to your panel's main directory typically installed at `/var/www/pterodactyl`. The command below is a straightforward setup that will cover
|
||||
the majority of the functions all for you (such as Theme Name, Views Location, Assets Location etc).
|
||||
|
||||
``` bash
|
||||
php artisan theme:create
|
||||
```
|
||||
This command will activate the theme wizard. Besides the name, the defaults will suffice, see the below example.
|
||||
::: warning Do not create the theme named as `pterodactyl` as that is Pterodactyl's main design and should NOT be overwritten.
|
||||
:::
|
||||
``` bash
|
||||
Give theme name:
|
||||
> (Enter Theme Name Here) (Example: MyThemeNameHere)
|
||||
|
||||
Where will views be located? []:
|
||||
> (Press Enter)
|
||||
|
||||
Where will assets be located? []:
|
||||
> themes/(MyThemeNameHere) (Example: themes/MyThemeNameHere)
|
||||
|
||||
Extends an other theme? (yes/no) [no]:
|
||||
> (Press Enter)
|
||||
```
|
||||
|
||||
If you have done it correctly, the summary should be like this:
|
||||
Summary:
|
||||
- Theme name: `MyThemeHere`
|
||||
- Views Path: `/var/www/pterodactyl/resources/themes/MyThemeHere`
|
||||
- Asset Path: `/var/www/pterodactyl/public/themes/MyThemeHere`
|
||||
- Extends Theme: No
|
||||
|
||||
```bash
|
||||
Create Theme? (yes/no) [yes]:
|
||||
> (Press Enter)
|
||||
```
|
||||
|
||||
If the above shows as that then your initial theme has been created correctly!
|
||||
|
||||
### Set your newly created theme as default
|
||||
Place your downloaded theme in the correct directory **without overwriting** the default Pterodactyl theme. See the following examples:
|
||||
|
||||
Your `public` folder into `/var/www/pterodactyl/public/themes/MyThemeHere/`
|
||||
|
||||
Your `resources` folder into `/var/www/pterodactyl/resources/themes/MyThemehere/`
|
||||
|
||||
### Setting your theme name in .env
|
||||
After creating your theme and uploading those theme files correctly, you need to edit your `.env` (environment) file next.
|
||||
Open up your `.env` file and locate `APP_THEME=pterodactyl` line and change it to `APP_THEME=MyThemeHere` (case-sensitive) and save it.
|
||||
|
||||
When done correctly, your panel will now load your custom/new theme correctly without any issues.
|
||||
Loading…
x
Reference in New Issue
Block a user