The introduction site of Misskey
- Install Node.js
- Make a new folder
git init
git remote add origin https://github.com/joinmisskey/joinmisskey.github.io.git
git checkout src
npm install
npm install gulp -g
git worktree add docs master; git worktree add pages/ja pages/ja; git worktree add pages/en pages/en; git worktree add pages/fr pages/fr;
- Get campaign number and barer token of Patreon and make
./.config/keys.json
:
{
"patreon": {
"campaign": "xxxxxxx"
"barer": "_……"
}
}
gulp prebuild-files
Run whenever you append images.
If you work on a forked repository, you never have to run this command, probably.gulp
gulp local-server
Install ImageMagick or GraphicsMagick.
gulp image -i <glob-readable-path>
This command compresses bitmap images and produces:
/files/images/imports/yyyy/mm/<name>.<ext>
- The long side is equal or less than 1600px/files/images/imports/yyyy/mm/<name>.720.<ext>
- The long side is equal or less than 720px/files/images/imports/yyyy/mm/<name>.720c.jpeg
- The short side is equal to 720px
Also compresses bector images.
gulp image-prebuildFiles
First, fork this repository, set yours as 'origin' on git and set this one as 'upstream'.
cd pages/ja
git checkout -b pages/<languagecode>
git checkout pages/ja
cd ../..
git worktree add pages/<languagecode> pages/<languagecode>
cd pages/<languagecode>
git push --set-upstream origin pages/<languagecode>
cd ../..
- Add the language in these files:
README.md
(l14),.config/lang.json
. - Commit these changes to your fork.
- Make new issue to ask aqz or syuilo to add a new language.
We will make branch
pages/<languagecode>
- Make pull requests of 2 branches,
pages/<languagecode>
andsrc
.
Files in pages/**/*
: All rights reserved
Files in files/**/*
or dist/files/**/*
: No License or the license that the file has in metadata
the others: "maqz" system, under CC0