aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-07-21 21:14:00 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-07-21 21:14:00 +0300
commit51805bae8222d8b0d209d44e9539385a2da08f3d (patch)
treed0f7d506bed9004b20ef68b44c10c8470c8303f2
parentb700ba9dff2a85da05927f531a7a78fe47042009 (diff)
downloadpleroma-51805bae8222d8b0d209d44e9539385a2da08f3d.tar.gz
Update docs
-rw-r--r--config/config.exs2
-rw-r--r--config/description.exs8
-rw-r--r--docs/configuration/cheatsheet.md26
3 files changed, 22 insertions, 14 deletions
diff --git a/config/config.exs b/config/config.exs
index b53660ce4..7654da9ac 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -633,8 +633,6 @@ config :pleroma, Pleroma.ActivityExpiration, enabled: true
config :pleroma, Pleroma.Plugs.RemoteIp, enabled: true
-config :pleroma, :static_fe, enabled: false
-
config :pleroma, :web_cache_ttl,
activity_pub: nil,
activity_pub_question: 30_000
diff --git a/config/description.exs b/config/description.exs
index 378b28326..d573753d6 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -3446,9 +3446,9 @@ config :pleroma, :config_description, [
%{
key: :static,
type: :boolean,
- description: ""
- description: "Render profiles and posts using server-generated HTML that is viewable without using JavaScript where possible"
- },
+ description:
+ "Render profiles and posts using server-generated HTML that is viewable without using JavaScript where possible"
+ }
]
- },
+ }
]
diff --git a/docs/configuration/cheatsheet.md b/docs/configuration/cheatsheet.md
index 6c1babba3..be74deb1a 100644
--- a/docs/configuration/cheatsheet.md
+++ b/docs/configuration/cheatsheet.md
@@ -204,14 +204,6 @@ config :pleroma, :frontend_configurations,
These settings **need to be complete**, they will override the defaults.
-### :static_fe
-
-Render profiles and posts using server-generated HTML that is viewable without using JavaScript.
-
-Available options:
-
-* `enabled` - Enables the rendering of static HTML. Defaults to `false`.
-
### :assets
This section configures assets to be used with various frontends. Currently the only option
@@ -1019,3 +1011,21 @@ Note: setting `restrict_unauthenticated/timelines/local` to `true` has no practi
Control favicons for instances.
* `enabled`: Allow/disallow displaying and getting instances favicons
+
+## Frontend management
+
+Frontends in Pleroma are swappable - you can [install different versions of different frontends](../administration/CLI_tasks/frontend.md) and specify which one to use here.
+There are 4 types of frontends: `primary`, `mastodon`, `admin` and `static`. While `static` is a special unswappable case which can only be enabled or disabled, the rest of the frontends are represented in a form of `name` and `ref`.
+
+### :frontends
+
+* `primary`: Primary frontend, the one that is served for all pages by default
+ * `name`: name of the installed primary frontend, `none` for headless
+ * `ref`: reference commit of the installed primary frontend
+* `mastodon`: Mastodon frontend that users can switch to from Primary
+ * `name`: Name of the installed Mastodon frontend (currently supported: \"mastodon\" or \"none\")
+ * `ref`: reference commit of the installed Mastodon frontend to be used
+* `admin`: Admin frontend
+ * `name`: Name of the installed Admin frontend (currently supported: \"admin\" or \"none\")
+ * `ref`: reference commit of the installed Admin frontend to be used
+* `static`: if set to `true`, this will render profiles and posts using server-generated HTML that is viewable without using JavaScript. Defaults to `false`.