94 Commits
Author SHA1 Message Date
John MacFarlane ab50bf82b6 Streamlined make release so that it produces all 11 packages. 2026-10-24 16:28:23 -07:00
John MacFarlane 302e56caf7 github-build-release.sh - use rm -f. 2026-10-23 08:55:53 -07:00
John MacFarlane 7001666236 *-build-release.sh: take download directory from first parameter.
Default to 'artifacts' as before.
2026-10-18 13:06:48 -07:00
John MacFarlane 2a01985d79 github-build-release.sh: remove already downloaded artifact.
Otherwise we get an error, gh run download won't replace it.
2026-10-18 13:03:02 -07:00
John MacFarlaneandClaude Opus 5.5 fba87f50b9 github-build-release.sh: put all artifacts directly in artifacts/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 12:55:33 -07:00
John MacFarlane 2ef437c9c3 github-build-release.sh : don't download intermediate artifacts.
Just the final signed one.
2026-10-18 12:30:49 -07:00
John MacFarlane 2e7cc6320d Update comment. 2026-10-18 12:19:24 -07:00
John MacFarlane 0407041eb7 Add tools/github-build-release.sh. 2026-10-18 12:19:13 -07:00
John MacFarlane 1ee9933560 Add tools/circleci-build-release.sh. 2026-10-18 09:39:46 -07:00
John MacFarlane 472e97587f Add tools/benchplot.js.
This creates a nice graph comparing two benchmarks.
2026-09-25 10:05:07 -07:00
John MacFarlane 6c335dc4c9 diff-golden-tests.sh - print filename 2026-09-12 11:03:43 -07:00
John MacFarlane 88d84eedfd Fix diff-zip.sh on non-Darwin. 2026-09-12 10:40:34 -07:00
John MacFarlane 59a409a5d5 Add tools/diff-golden-tests.sh. 2026-09-12 10:30:08 -07:00
Albert Krewinkel f9fb410cd9 Lua: add new function pandoc.types.Sources.
This provides access to the `Sources` abstraction that pandoc uses for
input files.

Closes: #11441
2026-02-09 22:03:06 +01:00
Albert Krewinkel 9219a313e9 Lua: add function pandoc.utils.documentation (#11383)
Closes #10999.

This is now used to generate much of the Lua API documentation.
2026-01-15 09:59:58 +01:00
massifrg fe3684632b New xml format exactly representing a Pandoc AST.
This adds a reader and writer for an XML format equivalent to `native`
and `json`.

XML schemas for validation can be found in `tools/pandoc-xml.*`.

The format is documented in `doc/xml.md`.

API changes:

- Add module Text.Pandoc.Readers.XML, exporting `readXML`.
- Add module Text.Pandoc.Writers.XML, exporting `writeXML`.

A new unexported module Text.Pandoc.XMLFormat is also added.
2025-07-26 22:45:11 -07:00
Albert Krewinkel 46081560cc tools/update-lua-module-docs: fix handling of wikilinks
The pandoc-internal representation of wikilinks has changed.
2025-05-28 13:47:49 +02:00
John MacFarlane f37b12d941 Use jq instead of json_reformat in validate-docx-golden-tests2. 2025-05-11 11:01:44 -07:00
Albert Krewinkel 790abcf414 lua-filters.md: Partially autogenerate docs for module "pandoc"
The documentation system isn't powerful enough to generate the full
documentation automatically.
2024-07-08 16:30:45 +02:00
Stephen Huan d913289054 tools/update-translations.py: translation script 2024-07-05 13:04:15 -07:00
Albert Krewinkel da4a55a985 lua-filters: auto-generate docs for pandoc.layout module. 2024-06-09 22:19:57 +02:00
Albert Krewinkel bfb0475d67 doc/lua-filters: autogenerate docs for module pandoc.template 2024-06-07 20:36:29 +02:00
Albert Krewinkel 1a15c9f6a9 tools/update-lua-module-docs.lua: cleanup, fix code 2024-05-04 23:56:01 +02:00
Albert Krewinkel e8cb6449dc tools/update-lua-module-docs.lua: improve script-internal docs 2024-05-04 23:27:07 +02:00
Albert Krewinkel c45f163b4d Lua: fix generated docs.
Update and fix docs for `pandoc.types.Version` and `pandoc.utils.type`.
2024-05-04 22:17:01 +02:00
Edwin Török b8c921fe7d fix(ci): explicitly choose a .Net version
Upstream OOXML-Validator has added support for building with .Net 8.0 in
commit 29af1086b5c78b6a213e70d2e1cb8da2a8e5b876.
But that means OOXML-Validator can now be built for both .Net 6.0 and 8.0,
so we need to pick which one we want when running, otherwise we get an
error:
```
Unable to run your project
Your project targets multiple frameworks.
Specify which framework to run using '--framework'.
```

Signed-off-by: Edwin Török <edwin@etorok.net>
2024-02-05 15:07:23 -08:00
Edwin Török c6892bec24 ci(validate-docx-golden-tests2): fail on errors
The validator just prints errors, but always exited with nonzero.

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-19 15:00:23 -08:00
Edwin Török c5780857e5 fix(docx): fix OOXMLValidator error on KeywordTok output
xmllint doesn't warn about this (maybe because the tag is empty?), but
the order doesn't match wml.xsd:
```
    <w:rPr>
      <w:color w:val="007020"/>
      <w:b/>
    </w:rPr>
```

And OOXMLValidatorCLI does warn about it:
```
{
        "Description": "The element has unexpected child element 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:b'.",
        "Path": {
            "NamespacesDefinitions": [
                "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\""
            ],
            "Namespaces": {

            },
            "XPath": "/w:styles[1]/w:style[40]/w:rPr[1]",
            "PartUri": "/word/styles.xml"
        },
        "Id": "Sch_UnexpectedElementContentExpectingComplex",
        "ErrorType": "Schema"
    }
```

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-18 17:15:03 -08:00
Edwin Török 3e360f5a3e test(Makefile): add validate-docx-golden-test2
Add a validation rule based on OOXML-Validator which uses the
Open-XML-SDK shipped and maintained as part of dotnet.

This catches a few more issues compared to the .xsd.

Unfortunately currently this executable always exits with 0 even when
validation failed. That can be fixed later by invoking it from a script.

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-18 17:15:03 -08:00
John MacFarlane ab159bdd17 validate-docx.sh - revert checking of _rels.
These generate "no matching global declaration" so they can't
be validated.
2023-12-18 12:42:52 -08:00
John MacFarlane 3e2a97c772 Fix bug in validate-docx.sh.
We only need look at xml files in word.
2023-12-18 12:38:34 -08:00
John MacFarlane eb387c6992 Modify validate-docx.sh to check ALL xml files in the docx container. 2023-12-18 12:25:53 -08:00
John MacFarlane 4db6661fe5 validate-docx.sh: print list of files that fail validation. 2023-12-18 12:21:00 -08:00
John MacFarlane 0849baef1e Add custom validate-docx.sh script.
This checks files other than document.xml in a docx container.
Thanks to @edwintorok.
2023-12-18 12:06:59 -08:00
Albert Krewinkel 8346cfad4c lua-filters: auto-generate docs for pandoc.system module. 2023-03-20 16:06:19 +01:00
Albert Krewinkel a53a6edfa5 lua-filters.md: Generate docs for pandoc.utils
The documentation in the Haskell sources has been updated.
2023-03-20 08:30:04 +01:00
Albert Krewinkel a37eda9713 lua-filters.md: auto-generate docs for more modules 2023-03-19 22:39:15 +01:00
Albert Krewinkel 7743c5287a Lua: add info on when functions became available in pandoc 2023-03-19 15:09:23 +01:00
Albert Krewinkel 07c56322c2 lua-filters.md: generate docs from Haskell for pandoc.structure 2023-03-19 13:35:02 +01:00
Albert Krewinkel ec1a06f5ef lua-filters.md: autogenerate parts of the Lua API docs 2023-03-19 12:33:04 +01:00
John MacFarlane 4de3a9c2ca Add tools/latex-package-dependencies.lua. 2022-10-17 21:59:44 -07:00
John MacFarlane 11d010c455 More build-arm.sh fixes. 2022-10-04 13:16:19 -07:00
John MacFarlane 05505df2f0 Fix typo in build-arm.sh. 2022-10-04 13:16:19 -07:00
John MacFarlane a50765b3e4 moduledeps.lua: avoid duplicates when multiple ROOTs. 2022-10-04 12:30:03 -07:00
John MacFarlane 11ec70cfeb Better 'make moduledeps' target.
ROOT can now be multiple modules, and the complete transitive
dependencies of all of them will be printed.

    make moduledeps ROOT="Text.Pandoc.Class Text.Pandoc.Parsing"
2022-10-04 10:17:33 -07:00
John MacFarlane 89e7e9b636 Makefile: add moduledeps target.
make moduledeps ROOTNODE=T.P.Parsing
2022-10-01 12:46:30 -07:00
John MacFarlane 20f82b0a8b Makefile target to get module dependeny subgraphs.
E.g. what depends on Text.Pandoc.Parsing?

    make modules.pdf ROOTNODE=T.P.Parsing

This is helpful for figuring out what we can split out as separate
packages.
2022-10-01 12:34:27 -07:00
John MacFarlane 3040c2c42c build-arm.sh: remove reference to docker.log. 2022-08-22 11:11:09 -07:00
John MacFarlane 0f80284c3d Convert tool/extract-changes.hs to a Lua filter. 2022-08-03 23:59:39 -07:00
Albert Krewinkel 7d3db1dd2d Lua docs: fix typos, missing links 2022-02-07 09:30:12 +01:00