CorrelAid / correlaid-codes

https://codes.correlaid.org
Apache License 2.0
1 stars 2 forks source link

Analyze fastpages forking #14

Open KonradUdoHannes opened 3 years ago

KonradUdoHannes commented 3 years ago

Forking a fastpages repo does not work in the sense, that the fork will not be able to run the blog by itself. The main reasons are probably

In order to make a workflow possible where users can fork the blog in order to contribute it would be good to understand everything that is required to change a fork into a working copy of the blog. This would benefit users that would allow users to contribute without having to use local docker/docker-compose tools.

The goal of this issue is to collect actions necessary to make a fork working.

In another issue we'll then look into automation (github actions) and documentation to make the gathered steps easier for users.

KonradUdoHannes commented 3 years ago

It is probably helpful to look at the initial setup pull request #1. Which describes how to setup deploy keys, which probably needs to be done for the fork as well.

The optional section also describes the custom domain setup (which correlaid-codes makes use of) This might need to be reverted for the fork. In the end the forked blog should be reached under .github.io/correlaid-codes. And we'll have to ensure that it doesn't just forward to the original blog.

KonradUdoHannes commented 3 years ago

I tried the following

  1. Fork
  2. Activate actions and add ssh keys according to #1
  3. modified _config.yaml and changed username to my username, url to https://.github.io, base_url to /correlaid_codes
  4. changed base_url in _action_files/settings.ini to /correlaid_codes
  5. deleted the CNAME file

Steps 3-5 can be done in a single commit.

Afterwards the actions ran through without error and a copy of the blog was available under https://.github.io/correlaid-codes

The further ToDos that I see here are

Thoughts on pull request

In order to make a meaningful pull request (with and added blogpost for instance), the modifications that make the forked blog work, must not be part of the pull request. A way to achieve this might be the following (not tried yet)