diff --git a/README.md b/README.md index df504cc..a0cc527 100755 --- a/README.md +++ b/README.md @@ -1,10 +1,14 @@ -
1. SudoVanilla recommends using the Bun package manager for Astro projects.
-2. If you plan to use Bun, NodeJS is not required to be installed, which is why it's not listed as a requirement. (Tested)
+2. If you plan to use Bun, NodeJS is not required to be installed, which is why it's not listed as a requirement. If you use i18n in Astro, then NodeJS will be required. (Tested)
### Clone Repository Start by cloning the repository to somewhere on your device using the `git` command: @@ -68,6 +72,24 @@ services: volumes: - ./dists/:/usr/share/nginx/html/ ``` + +## Overriding Components + +Since ButterflyVu is written in Astro and the site is built during each startup in Docker, overriding the components is easy. Now for, overriding the header will be shown, it's pretty much the same basics for other components. + +> This also works for any other part of ButterflyVu, such as for the layouts and styles. This will be expanded on once the ButterflyVu documentations are written on it's own site, ironic that it hasn't been built yet, right? + +### Header + +In the `docker-compose.yml` file, add a path to the `volumes` section to your custom header: +```yml + - ./components/Header.astro:/app/src/components/global/Header.astro +``` + +The file must be an `.astro` file, anything else like `.jsx` will not work. + +If you already have the custom header written and it's ready for showtime, just run the Docker image again and the new header will be built with the site. + ___