Homepage is a comprehensive resource for information about Yorkie. It includes detailed documentation and information about Yorkie and its features, capabilities, and usage.
For building homepage, you'll first need Node.js 20 installed (see .nvmrc).
# install packages
npm install
# build
npm run build
In the project directory, you can run:
$ npm run dev
Yorkie UI (yorkie-ui-old) is a repository that contains the styles of Yorkie. If you want to update the styles of the homepage. You can run the following command. Yorkie UI repository is private, so if you want to run this command, you need to be a member of the Yorkie UI repository.
$ npm run fetch:ui
The examples that are used in the homepage are managed in the Yorkie JS, iOS and Android SDK repositories. If you want to update examples of the homepage, you can run the following command.
$ npm run fetch:examples
This command checks out each SDK at the version set in .env (NEXT_PUBLIC_YORKIE_JS_VERSION, NEXT_PUBLIC_YORKIE_IOS_VERSION and NEXT_PUBLIC_YORKIE_ANDROID_VERSION), and copies the fileInfo of its examples to the /examples directory and their thumbnails and demo videos to /public/assets. To fetch from one SDK only, run npm run fetch:js-examples, npm run fetch:ios-examples or npm run fetch:android-examples.
The example applications are built and served directly from the homepage. To build all examples:
$ npm run build:examples
This will:
- Use yorkie-js-sdk's pnpm build system (from
/tempdirectory) - Read API configuration from
.envand.env.productionenvironment variables - Build static examples using
pnpm build:examples - Copy built files to
public/apps/
Environment Variables:
NEXT_PUBLIC_API_ADDR: Yorkie API server address (default: https://api.yorkie.dev)NEXT_PUBLIC_EXAMPLES_API_KEY: API key for examples (optional)
For full production build including examples:
$ npm run build:full
Note: npm run build:examples builds from the yorkie-js-sdk checkout in /temp, so run npm run fetch:examples (or npm run fetch:js-examples) before running it on its own. npm run build:full does both.
When PR is merged into main, it is automatically distributed by GitHub Actions.
See CONTRIBUTING for details on submitting patches and the contribution workflow.
- MAINTAINING.md — Release and maintenance procedures
- CLAUDE.md — Agent instructions for AI-assisted development