From 2eab79a8ed54d6efd610a6a5d54f7aec1e3c86f6 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 4 Jan 2025 19:05:54 +0100 Subject: [PATCH] Add section with info about forking to the readme --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 73832eca..f0d1f3aa 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,25 @@ misode.github.io supports multiple languages. If you'd like to help us translate - Note that the username and email will be shown in the [repository](https://github.com/misode/misode.github.io)'s git commit log. 3. See the components of misode.github.io [here](https://weblate.spyglassmc.com/projects/misode-github-io/web-app/). 4. Start translating! + +## Forking +You are allowed to fork this repository and use its base as a way to publish your own generator site, but I ask to make a few changes before publishing. + +1. Change links to this repo to your own repo. This can be done at the top of `Utils.ts` by changing `export const SOURCE_REPO_URL = ...`. +2. Remove or replace the Google Analytics tracking code in the root `index.html` file. To avoid breaking the rest of the website, you can replace everything between the `` markers with this: +```html + +``` +3. Disable the ads, first by remove two lines in `index.html`: +```html + +... +
+``` +4. Secondly, you can remove the ad component, for example by returning `<>` in `Ad.tsx`, or by removing the `{!gen.tags?.includes('partners') && }` line in `SchemaGenerator.tsx`. +5. Remove the contributors and giscus comment section on the homepage. You can do this easily by removing `` and `` in `Home.tsx`. +6. Make some other changes to the home page. This will depend on what you need, but you might want to remove stuff like `` and/or ``. +7. Edit the `Footer.tsx` component. You can remove the donation link, but I would appreciate if you still kept a note that your fork is based on my work, for example by linking to my github profile or this repository. +8. Change some of the translations in `src/locales/en.json`. Particularly you might want to change the `title.home` key.