- Navigate to the repository's fork page.
- Click the "Fork" button to create a copy of the repository under your GitHub account.
-
Clone your fork to your local machine:
git clone https://github.com/{username}/flaskcwg.github.io.git cd flaskcwg.github.io
-
Add the original repository as an upstream remote to keep your fork synchronized:
git remote add upstream https://github.com/flaskcwg/flaskcwg.github.io.git
-
For Linux/Mac:
python -m venv env source env/bin/activate
-
For Windows:
py -m venv env source env\Scripts\activate
-
Install the required Python dependencies:
pip install -r requirements.txt
-
Run the
static.py
script to generate the HTML content in thedocs/
directory:python static.py
-
Serve the generated content locally by running the
serve.py
script:cd docs python serve.py
-
Access the site using the IP address displayed in the console output.
-
Add your fork as a remote to push your contributions. Replace
{username}
with your GitHub username. This step names your forked repository remote asfork
while retainingorigin
for the original repository:git remote add fork https://github.com/{username}/flaskcwg.github.io.git
- Ensure your fork is updated with the upstream repository before starting new work by running:
git fetch upstream git merge upstream/main
- Submit your contributions via a pull request after committing your changes to your forked repository.
By following these instructions, you'll be able to set up your environment and contribute effectively. Happy coding! 🎉