The introduction site of Misskey
- Install Node.js
- Make a new folder and pushd to it
git initgit remote add origin https://github.com/joinmisskey/joinmisskey.github.io.gitgit fetchgit checkout srcnpm installnpm install gulp -ggit 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 API and make
./.config/keys.yaml:
patreon:
campaign: xxxxxxx
bearer: _.........
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
gulp image -i <glob-readable-path>
This command compresses bitmap images and produces:
- The long side is equal or less than 1200px
/files/images/imports/yyyy/mm/<name>.<ext>/files/images/imports/yyyy/mm/<name>.webp
- The long side is equal or less than 720px
/files/images/imports/yyyy/mm/<name>.720.<ext>/files/images/imports/yyyy/mm/<name>.720.webp
- The long side is equal or less than 360px
/files/images/imports/yyyy/mm/<name>.360.<ext>/files/images/imports/yyyy/mm/<name>.360.webp
It 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/jagit checkout -b pages/<languagecode>git checkout pages/jacd ../..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/**/*: No License or the license that the file has in metadata
the others: "maqz" system, under CC0