Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prose wrap using Prettier

Manav Rathi84c0e7a78afb
diff --git a/.prettierrc.json b/.prettierrc.json
index 0a02bcefda..8af31cded5 100644
--- a/.prettierrc.json
+++ b/.prettierrc.json
@@ -1,3 +1,4 @@
{
- "tabWidth": 4
+ "tabWidth": 4,
+ "proseWrap": "always"
}
diff --git a/README.md b/README.md
index f3743708a3..fe5119de2f 100644
--- a/README.md
+++ b/README.md
@@ -15,3 +15,24 @@ Then start a local server
```sh
yarn dev
```
+
+## Workflow
+
+You can edit these files directly on GitHub and open a pull request. That is the
+easiest workflow to get started without needing to install anything on your
+local machine.
+
+If you plan on contributing frequently, we recommend using an editor. VSCode is
+a good choice. Also install the Prettier extension for VSCode, and set VSCode to
+format on save. This will use the standard formatting and text wrapping options
+for this project, so you can just focus on the content.
+
+We currently don't enforce the prettier formatting to make it easy for people
+unfamiliar with programming to also be able to make edits from GitHub directly.
+
+This is a common theme - unlike the rest of the codebase where expect some
+baseline understanding of the tools involved, the docs are meant to be a place
+for non-technical people to also provide their input. The reason for this is not
+to increase the number of docs, but to bring more diversity to them. Such
+diversity of viewpoints is essential for evolving documents that can be of help
+to people of varying level of familiarity with tech.
diff --git a/package.json b/package.json
index bff45f0e33..23f58d1cc9 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,8 @@
"scripts": {
"dev": "vitepress dev docs",
"build": "vitepress build docs",
- "preview": "vitepress preview docs"
+ "preview": "vitepress preview docs",
+ "pretty": "prettier --write ."
},
"devDependencies": {
"prettier": "^3",