Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/site/img/og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
276 changes: 239 additions & 37 deletions docs/site/index.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/site/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> Strapi 5 plugin (npm: magic-editor-x, plugin id: magic-editor-x, MIT) that adds an Editor.js custom field `plugin::magic-editor-x.richtext` with Media Library uploads, custom blocks (Settings or code), tables with merged cells, math (MathML) and footnotes, templates, patterns and synced blocks, comments on blocks and selected text with @mentions and notifications, block suggestions, version history, an audit trail, live collaboration across several Node processes, rendered Content API and GraphQL output, React and Vue components, and optional AI (Anthropic, OpenAI or an OpenAI-compatible server) and LanguageTool assistants that use the owner's servers.

Requirements: Strapi `^5.38.0` (CI builds and tests 5.38.0 and 5.63.0), Node.js `>=22.12.0 <=26.x.x`, SQLite, PostgreSQL or MySQL/MariaDB. Install with `npm install magic-editor-x`; the current version is on npm.

Key facts for code generation:

- The field stores an Editor.js object `{ time, blocks: [{ id, type, data, tunes? }], version }`. Entries saved with 1.x may hold a JSON string until saved again; the Content API parses it when `api.autoParseJSON` is on (default).
Expand Down Expand Up @@ -33,13 +35,16 @@ Key facts for code generation:

## Docs

- [Documentation site](https://schero94.github.io/Magic-Editor-X/): overview, screenshots, install, configuration, collaboration, AI, Content API output, permissions, security, FAQ
- [README](https://github.com/Schero94/Magic-Editor-X/blob/main/README.md): install, configuration, collaboration on several instances, AI provider, grammar check, templates, comments, suggestions, audit trail, data format, rendering, Content API and GraphQL output, routes, permissions, security, migration
- [Custom blocks in code](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/guides/custom-blocks-sdk.md), [React](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/guides/react.md), [Vue and Nuxt](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/guides/vue-nuxt.md), [Astro](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/guides/astro.md): guides
- [AGENTS.md](https://github.com/Schero94/Magic-Editor-X/blob/main/AGENTS.md): exact API contract, collaboration protocol, collaboration document model, rules for coding agents
- [llms-full.txt](https://schero94.github.io/Magic-Editor-X/llms-full.txt): README and AGENTS.md in one file

## Optional

- [npm package](https://www.npmjs.com/package/magic-editor-x)
- [Plugin hub overview](https://schero94.github.io/plugins/magic-editor-x/)
- [CHANGELOG](https://github.com/Schero94/Magic-Editor-X/blob/main/CHANGELOG.md): versions and the migration guide from 1.x
- [Security review 2.5](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/security-audit-2.5.md), [2.4](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/security-audit-2.4.md) and [2.3](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/security-audit-2.3.md): findings and controls of the new surfaces
- [Engine decision](https://github.com/Schero94/Magic-Editor-X/blob/main/docs/engine-decision.md): why the plugin stays on Editor.js for 2.x
Expand Down
26 changes: 26 additions & 0 deletions docs/site/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Magic Editor X documentation. Search engines and AI crawlers are welcome.
User-agent: *
Allow: /

User-agent: Googlebot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

Sitemap: https://schero94.github.io/Magic-Editor-X/sitemap.xml
241 changes: 45 additions & 196 deletions docs/site/site-extra.css
Original file line number Diff line number Diff line change
@@ -1,227 +1,76 @@
/*
* Magic Editor X page styles on top of the shared theme (site.css, kept byte-identical to the
* workbench template). Adds dark mode, the hero screenshot, steps, the gallery and small
* layout helpers. Colours are tokens so light and dark stay in one place.
*/
/* Magic Editor X page styles. site.css is the shared theme, byte-identical in
every plugin docs site; this file holds the Magic Editor X accent (taken from
the plugin icon) and the components that exist on this page alone. */

:root {
--link: #4932c6;
--link-hover: #2d1d89;
--nav-text: #4b5367;
--accent-soft: #f0edff;
--number-ink: #3821a1;
--number-bg: #eee9ff;
--callout-ink: #3c465c;
--callout-bg: #e9f9f9;
--warning-line: #b26b00;
--warning-bg: #fff6e4;
--th-ink: #40495f;
--th-bg: #f7f8fb;
--td-ink: #4b5468;
--shot-shadow: 0 18px 50px rgba(26, 32, 60, 0.18);
--accent: #15803d;
--accent-ink: #14713a;
--on-accent: #ffffff;
--accent-soft: #e3f4e8;
--hero-accent: #86d99f;
}

@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--ink: #eef0f8;
--muted: #a9b0c4;
--line: #2c3350;
--paper: #10131f;
--white: #181c2c;
--link: #b3a8ff;
--link-hover: #d6cfff;
--nav-text: #c1c7d8;
--accent-soft: #262a48;
--number-ink: #d9d2ff;
--number-bg: #2e2a5c;
--callout-ink: #d3dae8;
--callout-bg: #13302f;
--warning-line: #e4a83b;
--warning-bg: #33280f;
--th-ink: #d0d5e4;
--th-bg: #1d2236;
--td-ink: #c3c9da;
--shot-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
--accent: #6fd38f;
--accent-ink: #84dda0;
--on-accent: #0e1016;
--accent-soft: #16301f;
}
}

a {
color: var(--link);
}
a:hover {
color: var(--link-hover);
}
.side-nav a {
color: var(--nav-text);
}
.side-nav a:hover {
background: var(--accent-soft);
}
.number {
color: var(--number-ink);
background: var(--number-bg);
}
.callout {
color: var(--callout-ink);
background: var(--callout-bg);
}
.callout.warning {
border-color: var(--warning-line);
background: var(--warning-bg);
}
th {
color: var(--th-ink);
background: var(--th-bg);
}
td {
color: var(--td-ink);
}
.link-list a {
background: var(--white);
}
.top-links a:focus-visible,
.hero a:focus-visible {
outline-color: var(--lime);
}

/* Hero: copy on the left, product screenshot on the right; stacked below 1100 px. */
.hero-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
gap: clamp(1.5rem, 4vw, 3rem);
align-items: center;
}
.hero-shot {
margin: 0;
}
.hero-shot img {
display: block;
width: 100%;
height: auto;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 14px;
box-shadow: 0 24px 60px rgba(5, 8, 20, 0.45);
}
.hero-install {
display: inline-flex;
max-width: 100%;
margin-top: 1.1rem;
padding: 0.55rem 0.8rem;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
color: #f1f3fa;
background: rgba(9, 13, 27, 0.45);
font-size: 0.9rem;
overflow-wrap: anywhere;
}

/* Three numbered steps. */
.steps {
/* Install: three numbered cards side by side instead of a plain list. */
.section .steps {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin: 0;
gap: var(--space-4);
max-width: none;
padding: 0;
list-style: none;
}
.steps .card p + p {
margin-top: 0.5rem;
}

/* Screenshot gallery. */
.gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.25rem;
}
.shot {
.steps > li.card {
margin: 0;
padding: var(--space-5);
}
.shot img {
display: block;
width: 100%;
height: auto;
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shot-shadow);
}
.shot figcaption {
margin-top: 0.55rem;
color: var(--muted);
font-size: 0.86rem;
}
.shot.wide {
grid-column: 1 / -1;
.steps .card h3 {
margin-top: 0;
}

/* Phone screenshots stay phone-sized inside the two-column gallery. */
.shot.phone img {
max-width: 300px;
margin: 0 auto;
}

/* Small tables inside cards and readable code inside tables. */
td code,
th code {
overflow-wrap: anywhere;
}
.section h3 {
margin: 1.4rem 0 0.4rem;
font-size: 1.08rem;
letter-spacing: -0.015em;
}
details {
margin: 0 0 0.6rem;
padding: 0.75rem 1rem;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--white);
}
details summary {
cursor: pointer;
font-weight: 700;
}
details p {
margin: 0.6rem 0 0;
color: var(--muted);
}
.check-list li {
margin-bottom: 0.4rem;
}

@media (max-width: 1100px) {
.hero-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 820px) {
.steps,
.gallery {
.section .steps {
grid-template-columns: 1fr;
}
}

.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
/* The install command sits in its own box; the inline-code chip inside it is not needed. */
.hero-install code {
padding: 0;
background: none;
}

/* Project status badges in the hero: same row as the README. */
.shields {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin: 1.25rem 0 0;
/* The long plugin name and four top links do not fit one row on small phones:
npm and the changelog stay in the hero badges and the footer. */
.brand span {
white-space: nowrap;
}
.shields a {
display: inline-flex;
@media (max-width: 480px) {
.top-links a[href$='CHANGELOG.md'],
.top-links a[href^='https://www.npmjs.com'] {
display: none;
}
}
.shields img {
display: block;
width: auto;
height: 20px;

/* Config keys stay on one line on wide screens; the table scrolls in its wrapper. */
@media (min-width: 821px) {
td code,
th code {
overflow-wrap: normal;
white-space: nowrap;
}
}
Loading