Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tighten and reorder docs/CLAUDE.md

Manav Rathi565d0db0fa9a
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md
index 053ee05094..b4bcadc9d1 100644
--- a/docs/CLAUDE.md
+++ b/docs/CLAUDE.md
@@ -1,28 +1,8 @@
# CLAUDE.md
-This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
-
-## Commit Message Guidelines
-
-When making commits, follow these rules:
-
-- Keep messages CONCISE (no walls of text)
-- Subject line under 72 chars as a single sentence (no body text, no bullets, no lists)
-- NO emojis
-- NO promotional text or links
-- NO Co-Authored-By lines
-
-Example:
-
-```
-Format markdown files with Prettier for consistent styling
-```
-
-## Repository Overview
-
Documentation for Ente's products (Photos, Auth, self-hosting), published at [ente.com/help](https://ente.com/help). Built with VitePress.
-## Development Commands
+## Development commands
```bash
yarn install --frozen-lockfile # Install dependencies from the committed lockfile
@@ -31,38 +11,33 @@ yarn build # Build for production
yarn pretty # Format all files with Prettier
```
-Use plain `yarn install` only when intentionally updating dependencies and
-reviewing the resulting `yarn.lock` changes.
-
-## Critical Architecture Notes
+Use plain `yarn install` only when intentionally updating dependencies and reviewing the resulting `yarn.lock` changes.
-**Adding new pages**: New pages MUST be manually added to `docs/.vitepress/sidebar.ts` - VitePress does not auto-generate the sidebar.
+## Commit messages
-## Style Guide
+Keep commit messages brief β€” one-liners unless asked otherwise. No emojis, no promotional text or links, no Co-Authored-By lines.
-Full style guide: `docs/photos/STYLE_GUIDE.md`. Key requirements:
+## Sidebar
-**Voice and terminology:**
+New pages must be added by hand to `docs/.vitepress/sidebar.ts` β€” VitePress does not auto-generate the sidebar.
-- Use imperative voice: "Open Settings" not "You can open Settings"
-- Use **Open** for navigation (NOT "Go to" or "Navigate to")
-- **Tap** for mobile, **Click** for desktop/web
-- Settings paths: `` `Settings > Backup > Folders` `` (code-formatted with `>`)
+## Style guide
-**Platform instructions** - always use bold headers:
+Full guide: `docs/photos/STYLE_GUIDE.md`. Key conventions:
-- `**On mobile:**`, `**On desktop:**`, `**On web:**`, `**On iOS:**`, etc.
+Voice and terminology:
-**FAQ requirements** - ALL questions MUST have unique anchor IDs:
+- Imperative voice: "Open Settings", not "You can open Settings".
+- "Open" for navigation, not "Go to" or "Navigate to".
+- "Tap" on mobile, "Click" on desktop and web.
+- Settings paths are code-formatted with `>`, e.g. `` `Settings > Backup > Folders` ``.
-- Format: `### Question? {#unique-anchor-id}`
-- Descriptive IDs: `{#enable-face-recognition-ml}` NOT `{#faq1}`
-- Must be unique across ALL FAQ files
+Platform instructions use bold headers: `**On mobile:**`, `**On desktop:**`, `**On web:**`, `**On iOS:**`, and so on.
-Check for duplicates:
+FAQ questions need unique anchor IDs: `### Question? {#descriptive-anchor-id}`. Use descriptive IDs (`{#enable-face-recognition-ml}`, not `{#faq1}`), and keep them unique across all FAQ files. Check for duplicates with:
```bash
grep -rh "{#[a-z0-9-]*}" docs/photos/faq/*.md | sed 's/.*{#\([^}]*\)}.*/\1/' | sort | uniq -d
```
-**Links:** Use "Learn more" (NOT "See more", "For more details", "Read more")
+Links: use "Learn more", not "See more", "For more details", or "Read more".