mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Renames project content from Lumina to Nemera
This commit is contained in:
1 parent
0f659a4877
commit
c583c9327c
6127 files changed
+41884
-41884
No files matched your search
+12
-12
@@ -7,9 +7,9 @@
|
||||
1. [Introduction](../index.md)
|
||||
2. [Installation](../installation/index.md)
|
||||
|
||||
**Using Lumina**
|
||||
**Using Nemera**
|
||||
|
||||
3. [Using Lumina](../using-lumina/index.md)
|
||||
3. [Using Nemera](../using-nemera/index.md)
|
||||
|
||||
**Administration**
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
5. [Plugins](../plugins/index.md)
|
||||
6. **Themes**
|
||||
|
||||
The web client is a themed shell. Every page it shows is drawn from the templates of the active theme, so a theme decides how Lumina looks, how it is laid out, and how its navigation is arranged. A theme is a portable ZIP archive of HTML templates and static assets, and swapping one in can change the entire feel of the application without a change to its code, because some of us still find flat interfaces sterile and boring. :)
|
||||
The web client is a themed shell. Every page it shows is drawn from the templates of the active theme, so a theme decides how Nemera looks, how it is laid out, and how its navigation is arranged. A theme is a portable ZIP archive of HTML templates and static assets, and swapping one in can change the entire feel of the application without a change to its code, because some of us still find flat interfaces sterile and boring. :)
|
||||
|
||||
A theme changes how Lumina looks and how its pages are structured. It cannot add features: it shapes what is already there.
|
||||
A theme changes how Nemera looks and how its pages are structured. It cannot add features: it shapes what is already there.
|
||||
|
||||
## What a theme is
|
||||
|
||||
@@ -33,16 +33,16 @@ The API server stores installed themes and serves their templates and assets. Th
|
||||
|
||||
## Bundled themes
|
||||
|
||||
Lumina ships with two themes, both installed automatically at startup:
|
||||
Nemera ships with two themes, both installed automatically at startup:
|
||||
|
||||
- **`lumina-default`**, the theme Lumina falls back to when no other theme is selected.
|
||||
- **`nemera-default`**, the theme Nemera falls back to when no other theme is selected.
|
||||
- **`editorial-paper`**, a clean, readable theme that is also the reference to start from when you write your own.
|
||||
|
||||
A bundled theme that goes missing or becomes corrupted is restored automatically from its shipped archive the next time the server starts, unless you deliberately deleted it. This means a bundled theme always comes back on its own.
|
||||
|
||||
## Selecting the current theme
|
||||
|
||||
Administrators choose the active theme from the administration Themes page. The page lists every installed theme with a preview thumbnail taken from the theme's own manifest, and marks where each one came from, whether it is bundled with Lumina or installed by a user. Selecting a theme makes it the one every page is rendered with.
|
||||
Administrators choose the active theme from the administration Themes page. The page lists every installed theme with a preview thumbnail taken from the theme's own manifest, and marks where each one came from, whether it is bundled with Nemera or installed by a user. Selecting a theme makes it the one every page is rendered with.
|
||||
|
||||
## Installing a theme
|
||||
|
||||
@@ -52,12 +52,12 @@ Installing a theme whose id already exists replaces the files of that theme. A f
|
||||
|
||||
## Managing installed themes
|
||||
|
||||
Beyond selecting and installing, the Themes page lets an administrator download any theme back out as a ZIP, delete a theme, and restore a bundled one. Deleting follows a few rules that keep Lumina from ever ending up themeless:
|
||||
Beyond selecting and installing, the Themes page lets an administrator download any theme back out as a ZIP, delete a theme, and restore a bundled one. Deleting follows a few rules that keep Nemera from ever ending up themeless:
|
||||
|
||||
- Only administrators can delete a theme.
|
||||
- The last remaining bundled theme cannot be deleted.
|
||||
- When the active theme is deleted, another available theme is activated automatically, preferring the configured default.
|
||||
- Bundled themes are deleted softly: their files are removed but their shipped archive is kept, so they can be restored. Themes you installed yourself are removed entirely, because Lumina does not keep a copy of them.
|
||||
- Bundled themes are deleted softly: their files are removed but their shipped archive is kept, so they can be restored. Themes you installed yourself are removed entirely, because Nemera does not keep a copy of them.
|
||||
|
||||
## Theme data caching
|
||||
|
||||
@@ -65,7 +65,7 @@ Each user has a setting, `Enable theme caching`, on by default, that controls wh
|
||||
|
||||
## Creating a theme
|
||||
|
||||
Anyone can write a theme, and it is the intended way to change Lumina's look. A theme is a directory with `theme.json` at its root, a `templates/` directory and an `assets/` directory, compressed into a ZIP with the manifest at the root of the archive, not nested in an extra folder. The bundled `editorial-paper` theme follows exactly this shape and is the best starting point.
|
||||
Anyone can write a theme, and it is the intended way to change Nemera's look. A theme is a directory with `theme.json` at its root, a `templates/` directory and an `assets/` directory, compressed into a ZIP with the manifest at the root of the archive, not nested in an extra folder. The bundled `editorial-paper` theme follows exactly this shape and is the best starting point.
|
||||
|
||||
### The manifest
|
||||
|
||||
@@ -86,7 +86,7 @@ The manifest is a small JSON object:
|
||||
|
||||
Templates use a small, Mustache-style syntax: `{{name}}` prints a value, escaped; `{{{name}}}` or `{{&name}}` prints it raw; `{{#name}}...{{/name}}` repeats or shows a section; `{{^name}}...{{/name}}` shows a section when a value is absent. A theme provides a layout that wraps every page, a navigation menu, a server unreachable banner, an optional 404 page, page templates for the pages it wants to restyle, and optionally templates for the file system browser component.
|
||||
|
||||
The server unreachable banner is the strip that appears at the bottom of the window while Lumina cannot reach its server. A theme renders it from its own `shared/server-unreachable-banner` template, or from the built-in fallback when it does not provide one, and the layout places it through the `serverUnreachableBanner` field. The theme owns the markup, the placement, the position, the size, the background and everything else about the banner; it only has to keep the `data-server-unreachable-banner` hook on its root element and hide and show that element with the `is-visible` class. The [theming guide](../../technical/theming/Theming.md) describes the message field, the fallback markup and the rest of the contract.
|
||||
The server unreachable banner is the strip that appears at the bottom of the window while Nemera cannot reach its server. A theme renders it from its own `shared/server-unreachable-banner` template, or from the built-in fallback when it does not provide one, and the layout places it through the `serverUnreachableBanner` field. The theme owns the markup, the placement, the position, the size, the background and everything else about the banner; it only has to keep the `data-server-unreachable-banner` hook on its root element and hide and show that element with the `is-visible` class. The [theming guide](../../technical/theming/Theming.md) describes the message field, the fallback markup and the rest of the contract.
|
||||
|
||||
A page is matched to a template by a key that mirrors the page's path, so the books page looks for `templates/library/written-content-library/book-library/books/index.html`, or a template at a parent scope when the exact one is missing. When a theme has no template for a page, the application renders that page itself with its own built-in view, so a theme never has to cover everything.
|
||||
|
||||
@@ -115,4 +115,4 @@ A theme is treated as untrusted input, but it is not powerless:
|
||||
|
||||
- Values printed with `{{name}}` are HTML-escaped, so a theme cannot inject markup through a model value, and the template engine cannot execute code.
|
||||
- Paths are normalized and confined, so a theme cannot reach outside its own pack, and an oversized or over-populated archive is refused.
|
||||
- A theme can, however, contain JavaScript, and that JavaScript runs in the browser of every user who views it. A malicious theme is a real risk. Only install themes from sources you trust, or read their code first. The themes bundled with Lumina are written and reviewed by the project and are safe to use.
|
||||
- A theme can, however, contain JavaScript, and that JavaScript runs in the browser of every user who views it. A malicious theme is a real risk. Only install themes from sources you trust, or read their code first. The themes bundled with Nemera are written and reviewed by the project and are safe to use.
|
||||
Reference in new issue
Block a user