Commit graph

16 commits

Author SHA1 Message Date
dastarruer
d4bf089ac2
feat: package for nix (#5605)
* refactor(nix): move nix files out of `ops/`

* feat(nix): package for nix

* docs(nix): add installation guide

* chore(workflows): add workflow to build on nix

* chore(workflows): move flake check to pull requests, and builds to cron

* fix(nix): only add ios shell on darwin

* chore(workflows): add workflow to update flake inputs periodically

* chore(workflows): rename nix.yml to nix-build.yml

* chore(workflows): add cachix to nix-build

* chore: check all systems

* chore: auto-update hashes

* fix: set platform to linux and add warning in docs

* fix: only evaluate android shell if system is not aarch64

* fix: drop soon-to-be-deprecated x86_64-darwin platform

* fix: use more explicit nix build command

* fix: respect .gitignore in src

* chore: only run nix build on push to main

* fix: remove duplicate nix installer action

* chore: fix script formatting

* chore: move build check to flake checks

* chore: remove automatic hash-mismatch fix

* fix: only give read permissions to nix build action

* fix: use more explicit matching

* fix: remove unnecessary passthru references

* fix: pin action versions

* fix: use cachix for nix flake check

* fix: remove unnecessary secret

* fix: do not push flake check builds

* fix: meta.platforms -> platforms

* fix(nix): wire up the public binary cache and drop aarch64-linux

The Cachix cache was populated by CI but unreachable by users: neither the
flake nor the README pointed at it, so every install compiled the Rust/Tauri
stack and webkitgtk from source. Add nixConfig substituters and document the
cachix use / nix.settings opt-ins.

skipPush was passed to install-nix-action, which has no such input, so PR
builds still pushed whenever the token was present. Move it to cachix-action
and drop authToken there: the cache is public, so pulling needs no token, and
PR-triggered builds no longer see the push token at all.

Restrict nix_flake_check to pull_request. It also ran on main pushes, where
nix-build.yml already builds and pushes the same paths.

Drop aarch64-linux from eachSystem. Nothing built or cached it, so ARM Linux
users got a cache miss on everything. That makes the two system != aarch64-linux
guards dead, so fold those attrsets back into their bases.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(nix): refresh the pnpm deps hash after lockfile changes on main

nix flake check builds the pull_request merge ref, so the fixed-output
derivation covers main's pnpm-lock.yaml, not just the branch's. Two lockfile
changes landed on main after the hash was pinned (#5754, #5764), so the FOD
went stale and the check failed with a hash mismatch.

Cargo.lock and the turso plugin are unchanged over the same range, so
cargoHash and tursoPluginDeps still match.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* perf(nix): make the PR flake check evaluation only

nix flake check builds every attribute in `checks`, so `checks.build =
packages.default` turned the PR check into a full release build: cargo vendor,
a production Next.js build, and a cold release compile of the whole Tauri tree.
Nix builds in a pure sandbox, so it cannot use the sccache and rust-cache the
other Rust jobs rely on, and the binary cache is still empty, so nothing
amortized it. Observed over 45 minutes per run.

Drop the attribute. The flake outputs are still evaluated across systems, which
catches eval errors, and nix-build.yml keeps doing the real build on main and
pushing the result to the cache.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* chore(nix): pin actions/checkout to a commit sha

nix-build.yml used the mutable v5 tag while the other 19 checkout usages in
this repo pin 3d3c42e5aac5ba805825da76410c181273ba90b1 (v7.0.1). A movable tag
lets the action change under us and is what the scorecard pinned-dependencies
check flags.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs(nix): compress the README install and fix the dev shell commands

README: five code blocks down to three. The three interchangeable ways to opt
in to the cache collapse to one, and the two configuration.nix snippets merge
into a single block, since a NixOS user edits one file. Note why the cache has
to be repeated there: a flake input's nixConfig does not apply to the importing
system build, so the systemPackages path would otherwise build from source.

CONTRIBUTING: the documented shells pointed at ./ops, which this branch
deleted when it moved the flake to the repository root, so all three commands
failed. The web shell is also named default now, and ios is gated behind
isDarwin.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Huang Xin <chrox.huang@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 18:03:22 +02:00
Huang Xin
ab36bdac73
docs: add contributor code of conduct (#5758)
* docs: add contributor code of conduct

Define community expectations, private reporting guidance, enforcement steps, and the policy scope using Contributor Covenant 3.0.

* docs: link contributor code of conduct

Co-Authored-By: OpenAI Codex <noreply@openai.com>

---------

Co-authored-by: OpenAI Codex <noreply@openai.com>
2026-08-17 10:49:39 +02:00
dastarruer
5d0b7ab50d
chore: migrate away from numtide devshell (#5131)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / test_web_app (2) (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* chore: remove outdated numtide devshell input

* chore: remove unnecessary workarounds

This removes unnecessary workarounds left over from the old numtide
devshell implementation.

* fix: remove unnecessary `pkgs` prefix

* fix: add build inputs to LD_LIBRARY_PATH

Necessary for app to compile

* fix: add rest of required build inputs

* fix: remove setup-vendors from shellInit and update docs
2026-07-24 16:53:40 +02:00
dastarruer
dfa384a01a
docs: fix malformed code block (#5059)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / build_tauri_app (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
2026-07-11 08:02:24 +09:00
dastarruer
02e972f656
chore: add zed-editor support (#5026) 2026-07-09 09:07:53 +09:00
dastarruer
5b8ab3db25
docs: move source build instructions to CONTRIBUTING.md (#5017) 2026-07-08 18:25:56 +02:00
dastarruer
395a1e67a1
fix(nix): get nix devshell working (#4883)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* fix: update flake lock and properly pass zlib to pkgconfig

* chore: install nixfmt formatter

* chore: add startup script

* fix: ignore files in the nix store

* docs: change required node version to v24

* chore: upgrade to node v24

* fix: specify XDG_DATA_DIRS to fix webkitgtk issues

* fix: add required config to get android emulator working

- Add a `postInit` script for the android shell to auto-configure an Android emulator
- Required compile-time dependencies
- Required compilation targets for app to successfully build and run.

* fix: silence warning by using stdenv.hostPlatform.system instead of system

* chore: remove android-studio
2026-07-04 12:56:21 +02:00
Huang Xin
fe41c42ec5
chore: switch code formatter from Prettier to Biome (#4223)
Replace Prettier with Biome for formatting JS/TS/JSX/CSS/JSON. The CI
format check drops from ~23s to ~0.4s.

- Unify config into a single root biome.json (formatter + linter); the
  former apps/readest-app/biome.json was linter-only
- Mirror the old .prettierrc.json style: 100 line width, 2-space indent,
  LF, single quotes, trailing commas
- Enable the CSS tailwindDirectives parser for @apply in globals.css
- Convert // prettier-ignore comments to // biome-ignore format:
- Root scripts and lint-staged now run biome; apps/readest-app lint runs
  `biome lint` (lint-only) so formatting stays a separate CI step
- Drop prettier + prettier-plugin-tailwindcss dependencies

Markdown/YAML are no longer format-checked (Biome does not format them)
and Tailwind class sorting is no longer enforced.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 08:13:36 +02:00
Adam Charron
c90de6967b
Change setup command for vendors in CONTRIBUTING.md (#3139)
Some checks are pending
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
Updated instructions for setting up dependencies in the project.
2026-02-02 04:41:54 +01:00
初五
beaf034035
docs: fix outdated repository links and spelling error (#1669)
* docs: update outdated repository links in CONTRIBUTING.md

- Update issue tracker link from chrox/readest to readest/readest    
- Update new issue link from chrox/readest to readest/readest

* fix: correct spelling of "quota" in release notes

- Fix typo "quata" -> "quota" in 0.9.30 release notes
2025-07-23 20:00:55 +02:00
Palash Ahuja
4cea0bf75a
Fix minor spelling error on the contributing guideline (#255) 2025-01-26 00:59:26 +01:00
Huang Xin
18dfd73bed
mobile: responsive sizes for annotation tools (#236)
* chore: refine assetPrefix in config for easier debug over LAN

* mobile: responsive sizes for annotation tools
2025-01-23 21:31:41 +01:00
Huang Xin
c8f0c09426
Use dynamic viewport unit dvh to avoid page covered by toolbar and address bar in mobile browsers (#160) 2025-01-15 19:11:05 +01:00
Huang Xin
cc97a1b36f
Update README (#140) 2025-01-10 14:36:37 +01:00
Huang Xin
82fb92cf86
Replace deprecated shell-open with opener plugin to open urls and folders (#40) 2024-12-25 16:17:03 +01:00
chrox
7b2bd8a3f8
Add contributing guidelines in README 2024-12-07 19:10:13 +01:00