Skip to content

Repository files navigation

🎨 sinicx-template

build build

Tip

You can switch themes by setting theme field in template.yaml

theme: default # default || dark

🚀 Getting Started

📋 Prerequisites | 🪟WSL 🐧Linux 🍎MacOS

🔧 Pixi Installation

We use Pixi to manage the toolchain (e.g. node.js):

curl -fsSL https://pixi.sh/install.sh | bash

Restart your shell so pixi is on your PATH.

🛠️ Development

📥 Installation

pixi install

💻 Development Mode

pixi run dev

🏗️ Production Mode

pixi run preview

🏗️ Static pre-rendering

pixi run preview builds the site with vite-react-ssg to pre-render the page to static HTML at build time (no headless browser / Puppeteer required). This bakes the OGP/Twitter meta tags into <head> so crawlers can read them without running JavaScript, and links the CSS in <head> so there is no flash of unstyled content (FOUC). A successful build ends with:

[vite-react-ssg] Rendering Pages... (1)
build/index.html
[vite-react-ssg] Build finished.

📋 Template

Complete template.yaml by filling in the required values. Use null for any unavailable content (e.g., blog: null).

organization: OMRON SINIC X
twitter: "@omron_sinicx"
title: Path Planning using Neural A* Search
conference: ICML2021
resources:
  paper: https://arxiv.org/abs/1909.13111
  code: https://github.com/omron-sinicx/multipolar
  video: https://www.youtube.com/embed/adUnIj83RtU
  blog: https://medium.com/sinicx/multipolar-multi-source-policy-aggregation-for-transfer-reinforcement-learning-between-diverse-bc42a152b0f5
  ...

🎨 Customization

🔧 Styling

  • Customize appearance by modifying UIKit variables in src/scss/theme.scss (zero hand-written CSS)
  • Extend *.jsx files with components from:

📁 Project Structure

template.yaml       # Configuration
src/
├── components/     # React components
├── html/           # HTML templates
├── media/          # Media assets (relocated to assets/ automatically)
├── videos/         # Video content
├── js/             # JavaScript files
├── pages/          # Page templates
└── scss/           # Styling

🚀 Release your project page automatically by GitHub Actions

:octocat: Deploy from GitHub Actions

image

Note

When using GitHub Actions to deploy a site on GitHub Pages, the source code is built internally during the workflow run. Only the build artifacts (e.g., HTML, CSS, JS) are deployed to the GitHub Pages environment, while the repository itself retains only the source code.

🌿 Push project page source to "project-page" branch

TroubleShooting

Branch "project-page" is not allowed to deploy to github-pages due to environment protection rules Navigate to Settings > Environments > github-pages > 🗑️

image

🔍 SEO & Social Sharing

🌐 OGP Support

  • OGP meta tags are automatically generated from template.yaml and baked into the static HTML at build time by vite-react-ssg, so they render correctly both for local builds (pixi run preview) and when deployed via GitHub Actions (see above).
  • Example: Twitter Card Preview

🪝 Git Hooks & Typo Checking

Automatic Formatting & Typo Checking

Git hooks are managed by prek (a fast pre-commit reimplementation, installed by pixi) and configured in .pre-commit-config.yaml. They run prettier and typos on staged files only. Install the hook once per clone:

pixi run hooks

Manual Checking

pixi run hooks:all  # run every hook against all files
pixi run typos      # typo check only
pixi run typos:fix  # typo check and apply fixes

Disabling Git Hooks

To skip all hooks for a single commit:

git commit --no-verify

To skip only some of them, list the hook ids from .pre-commit-config.yaml:

SKIP=typos,prettier git commit -m "wip"

Note that .claude/ is excluded from every hook (see exclude: in .pre-commit-config.yaml).

🤝 Contributing

Issues and PRs welcome! Feel free to open an issue

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages