mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -05:00
📚 Update documentation.
This commit is contained in:
parent
b1b1f1f579
commit
36eb48c649
4 changed files with 46 additions and 60 deletions
|
@ -34,7 +34,7 @@ sudo usermod -aG docker $USER
|
|||
|
||||
This will make use the docker without `sudo` command all the time.
|
||||
|
||||
NOTE: probably you will need to relogin again to make this change
|
||||
NOTE: probably you will need to re-login again to make this change
|
||||
take effect.
|
||||
|
||||
|
||||
|
@ -52,5 +52,10 @@ wget https://raw.githubusercontent.com/penpot/penpot/develop/docker/images/docke
|
|||
And then:
|
||||
|
||||
```bash
|
||||
docker-compose -p penpotest -f docker-compose.yaml up
|
||||
docker-compose -p penpot -f docker-compose.yaml up
|
||||
```
|
||||
|
||||
The docker compose file contains the essential configuration for
|
||||
getting the application running, and many essential configurations
|
||||
already explained in comments. All other configuration options are
|
||||
explained in [management guide](./05-Management-Guide.md).
|
||||
|
|
|
@ -137,7 +137,7 @@ On the REPL you have this helper functions:
|
|||
- `(stop)`: stops the environment
|
||||
- `(restart)`: stops, reload and start again.
|
||||
|
||||
And many other that are defined in the `tests/user.clj` file.
|
||||
And many other that are defined in the `dev/user.clj` file.
|
||||
|
||||
If some exception is raised when code is reloaded, just use
|
||||
`(repl/refresh-all)` in order to finish correctly the code swaping and
|
||||
|
|
|
@ -280,23 +280,4 @@ allow the system know when to show the plural:
|
|||
;; => "1 project"
|
||||
```
|
||||
|
||||
For React components, you have `app.util.i18n/use-locale` hook
|
||||
and the `app.util.i18n/t` function:
|
||||
|
||||
```clojure
|
||||
(require '[app.util.i18n :as i18n :refer [t]])
|
||||
|
||||
(mf/defc my-component
|
||||
[props]
|
||||
(let [locale (i18n/use-locale)]
|
||||
[:div
|
||||
[:span (t locale "auth.email-or-username")]]))
|
||||
```
|
||||
|
||||
You can use the general purpose function in React component but when
|
||||
language is changed the component will not be rerendered
|
||||
automatically.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,47 +16,47 @@ environment variables.
|
|||
This is a probably incomplete list of available options (with
|
||||
respective defaults):
|
||||
|
||||
- `APP_HTTP_SERVER_PORT=6060`
|
||||
- `APP_PUBLIC_URI=http://localhost:3449`
|
||||
- `APP_DATABASE_USERNAME=` (default undefined, used from uri)
|
||||
- `APP_DATABASE_PASSWORD=` (default undefined, used from uri)
|
||||
- `APP_DATABASE_URI=postgresql://127.0.0.1/penpot`
|
||||
- `APP_MEDIA_DIRECTORY=resources/public/media`
|
||||
- `APP_MEDIA_URI=http://localhost:6060/media/`
|
||||
- `APP_SMTP_DEFAULT_REPLY_TO=no-reply@example.com`
|
||||
- `APP_SMTP_DEFAULT_FROM=no-reply@example.com`
|
||||
- `APP_SMTP_ENABLED=` (default false, prints to console)
|
||||
- `APP_SMTP_HOST=` (default undefined)
|
||||
- `APP_SMTP_PORT=` (default undefined)
|
||||
- `APP_SMTP_USER=` (default undefined)
|
||||
- `APP_SMTP_PASSWORD=` (default undefined)
|
||||
- `APP_SMTP_SSL=` (default to `false`)
|
||||
- `APP_SMTP_TLS=` (default to `false`)
|
||||
- `APP_REDIS_URI=redis://localhost/0`
|
||||
- `APP_REGISTRATION_ENABLED=true`
|
||||
- `APP_REGISTRATION_DOMAIN_WHITELIST=""` (comma-separated domains, defaults to `""` which means that all domains are allowed)
|
||||
- `APP_DEBUG_HUMANIZE_TRANSIT=true`
|
||||
- `PENPOT_HTTP_SERVER_PORT=6060`
|
||||
- `PENPOT_PUBLIC_URI=http://localhost:3449`
|
||||
- `PENPOT_DATABASE_USERNAME=<username>`
|
||||
- `PENPOT_DATABASE_PASSWORD=<password>`
|
||||
- `PENPOT_DATABASE_URI=postgresql://127.0.0.1/penpot`
|
||||
- `PENPOT_STORAGE_FS_DIRECTORY=resources/public/assets`
|
||||
- `PENPOT_LOCAL_ASSETS_URI=http://localhost:6060/assets/internal`
|
||||
- `PENPOT_SMTP_DEFAULT_REPLY_TO=no-reply@example.com`
|
||||
- `PENPOT_SMTP_DEFAULT_FROM=no-reply@example.com`
|
||||
- `PENPOT_SMTP_ENABLED=` (default false, prints to console)
|
||||
- `PENPOT_SMTP_HOST=` (default undefined)
|
||||
- `PENPOT_SMTP_PORT=` (default undefined)
|
||||
- `PENPOT_SMTP_USER=` (default undefined)
|
||||
- `PENPOT_SMTP_PASSWORD=` (default undefined)
|
||||
- `PENPOT_SMTP_SSL=` (default to `false`)
|
||||
- `PENPOT_SMTP_TLS=` (default to `false`)
|
||||
- `PENPOT_REDIS_URI=redis://localhost/0`
|
||||
- `PENPOT_REGISTRATION_ENABLED=true`
|
||||
- `PENPOT_REGISTRATION_DOMAIN_WHITELIST=""` (comma-separated domains, defaults to `""` which means that all domains are allowed)
|
||||
- `PENPOT_DEBUG=true`
|
||||
|
||||
- `APP_LDAP_AUTH_HOST=` (default undefined)
|
||||
- `APP_LDAP_AUTH_PORT=` (default undefined)
|
||||
- `APP_LDAP_AUTH_VERSION=3`
|
||||
- `APP_LDAP_BIND_DN=` (default undefined)
|
||||
- `APP_LDAP_BIND_PASSWORD=` (default undefined)
|
||||
- `APP_LDAP_AUTH_SSL=` (default `false`)
|
||||
- `APP_LDAP_AUTH_STARTTLS=` (default `false`)
|
||||
- `APP_LDAP_AUTH_BASE_DN=` (default undefined)
|
||||
- `APP_LDAP_AUTH_USER_QUERY=(|(uid=$username)(mail=$username))`
|
||||
- `APP_LDAP_AUTH_USERNAME_ATTRIBUTE=uid`
|
||||
- `APP_LDAP_AUTH_EMAIL_ATTRIBUTE=mail`
|
||||
- `APP_LDAP_AUTH_FULLNAME_ATTRIBUTE=displayName`
|
||||
- `APP_LDAP_AUTH_AVATAR_ATTRIBUTE=jpegPhoto`
|
||||
- `PENPOT_LDAP_AUTH_HOST=` (default undefined)
|
||||
- `PENPOT_LDAP_AUTH_PORT=` (default undefined)
|
||||
- `PENPOT_LDAP_AUTH_VERSION=3`
|
||||
- `PENPOT_LDAP_BIND_DN=` (default undefined)
|
||||
- `PENPOT_LDAP_BIND_PASSWORD=` (default undefined)
|
||||
- `PENPOT_LDAP_AUTH_SSL=` (default `false`)
|
||||
- `PENPOT_LDAP_AUTH_STARTTLS=` (default `false`)
|
||||
- `PENPOT_LDAP_AUTH_BASE_DN=` (default undefined)
|
||||
- `PENPOT_LDAP_AUTH_USER_QUERY=(|(uid=$username)(mail=$username))`
|
||||
- `PENPOT_LDAP_AUTH_USERNAME_ATTRIBUTE=uid`
|
||||
- `PENPOT_LDAP_AUTH_EMAIL_ATTRIBUTE=mail`
|
||||
- `PENPOT_LDAP_AUTH_FULLNAME_ATTRIBUTE=displayName`
|
||||
- `PENPOT_LDAP_AUTH_AVATAR_ATTRIBUTE=jpegPhoto`
|
||||
|
||||
- `APP_GITLAB_CLIENT_ID=` (default undefined)
|
||||
- `APP_GITLAB_CLIENT_SECRET=` (default undefined)
|
||||
- `APP_GITLAB_BASE_URI=` (default https://gitlab.com)
|
||||
- `PENPOT_GITLAB_CLIENT_ID=` (default undefined)
|
||||
- `PENPOT_GITLAB_CLIENT_SECRET=` (default undefined)
|
||||
- `PENPOT_GITLAB_BASE_URI=` (default https://gitlab.com)
|
||||
|
||||
- `APP_GITHUB_CLIENT_ID=` (default undefined)
|
||||
- `APP_GITHUB_CLIENT_SECRET=` (default undefined)
|
||||
- `PENPOT_GITHUB_CLIENT_ID=` (default undefined)
|
||||
- `PENPOT_GITHUB_CLIENT_SECRET=` (default undefined)
|
||||
|
||||
## REPL ##
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue