Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add commit message example to CLAUDE.md

Manav Rathi628c2ec39fa0
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md
index 7d0be17e40..890ffc213a 100644
--- a/docs/CLAUDE.md
+++ b/docs/CLAUDE.md
@@ -12,6 +12,14 @@ When making commits, follow these rules:
- NO promotional text or links (except Co-Authored-By line)
- Use ONLY "Co-Authored-By: Claude <[email protected]>" for attribution
+Example:
+
+```
+Format markdown files with Prettier for consistent styling
+
+Co-Authored-By: Claude <[email protected]>
+```
+
## Repository Overview
Documentation for Ente's products (Photos, Auth, self-hosting), published at [help.ente.io](https://help.ente.io). Built with VitePress.
@@ -34,20 +42,24 @@ yarn pretty # Format all files with Prettier
Full style guide: `docs/photos/STYLE_GUIDE.md`. Key requirements:
**Voice and terminology:**
+
- 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 `>`)
**Platform instructions** - always use bold headers:
+
- `**On mobile:**`, `**On desktop:**`, `**On web:**`, `**On iOS:**`, etc.
**FAQ requirements** - ALL questions MUST have unique anchor IDs:
+
- Format: `### Question? {#unique-anchor-id}`
- Descriptive IDs: `{#enable-face-recognition-ml}` NOT `{#faq1}`
- Must be unique across ALL FAQ files
Check for duplicates:
+
```bash
grep -rh "{#[a-z0-9-]*}" docs/photos/faq/*.md | sed 's/.*{#\([^}]*\)}.*/\1/' | sort | uniq -d
```
diff --git a/web/CLAUDE.md b/web/CLAUDE.md
index 8757afa74a..99cd23a9b7 100644
--- a/web/CLAUDE.md
+++ b/web/CLAUDE.md
@@ -11,6 +11,14 @@ When making commits, follow these rules:
- Use ONLY "Co-Authored-By: Claude <[email protected]>" for attribution
- ONLY run pre-commit checks (format, lint, typecheck, build) when explicitly creating a commit
+Example:
+
+```
+Format markdown files with Prettier for consistent styling
+
+Co-Authored-By: Claude <[email protected]>
+```
+
## Commands
### Development