Skip to content

Old docs

Lauri Ojansivu edited this page Oct 3, 2024 · 2 revisions

OLD DOCS BELOW, DO NOT USE

Adding

  1. If there is not your new translation langauge, add issue to https://github.com/Secretchronicles/secretchronicles.github.io/issues about copying English directory en to some new language directory.
  2. Register and login to GitHub
  3. At https://github.com/Secretchronicles/secretchronicles.github.io , click button Fork to to fork to your GitHub account.
  4. At https://github.com/YOUR-GITHUB-USERNAME/secretchronicles.github.io , Edit some page with pen icon that has tooltip Edit this page, for example at directory es . Compare changes at directories en, fi, es, for what to change.
  5. At At https://github.com/YOUR-GITHUB-USERNAME/secretchronicles.github.io , click Contribute / Send Pull Request

1. Install git and configure it

Change all below that have BIG CHARACTERS.

sudo apt -y install git

git config --global user.name "YOUR-FIRST-NAME YOUR-LAST-NAME"

git config --global user.email YOUR-GITHUB-EMAIL-ADDRESS

git config --global push.default simple

2. Create SSH key and add to GitHub

If you do not have ssh key, create it at your Linux terminal:

ssh-keygen

And press Enter about 3 times, until you have private key at ~/.ssh/id_SOMETHING and public key at ~/.ssh/id_SOMETHING.pub

Add SSH public key .pub to your github account to https://github.com/settings/keys

There add your User (GitHub username) and IdentityFile (Your ssh private key. Not public key that has .pub). For indentation, use one tab.

3. Edit SSH config

Edit file `

Host *
        IdentitiesOnly=yes

Host github.com
        Hostname github.com
        User YOUR-LOCAL-LINUX-USERNAME
        IdentityFile ~/.ssh/id_YOUR-PRIVATE-KEY-NAME

Save and Exit with Ctrl-o Enter Ctrl-x Enter

2. Create fork

At webpage https://github.com/Secretchronicles/secretchronicles.github.io at GitHub click button Fork

Then at your Linux computer terminal, type this, change text that uses BIG LETTERS.

After below commands, there will be directory /home/YOUR-LINUX-USERNAME/repos/secretchronicles.github.io

mkdir repos

cd repos

git clone git@github.com:YOUR-GITHUB-USERNAME/secretchronicles.github.io

cd secretchronicles.github.io

3. Edit index.html

Edit /home/YOUR-LINUX-USERNAME/repos/secretchronicles.github.io/index.html

Change to add your language redirect. There is English and Finnish.

4. Copy English to your language

At directory