Skip to content

Commit

Permalink
Merge pull request #37 from GilbN/develop
Browse files Browse the repository at this point in the history
Add some docs the the new unraid script
  • Loading branch information
GilbN authored Aug 22, 2023
2 parents 0fc945f + 03e008a commit e9267b4
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: |
curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_CACHE_PURGE }}" \
-H "Content-Type:application/json"
-H "Content-Type:application/json"
55 changes: 55 additions & 0 deletions docs/themes/unraid.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,61 @@ Custom [{{ page.title.split()[0] }}](https://unraid.net) CSS
<link type="text/css" rel="Stylesheet" href="https://theme-park.dev/css/base/unraid/<THEME>.css" />
```

#### Local Theme-Park CSS

This documentation provides instructions on how to use the Theme-Park Theme CSS Synchronization script to synchronize the CSS files needed for the theme-park.dev Unraid theme. The script ensures that the CSS files are correctly placed in the Dynamix CSS styles folder and updates references in the CSS files so they can be loaded locally in the Unraid GUI.

##### Installation

1. Download the script file from the [GitHub repository](https://github.com/GilbN/theme.park/tree/master/css/addons/unraid/local.sh).
2. Save the script file to a location on your Unraid server.

##### Usage

1. Open the downloaded script file in a text editor.
2. Locate the `root_source_folder` variable and change it to point to your desired source directory for the CSS files.
3. Save the changes to the script file.

##### Running the Script

###### Using User Scripts Plugin

1. If not already installed, install the `User Scripts` plugin from the Unraid Community Applications.
2. Open the "User Scripts" plugin and create a new script.
3. Give the script a name (e.g., "Theme-Park CSS Sync").
4. In the script content section, paste the script code and update the variable for your specific system.
5. Save the script and configure it to run on array start or as needed.

###### Manually Running the Script

1. Open a terminal or SSH session to your Unraid server.
2. Navigate to the location where you saved the script file.
3. Make the script file executable with the command: `chmod +x local.sh`
4. Update the script for your specific file system.
5. Run the script with the command: `./local.sh`
6. The script will perform the synchronization and update references.

##### Using the Theme Engine Plugin

After running the script to synchronize the CSS files, you can use the `Theme Engine` plugin to customize the styling of your Unraid web interface. Here's an example of how you can include the copied CSS files in your HTML head using the `Theme Engine` plugin:

```html
<!-- Example for Theme Engine plugin -->
<style>
<link type="text/css" rel="stylesheet" href="/webGui/styles/theme-park/css/base/unraid/nord.css" />
</style>
```

Simply add this code snippet within the HTML `<head>` section of your web interface to apply the custom styling.

For more information about using the `Theme Engine` plugin, refer to the plugin's documentation.

---

**Note:** Always make sure to back up your files and configurations before making any changes to your Unraid setup.

For the latest updates and more information, you can visit the [GitHub repository](https://github.com/GilbN/theme.park/tree/master/css/addons/unraid/local.sh).

{% set addons = extra.addons %}
{% set title = page.title.split()[0].lower() %}
{% for app, addon_name in addons.items() %}
Expand Down

0 comments on commit e9267b4

Please sign in to comment.