tools: Export - include "all" wählt die ganze KB, index: true schreibt index.md und INDEX.md in den Zielordner (#217); 10.1.0-beta.21
Files changed: - CHANGES.md - VERSION - docs/how-to/export-to-a-synced-folder.md - docs/reference/commands/exports.md - docs/reference/configuration.md - raw/CONTRACT.md - tools/CONTRACT.md - tools/README.md - tools/chemenu/catalog.py - tools/chemenu/commands/export_cmd.py - tools/chemenu/commands/index_build.py - tools/chemenu/config_shapes.py - tools/chemenu/export_index.py - tools/chemenu/guideline_export.py - tools/chemenu/page_export.py - tools/chemenu/tests/test_config_shapes.py - tools/chemenu/tests/test_export_run.py - tools/chemenu/tests/test_index_build.py Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SnAJ7Z3CpVD3PRbN73QtU2
This commit is contained in:
1 parent
cc990dc89e
commit
db09e89223
18 files changed
+693
-101
No files matched your search
@@ -454,10 +454,22 @@ def export_guidelines_command(
|
||||
),
|
||||
notes=(
|
||||
"An export is derived: regenerated from `kb/` on every run, never edited, never read back "
|
||||
"into the wiki. Each target names its pages with an allowlist of `search --field` "
|
||||
"predicates (`include`: a list of selections, AND within one, OR across them), a handler "
|
||||
"(`markdown`, or `command` for the operator's converter) and the folder (`path`, outside "
|
||||
"the instance). Nothing is exported that no selection names.",
|
||||
"into the wiki. Each target names its pages with `include`: either the string `\"all\"` "
|
||||
"(every page `search` knows, also one directly under `kb/`; never a generated or meta "
|
||||
"file) or an allowlist of `search --field` predicates (a list of selections, AND within "
|
||||
"one, OR across them), a handler (`markdown`, or `command` for the operator's converter) "
|
||||
"and the folder (`path`, outside the instance). A missing or empty `include` is an error, "
|
||||
"never \"all\": nothing is exported that the target does not name.",
|
||||
"With `index: true` a target also gets `index.md` in its root and an `INDEX.md` per "
|
||||
"collection (and per area the catalog gives a file of its own), built from the exported "
|
||||
"pages alone: collections and areas with their counts, then tables of page, type, "
|
||||
"summary and last modified, with relative Markdown links whatever `links` says. No date "
|
||||
"of the day and no hint for an agent; the marker is `kind=index` with the newest commit "
|
||||
"of the pages the file lists, so a commit to one collection rewrites that collection's "
|
||||
"`INDEX.md` and `index.md` only. The files are ordinary files of the run (manifest, "
|
||||
"atomic write, removed once no longer generated); the `command` handler receives them "
|
||||
"with the pages. A page `<collection>/index.md` beside the generated `INDEX.md` stops "
|
||||
"the target.",
|
||||
"Every Markdown file starts with a frontmatter block whose `wikitool_export` line says "
|
||||
"`kind=pages instance=<origin URL without userinfo, or local> commit=<newest commit "
|
||||
"touching this page>`, followed by `title`, `type`, `summary`, `modified` where the "
|
||||
@@ -518,7 +530,8 @@ def export_guidelines_command(
|
||||
),
|
||||
cli_contract.Failure(
|
||||
cause="A target failed: a foreign folder, a folder in backup data, a file changed in "
|
||||
"the target, an empty selection, an unknown field, a converter that did not exit 0",
|
||||
"the target, an empty selection, an unknown field, two files that differ only in case "
|
||||
"(also a page and a generated index file), a converter that did not exit 0",
|
||||
reaction="Show the target's reason to the user; the other targets were still served. "
|
||||
"Never delete or edit files in a target folder to make a run pass",
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user