docrev 0.9.17 → 0.9.18
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/dist/lib/anchor-match.d.ts +1 -1
- package/dist/lib/anchor-match.d.ts.map +1 -1
- package/dist/lib/anchor-match.js +17 -47
- package/dist/lib/anchor-match.js.map +1 -1
- package/dist/lib/build.d.ts +111 -1
- package/dist/lib/build.d.ts.map +1 -1
- package/dist/lib/build.js +351 -21
- package/dist/lib/build.js.map +1 -1
- package/dist/lib/commands/build.d.ts.map +1 -1
- package/dist/lib/commands/build.js +25 -10
- package/dist/lib/commands/build.js.map +1 -1
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/lib/schema.js +37 -0
- package/dist/lib/schema.js.map +1 -1
- package/docs-src/build.py +113 -113
- package/docs-src/extra.css +208 -208
- package/docs-src/md-to-html.lua +6 -6
- package/docs-src/template.html +116 -116
- package/issues.md +180 -0
- package/lib/anchor-match.ts +17 -49
- package/lib/build.ts +410 -22
- package/lib/commands/build.ts +32 -10
- package/lib/schema.ts +37 -0
- package/mkdocs.yml +64 -64
- package/package.json +1 -1
- package/site/assets/extra.css +208 -0
- package/site/commands.html +926 -0
- package/site/configuration.html +469 -0
- package/site/index.html +288 -0
- package/site/troubleshooting.html +461 -0
- package/site/workflow.html +518 -0
- package/skill/REFERENCE.md +66 -0
- package/skill/SKILL.md +25 -4
- package/.claude/settings.local.json +0 -9
package/skill/SKILL.md
CHANGED
|
@@ -17,9 +17,8 @@ Layout is controlled in `rev.yaml`:
|
|
|
17
17
|
|
|
18
18
|
```yaml
|
|
19
19
|
title: "My Document"
|
|
20
|
-
|
|
21
|
-
docx
|
|
22
|
-
reference-doc: template.docx
|
|
20
|
+
docx:
|
|
21
|
+
reference: template.docx
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
Change the template, rebuild, and every document gets the new formatting.
|
|
@@ -98,7 +97,15 @@ revision is rendered as a visible Word track change. Useful when a co-author
|
|
|
98
97
|
wants to see what changed since the last shared version.
|
|
99
98
|
|
|
100
99
|
Outputs land in `output/` by default; set `outputDir: null` in `rev.yaml`
|
|
101
|
-
to keep them alongside `paper.md` (legacy layout).
|
|
100
|
+
to keep them alongside `paper.md` (legacy layout). The basename is derived
|
|
101
|
+
from `title:` unless overridden — set `output: { docx: foo.docx, pdf: foo.pdf }`
|
|
102
|
+
in `rev.yaml` or pass `-o, --output <path>` on the CLI. See REFERENCE.md →
|
|
103
|
+
"Choosing output filenames".
|
|
104
|
+
|
|
105
|
+
For pandoc flags rev doesn't surface directly (Lua filters, custom variables,
|
|
106
|
+
templates), use `--pandoc-arg` (repeatable) or `pandoc-args:` in `rev.yaml`
|
|
107
|
+
(both top-level and per-format). Run with `--verbose` to see the exact pandoc
|
|
108
|
+
invocation. See REFERENCE.md → "Passing custom pandoc args" for details.
|
|
102
109
|
|
|
103
110
|
### 8. Archive reviewer files
|
|
104
111
|
|
|
@@ -183,6 +190,20 @@ Use in markdown files:
|
|
|
183
190
|
- `@eq:label` - Equation reference
|
|
184
191
|
- `{#fig:label}` - Anchor for figures
|
|
185
192
|
|
|
193
|
+
Insert a figure with the format-portable syntax (renders in both PDF and Word):
|
|
194
|
+
|
|
195
|
+
```markdown
|
|
196
|
+
{#fig:foo width=80%}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Raw `\begin{figure}...\end{figure}` LaTeX blocks are PDF-only. For docx
|
|
200
|
+
builds, `rev` auto-translates the common shape (single `\includegraphics`
|
|
201
|
+
with optional `\caption{...}` and `\label{...}`) to the markdown form above
|
|
202
|
+
so figures still render. Exotic blocks (`\subfloat`, `\rotatebox`, multiple
|
|
203
|
+
`\includegraphics`) are left alone and warned about — convert them by hand
|
|
204
|
+
or supply a custom Lua filter via `--pandoc-arg`. Opt out of auto-translate
|
|
205
|
+
with `docx.translateRawFigures: false` in `rev.yaml`.
|
|
206
|
+
|
|
186
207
|
## Template Variables
|
|
187
208
|
|
|
188
209
|
Available in section files (processed during build):
|