@z29k/notabene 0.1.0
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/LICENSE +21 -0
- package/README.md +200 -0
- package/astro.config.mjs +37 -0
- package/bin/notabene.mjs +116 -0
- package/package.json +33 -0
- package/src/components/Comments.astro +458 -0
- package/src/components/NavTree.astro +44 -0
- package/src/components/Sidebar.astro +57 -0
- package/src/components/SpaceIndex.astro +45 -0
- package/src/components/Toc.astro +29 -0
- package/src/config.mjs +127 -0
- package/src/content.config.ts +16 -0
- package/src/layouts/DocLayout.astro +153 -0
- package/src/lib/comment-types.ts +53 -0
- package/src/lib/comments.ts +141 -0
- package/src/lib/icons.ts +17 -0
- package/src/lib/journal.ts +40 -0
- package/src/lib/nav.ts +132 -0
- package/src/pages/[space]/[...slug].astro +71 -0
- package/src/pages/api/comments.ts +68 -0
- package/src/pages/comments.astro +146 -0
- package/src/pages/index.astro +23 -0
- package/src/pages/journal.astro +50 -0
- package/src/pages/search-index.json.ts +49 -0
- package/src/remark/rewrite-links.mjs +63 -0
- package/src/styles/global.css +1048 -0
- package/templates/notabene.config.mjs +36 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// notabene.config.mjs — configuration for the notabene docs review tool.
|
|
2
|
+
//
|
|
3
|
+
// The tool (renderer + human↔agent review loop) is GENERIC; this file is the only
|
|
4
|
+
// thing that points it at YOUR docs. Your data (content, comments, journal) lives
|
|
5
|
+
// in your git, not in the tool. Paths are relative to this repo root.
|
|
6
|
+
export default {
|
|
7
|
+
// Brand shown in the header / title.
|
|
8
|
+
siteName: "Docs",
|
|
9
|
+
tagline: "docs",
|
|
10
|
+
// UI language + nav sort collation (localeCompare).
|
|
11
|
+
locale: "en",
|
|
12
|
+
|
|
13
|
+
// Input format (§10.bis). "mdx": .mdx STRICT + .md CommonMark/GFM LENIENT (mix by
|
|
14
|
+
// extension). "commonmark": everything CommonMark/GFM, no MDX dependency/strictness.
|
|
15
|
+
format: "commonmark",
|
|
16
|
+
|
|
17
|
+
// Doc spaces. Each: { key (url slug + store `space`), label, path (repo-relative),
|
|
18
|
+
// exclude (globs), description (optional home-card text) }.
|
|
19
|
+
roots: [
|
|
20
|
+
{ key: "docs", label: "Docs", path: "docs", exclude: [".notabene/**"] },
|
|
21
|
+
],
|
|
22
|
+
|
|
23
|
+
// Comments + journal store (one JSON per page: <store>/<page>.json). Commit it.
|
|
24
|
+
store: "docs/.notabene",
|
|
25
|
+
|
|
26
|
+
// astro dev port.
|
|
27
|
+
port: 3009,
|
|
28
|
+
|
|
29
|
+
// SAFETY: the write API modifies your git. false = loopback only (127.0.0.1).
|
|
30
|
+
// true (or NOTABENE_HOST=1 / --host) exposes it to the LAN — trusted networks only.
|
|
31
|
+
host: false,
|
|
32
|
+
|
|
33
|
+
// Consumer post-edit checks the agent runs after applying comments (build/lint/
|
|
34
|
+
// memory update). The renderer build is ALWAYS run by the loop — don't duplicate it.
|
|
35
|
+
verify: [],
|
|
36
|
+
};
|