#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
chore: consolidate root-level docs and remove dead config (#8386)
briosf1e924bb881d
diff --git a/.claude/skills/comment-review/SKILL.md b/.claude/skills/comment-review/SKILL.mdindex 9ef25403f1..1f06aad17c 100644--- a/.claude/skills/comment-review/SKILL.md+++ b/.claude/skills/comment-review/SKILL.md@@ -2,7 +2,7 @@name: comment-reviewdescription: >-Review and improve the code comments a PR or branch adds, against the standard in- devGuide/CODE_COMMENTS.md: cut the ones that restate the code, tighten the verbose+ docs/developer/CODE_COMMENTS.md: cut the ones that restate the code, tighten the verboseones, reframe what-comments into the why or the constraint, and add the contractdocs the change left missing. Runs comment-lint for the mechanical rules first,then judges what a linter cannot: padding around one real fact, facts already@@ -28,9 +28,9 @@ against where it forked from the main line. `--report-only` reports without edit## The standard-`AGENTS.md` section "Comments" is the short form; `devGuide/CODE_COMMENTS.md` is the+`AGENTS.md` section "Comments" is the short form; `docs/developer/CODE_COMMENTS.md` is theauthority, with the reasoning and the worked examples. **Read-`devGuide/CODE_COMMENTS.md` before judging anything.** Do not work from memory of what+`docs/developer/CODE_COMMENTS.md` before judging anything.** Do not work from memory of whata good comment is: the repo has already decided, and the four jobs (contract, why,hazard, map) are the whole permitted set.diff --git a/.claude/skills/ui-before-after/SKILL.md b/.claude/skills/ui-before-after/SKILL.mdindex 533bc6bd6e..4c4dee9966 100644--- a/.claude/skills/ui-before-after/SKILL.md+++ b/.claude/skills/ui-before-after/SKILL.md@@ -53,7 +53,7 @@ gh pr diff <pr> --name-only # or: git diff --name-only <base>...HEADMap changed frontend files to URLs generically:- **Tools**: a changed `components/tools/<toolDir>/…` or `hooks/tools/<tool>/…` →toolId → URL via the repo's own rule `getToolUrlPath` in- [toolsTaxonomy.ts:200](frontend/editor/src/core/data/toolsTaxonomy.ts): `/` + the+ [toolsTaxonomy.ts:200](../../../frontend/editor/src/core/data/toolsTaxonomy.ts): `/` + theid kebab-cased (`addPageNumbers` → `/add-page-numbers`).- **Pages/routes**: changed `filesPage/*` → `/files`, etc.- `--all`: enumerate every tool in the registry instead of just changed ones.diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.mdsimilarity index 81%rename from CONTRIBUTING.mdrename to .github/CONTRIBUTING.mdindex 84c038318e..e14e4a0e45 100644--- a/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -4,7 +4,7 @@ Thank you for your interest in contributing to Stirling-PDF! There are many ways## License-By contributing to this project, you agree that your contributions will be licensed under the project [license](LICENSE), which follows an open-core model.+By contributing to this project, you agree that your contributions will be licensed under the project [license](../LICENSE), which follows an open-core model.The codebase is a mix of MIT and source-available code, so your contribution is licensed according to the directory it is committed to.PRs are welcome in any directory by any user, just be aware of which license applies to the code you change.@@ -42,7 +42,7 @@ Please make sure your Pull Request adheres to the following guidelines:- Keep commits atomic. One commit should contain one change. If you want to make multiple changes, submit multiple Pull Requests.- Commits should be clear, concise, and easy to understand.- References to the Issue number in the Pull Request and/or Commit message.-- Every comment in the diff should say something the code does not. See [Code comments](devGuide/CODE_COMMENTS.md); `task comment-lint` checks the mechanical part.+- Every comment in the diff should say something the code does not. See [Code comments](../docs/developer/CODE_COMMENTS.md); `task comment-lint` checks the mechanical part.## Stale Pull Requests@@ -59,7 +59,7 @@ If you think a Pull Request is waiting on us rather than on you, say so in a com## Translations-If you would like to add or modify a translation, please see [How to add new languages to Stirling-PDF](devGuide/HowToAddNewLanguage.md). Also, please create a Pull Request so others can use it!+If you would like to add or modify a translation, please see [How to add new languages to Stirling-PDF](../docs/developer/HowToAddNewLanguage.md). Also, please create a Pull Request so others can use it!## Docs@@ -75,12 +75,12 @@ If, at any point in time, you have a question, please feel free to ask in the saFor technical guides, setup instructions, and development resources:-- [Developer Guide](DeveloperGuide.md) - Main setup and architecture guide-- [Taskfile.yml](Taskfile.yml) - Unified task runner for all build/dev/test/lint commands-- [Exception Handling Guide](devGuide/EXCEPTION_HANDLING_GUIDE.md) - Error handling patterns and i18n-- [Translation Guide](devGuide/HowToAddNewLanguage.md) - Adding new languages-- And more in the [devGuide folder](devGuide/)+- [Developer Guide](../docs/developer/DeveloperGuide.md) - Main setup and architecture guide+- [Taskfile.yml](../Taskfile.yml) - Unified task runner for all build/dev/test/lint commands+- [Exception Handling Guide](../docs/developer/EXCEPTION_HANDLING_GUIDE.md) - Error handling patterns and i18n+- [Translation Guide](../docs/developer/HowToAddNewLanguage.md) - Adding new languages+- And more in the [devGuide folder](../docs/developer/)For configuration and usage guides, see:-- [Database Guide](DATABASE.md) - Database setup and configuration-- [OCR Guide](HowToUseOCR.md) - OCR setup and configuration+- [Database Guide](../docs/developer/DATABASE.md) - Database setup and configuration+- [OCR Guide](../docs/developer/HowToUseOCR.md) - OCR setup and configurationdiff --git a/SECURITY.md b/.github/SECURITY.mdsimilarity index 100%rename from SECURITY.mdrename to .github/SECURITY.mddiff --git a/.github/config/.files.yaml b/.github/config/.files.yamlindex 5a277000c8..b8dc84f252 100644--- a/.github/config/.files.yaml+++ b/.github/config/.files.yaml@@ -70,7 +70,6 @@ project: &project- gradle.properties- gradlew- gradlew.bat- - launch4jConfig.xml- settings.gradle- frontend/**- docker/**diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex 41666ff608..ada5a6000e 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -16,21 +16,21 @@ Closes #(issue_number)### General-- [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)-- [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable)-- [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable)+- [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/.github/CONTRIBUTING.md)+- [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/developer/DeveloperGuide.md) (if applicable)+- [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/developer/HowToAddNewLanguage.md) (if applicable)- [ ] I have performed a self-review of my own code-- [ ] Every comment I added says something the code does not ([guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/CODE_COMMENTS.md))+- [ ] Every comment I added says something the code does not ([guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/developer/CODE_COMMENTS.md))- [ ] My changes generate no new warnings### Documentation- [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed)-- [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only)+- [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/developer/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only)### Translations (if applicable)-- [ ] I ran [`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md)+- [ ] I ran [`scripts/counter_translation_v3.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md)### UI Changes (if applicable)@@ -39,4 +39,4 @@ Closes #(issue_number)### Testing (if applicable)- [ ] I have run `task check` to verify linters, typechecks, and tests pass-- [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#7-testing) for more details.+- [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/developer/DeveloperGuide.md#7-testing) for more details.diff --git a/.gitignore b/.gitignoreindex e567e4af85..355c973d41 100644--- a/.gitignore+++ b/.gitignore@@ -208,7 +208,6 @@ venv.bak/# Env files (secrets / local overrides). Subproject .gitignore files whitelist any committed defaults..env*-!/.env# VS Code/.vscode/**/*@@ -260,8 +259,9 @@ id_ed25519.pub!docs/security/signing-key.pub*ssh-# Taskfile checksum cache-.task/+# Task cache plus the committed default env the root Taskfile reads.+.task/*+!.task/.env# cache.cachediff --git a/.env b/.task/.envsimilarity index 64%rename from .envrename to .task/.envindex 8fc97447a3..cb28c66231 100644--- a/.env+++ b/.task/.env@@ -1,6 +1,8 @@###############################################################################-# Committed defaults for `task`, loaded by every task via the root Taskfile.-# Override in the uncommitted sibling `.env.local`.+# Committed defaults for `task`, loaded by every task via the root Taskfile's+# `dotenv:` list. Sits in .task/ because it is the only file here that is+# tracked; everything else in that directory is a Task cache. Override in the+# uncommitted sibling .task/.env.local.################################################################################ Cap the worker count for the check/test/lint tasks so they don't swamp a busydiff --git a/.taskfiles/pre-commit.yml b/.taskfiles/pre-commit.ymlindex f65a296160..a35472acff 100644--- a/.taskfiles/pre-commit.yml+++ b/.taskfiles/pre-commit.yml@@ -140,7 +140,7 @@ tasks:block of commented-out code. Everything else it reports is advisory.Scoped to added lines, so touching an old file never surfaces the standing- backlog. The standard is devGuide/CODE_COMMENTS.md.+ backlog. The standard is docs/developer/CODE_COMMENTS.md.With no arguments it diffs the working tree against HEAD, which is what apre-commit run wants: the lines you are about to commit. On a CI pull requestdiff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 6f9f8e6a76..4f8f252284 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -95,7 +95,6 @@".editorconfig",".gitleaksignore",".imgbotconfig",- "ADDING_TOOLS.md","AGENTS.md","app/.gitignore","app/build/",@@ -124,11 +123,7 @@"build.gradle","CLAUDE.md","configs/",- "CONTRIBUTING.md",- "DATABASE.md","customFiles/",- "devGuide/",- "devTools/","docker/","docs/","engine/",@@ -138,22 +133,14 @@"gradle.properties","gradlew","gradlew.bat",- "HowToUseOCR.md",- "images/",- "launch4jConfig.xml","LICENSE","logs/","pipeline/","README.md","scripts/",- "SECURITY.md","settings.gradle",- "SHARED_SIGNING.md","Taskfile.yml",- "test_globalsign.pdf",- "test_irs_signed.pdf","testing/",- "WINDOWS_SIGNING.md",],// Enables signature help in Java."java.signatureHelp.enabled": true,@@ -182,7 +169,7 @@"html.format.indentHandlebars": true,"html.format.preserveNewLines": true,"html.format.maxPreserveNewLines": 2,- "stylelint.configFile": "${workspaceFolder}/devTools/.stylelintrc.json",+ "stylelint.configFile": "${workspaceFolder}/frontend/stylelint.config.mjs","css.lint.unknownAtRules": "ignore","scss.lint.unknownAtRules": "ignore","less.lint.unknownAtRules": "ignore",diff --git a/AGENTS.md b/AGENTS.mdindex 91ab0c08e9..5520ec4ffc 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -56,7 +56,7 @@ A TODO needs an issue, not an owner: `// TODO(#1234): re-enable the gate once acA comment block over ~12 lines outside a file or type header usually means the code needs restructuring, or that the prose is product documentation and belongs in the docs repo.-`task comment-lint` checks the mechanical part of this on the lines you add, and runs inside `task pre-commit`. Reasoning, worked examples and the linter's own rules: @devGuide/CODE_COMMENTS.md+`task comment-lint` checks the mechanical part of this on the lines you add, and runs inside `task pre-commit`. Reasoning, worked examples and the linter's own rules: @docs/developer/CODE_COMMENTS.md## Common Development Commands@@ -510,7 +510,7 @@ The frontend is organized with a clear separation of concerns:- **Tool Development**: New tools should follow `useToolOperation` hook pattern (see `useCompressOperation.ts`)- **Performance Target**: Must handle PDFs up to 100GB+ without browser crashes- **Preview System**: Tools can preview results without polluting main file context (see Split tool implementation)-- **Adding Tools**: See `ADDING_TOOLS.md` for complete guide to creating new PDF tools+- **Adding Tools**: See `docs/developer/ADDING_TOOLS.md` for complete guide to creating new PDF tools## Communication Style- Be direct and to the pointdiff --git a/README.md b/README.mdindex c6777f1032..d266d6e9ce 100644--- a/README.md+++ b/README.md@@ -21,7 +21,7 @@ Stirling PDF is a powerful, open-source PDF editing platform. Run it as a person</a></p>-+## Key Capabilities@@ -58,11 +58,11 @@ For full installation options (including desktop and Kubernetes), see our [Docum## Contributing-We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.+We welcome contributions! Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for guidelines.-This project uses [Task](https://taskfile.dev/) as a unified command runner for all build, dev, and test commands. Run `task dev` to get started running the editor, run `task` to see the most common commands, or see the [Developer Guide](DeveloperGuide.md) for full details.+This project uses [Task](https://taskfile.dev/) as a unified command runner for all build, dev, and test commands. Run `task dev` to get started running the editor, run `task` to see the most common commands, or see the [Developer Guide](docs/developer/DeveloperGuide.md) for full details.-For adding translations, see the [Translation Guide](devGuide/HowToAddNewLanguage.md).+For adding translations, see the [Translation Guide](docs/developer/HowToAddNewLanguage.md).## Licensediff --git a/Taskfile.yml b/Taskfile.ymlindex 698cbc32c2..eb67d903a5 100644--- a/Taskfile.yml+++ b/Taskfile.yml@@ -2,7 +2,8 @@ version: '3'output: prefixed-dotenv: ['.env.local', '.env']+# Loaded for every task. Move any STIRLING_CHECK_JOBS override from root .env.local to .task/.env.local.+dotenv: ['.task/.env.local', '.task/.env']vars:FIND_FREE_PORT_PS: powershell -NoProfile -File scripts/find-free-port.ps1diff --git a/app/core/src/main/resources/settings.yml.template b/app/core/src/main/resources/settings.yml.templateindex 6e6c72943e..0e1e0bf74f 100644--- a/app/core/src/main/resources/settings.yml.template+++ b/app/core/src/main/resources/settings.yml.template@@ -298,7 +298,7 @@ storage:# Encryption at rest for stored files (AES-256, per-team keys). Requires a Pro or# Enterprise licence. Key setup, cluster requirements, the encrypt-existing migration,# the revocation kill switch and master-key rotation are documented in- # devGuide/STORAGE_ENCRYPTION_AT_REST.md+ # docs/developer/STORAGE_ENCRYPTION_AT_REST.md# WARNING: back up the master key (configs/file-encryption.key by default) - losing it# makes every encrypted stored file permanently unrecoverable.encryption:diff --git a/test_globalsign.pdf b/app/core/src/test/resources/signed-pdf/test_globalsign.pdfsimilarity index 100%rename from test_globalsign.pdfrename to app/core/src/test/resources/signed-pdf/test_globalsign.pdfdiff --git a/test_irs_signed.pdf b/app/core/src/test/resources/signed-pdf/test_irs_signed.pdfsimilarity index 100%rename from test_irs_signed.pdfrename to app/core/src/test/resources/signed-pdf/test_irs_signed.pdfdiff --git a/app/proprietary/src/main/java/stirling/software/proprietary/storage/config/StorageProviderConfig.java b/app/proprietary/src/main/java/stirling/software/proprietary/storage/config/StorageProviderConfig.javaindex 4a6dade758..f401005c75 100644--- a/app/proprietary/src/main/java/stirling/software/proprietary/storage/config/StorageProviderConfig.java+++ b/app/proprietary/src/main/java/stirling/software/proprietary/storage/config/StorageProviderConfig.java@@ -116,7 +116,7 @@ public class StorageProviderConfig {"Storage encryption at rest is enabled, but audit events require an Enterprise"+ " licence: encrypt/decrypt, revocation and plaintext-export events"+ " will NOT be recorded on this licence tier. Encryption itself is"- + " unaffected. See devGuide/STORAGE_ENCRYPTION_AT_REST.md");+ + " unaffected. See docs/developer/STORAGE_ENCRYPTION_AT_REST.md");}}diff --git a/devGuide/DeveloperGuide.md b/devGuide/DeveloperGuide.mddeleted file mode 100644index 964992927e..0000000000--- a/devGuide/DeveloperGuide.md+++ /dev/null@@ -1,5 +0,0 @@-# Developer Guide--This guide has moved to the repository root for easier discovery.--**See [DeveloperGuide.md](../DeveloperGuide.md) for the current developer guide.**diff --git a/devGuide/README.md b/devGuide/README.mddeleted file mode 100644index 2ddaff63c3..0000000000--- a/devGuide/README.md+++ /dev/null@@ -1,32 +0,0 @@-# Developer Guide Directory--This directory contains all development-related documentation for Stirling PDF.--## 📚 Documentation Index--### Core Development-- **[DeveloperGuide.md](../DeveloperGuide.md)** - Main developer setup and architecture guide (in repo root)-- **[Taskfile.yml](../Taskfile.yml)** - Unified task runner for all build/dev/test/lint commands-- **[EXCEPTION_HANDLING_GUIDE.md](./EXCEPTION_HANDLING_GUIDE.md)** - Exception handling patterns and i18n best practices-- **[CODE_COMMENTS.md](./CODE_COMMENTS.md)** - What a comment is for, what not to write, and the `task comment-lint` rules-- **[HowToAddNewLanguage.md](./HowToAddNewLanguage.md)** - Internationalization and translation guide-- **[STORAGE_ENCRYPTION_AT_REST.md](./STORAGE_ENCRYPTION_AT_REST.md)** - Encryption at rest for stored files: key setup, migration, revocation, rotation--### Features & Documentation-- **[AGENTS.md](./AGENTS.md)** - Agent-based functionality documentation-- **[USERS.md](./USERS.md)** - User-focused documentation and guides--## 🔗 Related Files in Root-- **[README.md](../README.md)** - Project overview and quick start-- **[CONTRIBUTING.md](../CONTRIBUTING.md)** - Contribution guidelines-- **[SECURITY.md](../SECURITY.md)** - Security policies and reporting-- **[DATABASE.md](../DATABASE.md)** - Database setup and configuration (usage guide)-- **[HowToUseOCR.md](../HowToUseOCR.md)** - OCR setup and configuration (usage guide)--## 📝 Contributing to Documentation--When adding new development documentation:-1. Place technical guides in this `devGuide/` directory-2. Update this index file with a brief description-3. Keep user-facing docs (README, CONTRIBUTING, SECURITY) in the root-4. Follow existing naming conventions (PascalCase for guides)diff --git a/devGuide/STYLELINT.md b/devGuide/STYLELINT.mddeleted file mode 100644index 0e279e1915..0000000000--- a/devGuide/STYLELINT.md+++ /dev/null@@ -1,47 +0,0 @@-# STYLELINT.md--## Usage--Apply Stylelint to your project's CSS with the following steps:--1. **NPM Script**-- - Go to directory: `devTools/`-- - Add Stylelint & stylistic/stylelint-plugin- ```bash- npm install --save-dev stylelint stylelint-config-standard- npm install --save-dev @stylistic/stylelint-plugin- ```- - Add a script entry to your `package.json`:- ```jsonc- {- "scripts": {- "lint:css:check": "stylelint \"../app/core/src/main/**/*.css\" \"../app/proprietary/src/main/resources/static/css/*.css\" --config .stylelintrc.json",- "lint:css:fix": "stylelint \"../app/core/src/main/**/*.css\" \"../app/proprietary/src/main/resources/static/css/*.css\" --config .stylelintrc.json --fix"- }- }- ```- - Run the linter:- ```bash- npm run lint:css:check- npm run lint:css:fix- ```--2. **CLI Usage**-- - Lint all CSS files:- ```bash- npx stylelint ../app/core/src/main/**/*.css ../app/proprietary/src/main/resources/static/css/*.css- ```- - Lint a single file:- ```bash- npx stylelint ../app/proprietary/src/main/resources/static/css/audit-dashboard.css- ```- - Apply automatic fixes:- ```bash- npx stylelint "../app/core/src/main/**/*.css" "../app/proprietary/src/main/resources/static/css/*.css" --fix- ```--For full configuration options and rule customization, refer to the official documentation: [https://stylelint.io](https://stylelint.io)-diff --git a/docs/counter_translation.md b/docs/counter_translation.mdindex 8468dfe1b8..9fa43c3913 100644--- a/docs/counter_translation.md+++ b/docs/counter_translation.md@@ -1,38 +1,37 @@-# `counter_translation.py`+# `counter_translation_v3.py`## Overview-The script [`scripts/counter_translation.py`](../scripts/counter_translation.py) checks the translation progress of the property files in the directory `app/core/src/main/resources/`.-It compares each `messages_*.properties` file with the English reference file `messages_en_US.properties` and calculates a percentage of completion for each language.+The script [`scripts/counter_translation_v3.py`](../scripts/counter_translation_v3.py) checks the translation progress of TOML files in `frontend/editor/public/locales/`.+It compares each locale's `translation.toml` file with the English reference file `en-US/translation.toml` and calculates a percentage of completion for each language.-In addition to console output, the script automatically updates the progress badges in the project’s `README.md` and maintains the configuration file [`scripts/ignore_translation.toml`](../scripts/ignore_translation.toml), which lists translation keys to be ignored for each language.+In addition to console output, the script maintains the configuration file [`scripts/ignore_translation.toml`](../scripts/ignore_translation.toml), which lists translation keys to be ignored for each language.## Requirements- Python 3.10 or newer (requires `tomlkit`).- Must be executed **from the project root directory** so all relative paths are resolved correctly.-- Write permissions for `README.md` and `scripts/ignore_translation.toml`.+- Write permissions for `scripts/ignore_translation.toml`.## Default usage```bash-python scripts/counter_translation.py+python scripts/counter_translation_v3.py```This command:-1. scans `app/core/src/main/resources/` for all `messages_*.properties` files,+1. scans `frontend/editor/public/locales/` for all locale `translation.toml` files,2. calculates the translation progress for each file,-3. updates the badges in `README.md`,-4. reformats `scripts/ignore_translation.toml` (sorted, multi-line arrays).+3. reformats `scripts/ignore_translation.toml` (sorted, multi-line arrays).## Check a single language```bash-python scripts/counter_translation.py --lang messages_fr_FR.properties+python scripts/counter_translation_v3.py --lang fr-FR```-- The specified file can be given as a relative (to the resources folder) or absolute path.+- Specify a locale such as `fr-FR`, or a path to its `translation.toml` file.- The result is printed to the console (e.g. `fr_FR: 87% translated`).- With `--show-missing-keys`, all untranslated keys are listed as well.@@ -41,7 +40,7 @@ python scripts/counter_translation.py --lang messages_fr_FR.propertiesFor scripts or CI pipelines, the output can be reduced to just the percentage value:```bash-python scripts/counter_translation.py --lang messages_fr_FR.properties --show-percentage+python scripts/counter_translation_v3.py --lang fr-FR --show-percentage```The console will then only print `87` (without the percent symbol or any extra text).@@ -55,10 +54,10 @@ The console will then only print `87` (without the percent symbol or any extra t## Integration in Pull RequestsWhenever translations are updated, this script should be executed.-The updated badges and the modified `ignore_translation.toml` should be committed together with the changed `messages_*.properties` files.+The updated badges and the modified `ignore_translation.toml` should be committed together with the changed `translation.toml` files.## Troubleshooting-- **File not found**: Check the path or use `--lang` with an absolute path.-- **Line error**: The script reports the specific line in both files—this usually means a missing `=` or an unmatched line.+- **File not found**: Check the path or use `--lang` with a valid locale or path.+- **Line error**: The script reports syntax errors in the TOML files.- **Incorrect percentages in README**: Make sure the script was run from the project root and that write permissions are available.diff --git a/ADDING_TOOLS.md b/docs/developer/ADDING_TOOLS.mdsimilarity index 100%rename from ADDING_TOOLS.mdrename to docs/developer/ADDING_TOOLS.mddiff --git a/devGuide/CODE_COMMENTS.md b/docs/developer/CODE_COMMENTS.mdsimilarity index 99%rename from devGuide/CODE_COMMENTS.mdrename to docs/developer/CODE_COMMENTS.mdindex d6f14338aa..66ffd8ce03 100644--- a/devGuide/CODE_COMMENTS.md+++ b/docs/developer/CODE_COMMENTS.md@@ -183,7 +183,7 @@ Findings are scoped to comment text that is new, not to lines git calls new, soreindenting or moving code does not resurface comments you did not write.The rules are the `RULES` object in-[`scripts/lint/comment-rules.mjs`](../scripts/lint/comment-rules.mjs); the exact+[`scripts/lint/comment-rules.mjs`](../../scripts/lint/comment-rules.mjs); the exactcondition for each is the predicate of the same name in that file, with thereadings it deliberately excludes beside it.diff --git a/DATABASE.md b/docs/developer/DATABASE.mdsimilarity index 100%rename from DATABASE.mdrename to docs/developer/DATABASE.mddiff --git a/DeveloperGuide.md b/docs/developer/DeveloperGuide.mdsimilarity index 99%rename from DeveloperGuide.mdrename to docs/developer/DeveloperGuide.mdindex d87406715b..5567104fd7 100644--- a/DeveloperGuide.md+++ b/docs/developer/DeveloperGuide.md@@ -131,7 +131,7 @@ Stirling-PDF can be packaged as a cross-platform desktop application using TauriUsing Taskfile: `task desktop:dev` (development) or `task desktop:build` (production build).-See [the frontend README](frontend/README.md#tauri) for detailed build instructions.+See [the frontend README](../../frontend/README.md#tauri) for detailed build instructions.## 5. Project Structure@@ -396,7 +396,7 @@ Important notes:6. Push your changes to your fork.7. Submit a pull request to the main repository.-8. See additional [contributing guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md).+8. See additional [contributing guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/.github/CONTRIBUTING.md).When you raise a PR:diff --git a/devGuide/EXCEPTION_HANDLING_GUIDE.md b/docs/developer/EXCEPTION_HANDLING_GUIDE.mdsimilarity index 100%rename from devGuide/EXCEPTION_HANDLING_GUIDE.mdrename to docs/developer/EXCEPTION_HANDLING_GUIDE.mddiff --git a/devGuide/FILE_HISTORY_SPECIFICATION.md b/docs/developer/FILE_HISTORY_SPECIFICATION.mdsimilarity index 100%rename from devGuide/FILE_HISTORY_SPECIFICATION.mdrename to docs/developer/FILE_HISTORY_SPECIFICATION.mddiff --git a/FILE_SHARING.md b/docs/developer/FILE_SHARING.mdsimilarity index 100%rename from FILE_SHARING.mdrename to docs/developer/FILE_SHARING.mddiff --git a/devGuide/HowToAddNewLanguage.md b/docs/developer/HowToAddNewLanguage.mdsimilarity index 100%rename from devGuide/HowToAddNewLanguage.mdrename to docs/developer/HowToAddNewLanguage.mddiff --git a/HowToUseOCR.md b/docs/developer/HowToUseOCR.mdsimilarity index 100%rename from HowToUseOCR.mdrename to docs/developer/HowToUseOCR.mddiff --git a/devGuide/STORAGE_ENCRYPTION_AT_REST.md b/docs/developer/STORAGE_ENCRYPTION_AT_REST.mdsimilarity index 100%rename from devGuide/STORAGE_ENCRYPTION_AT_REST.mdrename to docs/developer/STORAGE_ENCRYPTION_AT_REST.mddiff --git a/docs/developer/STYLELINT.md b/docs/developer/STYLELINT.mdnew file mode 100644index 0000000000..f8b3cc9a9e--- /dev/null+++ b/docs/developer/STYLELINT.md@@ -0,0 +1,23 @@+# Stylelint++Stylesheets are linted by [stylelint](https://stylelint.io) using the single config at+`frontend/stylelint.config.mjs`. Run it through Task, not a local npm script:++```bash+task frontend:lint:css+```++The config deliberately carries only `no-duplicate-selectors`: `oxfmt` owns formatting and+`task frontend:lint:colors` owns the theme tokens, so stylelint is left with the rules that+catch real bugs. `ignoreFiles` excludes `**/dist/**`, `**/src-tauri/**` and the vendored+`editor/public/css/cookieconsent.css` (whose first-party customisation file is still linted).++To lint a single file:++```bash+cd frontend+npx stylelint editor/path/to/file.css+```++For full configuration options and rule customization, refer to the official documentation:+[https://stylelint.io](https://stylelint.io)\ No newline at end of filediff --git a/devGuide/USERS.md b/docs/developer/USERS.mdsimilarity index 100%rename from devGuide/USERS.mdrename to docs/developer/USERS.mddiff --git a/images/home-light.png b/docs/images/home-light.pngsimilarity index 100%rename from images/home-light.pngrename to docs/images/home-light.pngdiff --git a/images/home.png b/docs/images/home.pngsimilarity index 100%rename from images/home.pngrename to docs/images/home.pngdiff --git a/SHARED_SIGNING.md b/docs/security/SHARED_SIGNING.mdsimilarity index 100%rename from SHARED_SIGNING.mdrename to docs/security/SHARED_SIGNING.mddiff --git a/WINDOWS_SIGNING.md b/docs/security/WINDOWS_SIGNING.mdsimilarity index 100%rename from WINDOWS_SIGNING.mdrename to docs/security/WINDOWS_SIGNING.mddiff --git a/frontend/editor/src/portal/api/storageEncryption.ts b/frontend/editor/src/portal/api/storageEncryption.tsindex 151032a703..2721fcd400 100644--- a/frontend/editor/src/portal/api/storageEncryption.ts+++ b/frontend/editor/src/portal/api/storageEncryption.ts@@ -9,11 +9,11 @@ import { apiClient, HttpError } from "@portal/api/http";const BASE = "/api/v1/admin/storage-encryption";/**- * Runbook sections the panel links to. These point at the devGuide until the- * encryption-at-rest pages are published on docs.stirlingpdf.com.+ * Runbook sections the panel links to. These point at the in-repo runbook until+ * the encryption-at-rest pages are published on docs.stirlingpdf.com.*/const RUNBOOK =- "https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/STORAGE_ENCRYPTION_AT_REST.md";+ "https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/developer/STORAGE_ENCRYPTION_AT_REST.md";const section = (anchor: string) => `${RUNBOOK}#${anchor}`;export const RUNBOOK_BACKUP = section("backing-up-the-master-key");export const RUNBOOK_ROTATION = section("rotating-the-master-key");diff --git a/launch4jConfig.xml b/launch4jConfig.xmldeleted file mode 100644index 8a2a402e78..0000000000--- a/launch4jConfig.xml+++ /dev/null@@ -1,36 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<launch4jConfig>- <dontWrapJar>false</dontWrapJar>- <headerType>console</headerType>- <jar>.\build\libs\S-PDF-0.10.1.jar</jar>- <outfile>.\Stirling-PDF.exe</outfile>- <errTitle>Please download Java17</errTitle>- <cmdLine></cmdLine>- <chdir>.</chdir>- <priority>normal</priority>- <downloadUrl>https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.exe</downloadUrl>- <supportUrl></supportUrl>- <stayAlive>false</stayAlive>- <restartOnCrash>false</restartOnCrash>- <manifest></manifest>- <icon>./app/core/src/main/resources/static/favicon.ico</icon>- <var>BROWSER_OPEN=true</var>- <singleInstance>- <mutexName>Stirling-PDF</mutexName>- <windowTitle>Stirling-PDF</windowTitle>- </singleInstance>- <jre>- <path>%JAVA_HOME%;%PATH%</path>- <requiresJdk>false</requiresJdk>- <requires64Bit>false</requires64Bit>- <minVersion>17</minVersion>- <maxVersion></maxVersion>- </jre>- <messages>- <startupErr>An error occurred while starting Stirling-PDF</startupErr>- <jreNotFoundErr>This application requires a Java Runtime Environment, Please download Java 17.</jreNotFoundErr>- <jreVersionErr>You are running the wrong version of Java, Please download Java 17.</jreVersionErr>- <launcherErr>Java is corrupted. Please uninstall and then install Java 17.</launcherErr>- <instanceAlreadyExistsMsg>Stirling-PDF is already running.</instanceAlreadyExistsMsg>- </messages>-</launch4jConfig>diff --git a/scripts/counter_translation_v3.py b/scripts/counter_translation_v3.pyindex 17f62e2758..9f100f6b4e 100644--- a/scripts/counter_translation_v3.py+++ b/scripts/counter_translation_v3.py@@ -108,7 +108,7 @@ def write_readme(progress_list: list[tuple[str, int]]) -> None:None"""with open(- os.path.join(os.getcwd(), "devGuide", "HowToAddNewLanguage.md"),+ os.path.join(os.getcwd(), "docs", "developer", "HowToAddNewLanguage.md"),encoding="utf-8",) as file:content = file.readlines()@@ -124,7 +124,7 @@ def write_readme(progress_list: list[tuple[str, int]]) -> None:)with open(- os.path.join(os.getcwd(), "devGuide", "HowToAddNewLanguage.md"),+ os.path.join(os.getcwd(), "docs", "developer", "HowToAddNewLanguage.md"),"w",encoding="utf-8",newline="\n",diff --git a/scripts/lint/comment-lint.mjs b/scripts/lint/comment-lint.mjsindex 55b0cb4039..b3a7c0fba4 100644--- a/scripts/lint/comment-lint.mjs+++ b/scripts/lint/comment-lint.mjs@@ -1,6 +1,6 @@#!/usr/bin/env node-// comment-lint - the comment-quality gate. Standard: devGuide/CODE_COMMENTS.md+// comment-lint - the comment-quality gate. Standard: docs/developer/CODE_COMMENTS.md//// Owns .java and engine .py directly, and delegates .ts/.tsx to oxlint (see// comment-lint-oxlint-plugin.mjs) so the frontend is judged against real comment@@ -611,7 +611,7 @@ function publish(findings, scope) {}process.stdout.write(- "\nThe standard is devGuide/CODE_COMMENTS.md. A comment must carry information the\n" ++ "\nThe standard is docs/developer/CODE_COMMENTS.md. A comment must carry information the\n" +"code cannot; if a reader could derive it from the code in front of them, delete it.\n" +"If a finding is genuinely wrong, put `comment-lint-allow: CMT00X` on the line above.\n",);diff --git a/scripts/lint/comment-rules.mjs b/scripts/lint/comment-rules.mjsindex 4211be9689..6080b93ee0 100644--- a/scripts/lint/comment-rules.mjs+++ b/scripts/lint/comment-rules.mjs@@ -4,7 +4,7 @@// has only lines). Neither engine ever scans the other's files, so the two can// differ in precision without producing contradictory findings on one file.//-// The standard these rules enforce is devGuide/CODE_COMMENTS.md. Changing a rule+// The standard these rules enforce is docs/developer/CODE_COMMENTS.md. Changing a rule// here without changing that document leaves the repo with two answers.//// Between them the engines read every comment form the repo writes: // and /* */,