26b162c8dc
This was found useful by @Bramas when building a Dockerfile of the web app itself. See https://github.com/ente-io/ente/pull/1065. Now, the GIT_SHA environment variable can just be undefined if we're not in a git repository, and the code using it deals with that case explicitly. **Tested by** Temporarily inverted the isDevBuild flag, tehn 1. Ran the build normally and verified that the SHA continued to appear in the logs. 2. Ran the build after copying to a standalone folder without an associated git repository and verified that the SHA was skipped without causing the build to fail. |
||
---|---|---|
.. | ||
docs | ||
.gitignore | ||
.prettierrc.json | ||
package.json | ||
README.md | ||
yarn.lock |
Docs
Help and documentation for Ente's products.
You can find the live version of these at help.ente.io.
Quick edits
You can edit these files directly on GitHub and open a pull request. help.ente.io will automatically get updated with your changes in a few minutes after your pull request is merged.
Running locally
The above workflow is great since it doesn't require you to setup anything on your local machine. But if you plan on contributing frequently, you might find it easier to run things locally.
Clone this repository
git clone https://github.com/ente-io/ente
Change to this directory
cd ente/docs
Install dependencies
yarn install
Then start a local server
yarn dev
For an editor, VSCode is a good choice. Also install the Prettier extension for VSCode, and set VSCode to format on save. This way the editor will automatically format and wrap the text using the project's standard, so you can just focus on the content.
Have fun!
If you're unsure about how to do something, just look around in the other files and copy paste whatever seems to match the look of what you're trying to do. And remember, writing docs should not be a chore, have fun!