nimbi-cms 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/dist/nimbi-cms.cjs.js +743 -569
- package/dist/nimbi-cms.css +1 -1
- package/dist/nimbi-cms.es.js +5548 -4733
- package/dist/nimbi-cms.js +743 -569
- package/package.json +22 -8
- package/src/index.d.ts +18 -3
package/README.md
CHANGED
|
@@ -8,11 +8,11 @@ date: 2026-03-16
|
|
|
8
8
|
|
|
9
9
|
# nimbiCMS
|
|
10
10
|
|
|
11
|
-
Lightweight, lightspeed, SEO-first client-side
|
|
11
|
+
Lightweight, lightspeed, SEO-first client-side Content Management System
|
|
12
12
|
|
|
13
13
|
## The project
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
nimbiCMS is a client-side CMS for static sites that requires **no database, no server build step, and no backend**, just a bunch of Markdown or HTML pages and a minimalistic setup
|
|
16
16
|
|
|
17
17
|
Just drop your Markdown files into a folder, serve the site (GitHub Pages, S3, etc.), and the client will crawl the content, render Markdown to HTML, hook links, manage slugs and anchors, maintain navigation and search functionalities, and update SEO tags on the fly. All that while being compliant, fast and accesible!
|
|
18
18
|
|
|
@@ -40,8 +40,8 @@ The code lives at [https://github.com/AbelVM/nimbiCMS](https://github.com/AbelVM
|
|
|
40
40
|
- Simple theming (light/dark), Bulma and hightlight.js customization options.
|
|
41
41
|
- Simplified deliverables: regardless all the dynamic imports, the bundle is kept in one JS file and one CSS file
|
|
42
42
|
- Bundle is compact size
|
|
43
|
-
- JS file:
|
|
44
|
-
- CSS file:
|
|
43
|
+
- JS file: 243.74 kB, gzipped 70.62 kB (for UMD bundle)
|
|
44
|
+
- CSS file: 504.87 kB, gzipped 47.85 kB (includes Bulma)
|
|
45
45
|
- All the heavy work is managed by web workers to avoid hogging the main thread
|
|
46
46
|
- Pluggable architecture through the available hooks
|
|
47
47
|
- Fully typed and [documented](docs/README.md)
|
|
@@ -162,7 +162,7 @@ initCMS({ el: '#app', homePage: 'index.html' })
|
|
|
162
162
|
|
|
163
163
|
- `_navigation.md` — renders into the navbar; use Markdown links. Example nav markup:
|
|
164
164
|
|
|
165
|
-
```
|
|
165
|
+
```markdown
|
|
166
166
|
[Home](_home.md)
|
|
167
167
|
[Blog](blog.md)
|
|
168
168
|
[About](about.md)
|
|
@@ -186,7 +186,7 @@ Links are converted to hash‑based navigation (`?page=…`), preserving anchors
|
|
|
186
186
|
|---|---:|:---:|---|
|
|
187
187
|
| `el` | `string` \ `Element` | required | CSS selector or DOM element used as the mount target. |
|
|
188
188
|
| `contentPath` | `string` | `/content` | URL path to the content folder serving `.md`/`.html` files; normalized to a relative path with trailing slash. |
|
|
189
|
-
| `allowUrlPathOverrides` | `boolean` | `false` | Opt-in: when `true`, `contentPath`, `homePage`, and `
|
|
189
|
+
| `allowUrlPathOverrides` | `boolean` | `false` | Opt-in: when `true`, `contentPath`, `homePage`, `notFoundPage`, and `navigationPage` may be overridden using URL params. |
|
|
190
190
|
|
|
191
191
|
### Indexing and Search
|
|
192
192
|
|
|
@@ -202,8 +202,11 @@ Links are converted to hash‑based navigation (`?page=…`), preserving anchors
|
|
|
202
202
|
|
|
203
203
|
| Option | Type | Default | Description |
|
|
204
204
|
|---|---:|:---:|---|
|
|
205
|
-
| `homePage` | `string` | `'_home.md'` |
|
|
206
|
-
| `notFoundPage` | `string` | `'_404.md'` |
|
|
205
|
+
| `homePage` | `string` | `'_home.md'` | Path for the site home page (`.md` or `.html`). |
|
|
206
|
+
| `notFoundPage` | `string` | `'_404.md'` | Path for the not-found page (`.md` or `.html`). |
|
|
207
|
+
| `navigationPage` | `string` | `'_navigation.md'` | Path for the navigation markdown used to build the navbar (`.md` or `.html`). |
|
|
208
|
+
|
|
209
|
+
> Note: All these files must be within `contentPath`
|
|
207
210
|
|
|
208
211
|
### Styling and Theming
|
|
209
212
|
|
|
@@ -492,7 +495,7 @@ Keep in mind that some themes do not play well with certain color schemas.
|
|
|
492
495
|
Nimbi CMS works well with GitHub Pages and the built-in GitHub web file editor. Minimal steps:
|
|
493
496
|
|
|
494
497
|
- Enable GitHub Pages for the repository (Settings → Pages) and choose the branch/folder you want to publish (e.g., `gh-pages` or `main` / `/docs`).
|
|
495
|
-
-
|
|
498
|
+
- If your content includes underscore-prefixed files (for example `_navigation.md` or `_home.md`), GitHub's Jekyll processor will ignore them by default. Add an empty `.nojekyll` file at the repository root to disable Jekyll so those files are served
|
|
496
499
|
- Ensure your published site serves the built `dist` assets (upload `dist/` to the chosen branch or use a build step / GitHub Action to publish).
|
|
497
500
|
- Place your content under a folder (default: `content/`) or set `contentPath` when calling `initCMS()` to point somewhere else.
|
|
498
501
|
|
|
@@ -511,6 +514,8 @@ Tips:
|
|
|
511
514
|
|
|
512
515
|
## Troubleshooting
|
|
513
516
|
|
|
517
|
+
If you find a bug, have a feature request or a question, just [open an issue](https://github.com/AbelVM/nimbiCMS/issues)
|
|
518
|
+
|
|
514
519
|
### Content not loading / 404 pages
|
|
515
520
|
- Verify `contentPath` is correct and matches the directory containing your `.md` files.
|
|
516
521
|
- Ensure your static server is serving those files (a 404 is often because the content folder isn’t published or the path is wrong).
|