72 Commits
Author SHA1 Message Date
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
Albert Krewinkel 49f1e7608e Lua: add module pandoc.layout to format and layout text 2022-02-06 16:01:24 -08:00
Albert Krewinkel 3169367475 Lua docs: allow to auto-generate Lua module documentations
No documentations are generated for now, this just adds the necessary
code and auto-formats file `doc/lua-filters.md`.
2022-02-05 13:32:02 +01:00
John MacFarlane d2a9562554 Omit --enable-doc in the cabal haddock invocation.
tools/build-and-upload-api-docs.sh.  I'm not sure what
this was supposed to do but it seems undocumented.
2022-01-17 21:03:25 -08:00
John MacFarlane 5811baf80f Update build-and-upload-api-docs.sh.
Using the template at https://hackage.haskell.org/upload

It still fails because of a missing doc-index.json for Glob?
2022-01-17 21:03:25 -08:00
John MacFarlane 4a2a068a8b Add tools/build-and-upload-api-docs.sh. 2022-01-07 11:50:02 -08:00
John MacFarlane 40a78ea05d Upgrade Debian 10 AMI for build-arm.sh. 2021-07-03 11:38:04 -07:00
John MacFarlane 0012750c42 build-arm.sh : remove strict checking on first ssh access 2021-03-18 10:22:49 -07:00
John MacFarlane cac796e1ab ARM build script: more reliable detection of completion.
Previously we downloaded the tar.gz before it was complete.
2021-03-08 14:51:03 -08:00
John MacFarlane 7683912591 build-arm.sh: fix elapsed time. 2021-03-08 11:57:52 -08:00
John MacFarlane 459085c642 build-arm.sh: env variable for ARTIFACTS. 2021-03-07 20:58:36 -08:00
John MacFarlane f8e848094c build-arm.sh: print total build time 2021-03-07 19:02:36 -08:00
John MacFarlane 7eb4662df4 Fixed build-arm script.
Use environment variables which can be set to use different
AMIs, keys, or instance types.

Correctly detect successful build.
2021-03-07 18:06:38 -08:00
John MacFarlane 75d4bca862 build-arm.sh: retrieve build artifacts after success. 2021-03-07 13:27:55 -08:00
John MacFarlane d560038342 Add script to build an ARM binary on AWS. 2021-03-07 13:10:27 -08:00
John MacFarlane e798db14e8 Add tools/parseTimings.pl.
A script to help pin down which modules take the most time
and memory to compile.
2021-02-26 23:52:28 -08:00
John MacFarlane aae1e617a6 Fix changelog-helper.sh 2021-02-21 19:02:28 -08:00
John MacFarlane 004907f4f2 make changes_github: use details tag to make changelog collapsible. 2020-03-15 11:23:55 -07:00
Albert Krewinkel 9ffa8100d7 tools: delete Lua documentation helper cruft
The tools were useful to generate documentation from the Lua sources.
However, most Lua functions are defined in Haskell, and the even
documentation of functions written in Lua has been updated manually for
quite a while now. The unused helper scripts, which have bit-rot to the
point that they now produce broken links, are therefore removed.
2020-03-13 14:22:23 +01:00
John MacFarlane a0df2f676c Fix README.md so that relative links from manual become absolute.
Previously they'd be broken links when viewed on GitHub or Hackage.
So we add the base URL for the pandoc manual.
2019-12-10 14:46:33 -08:00
John MacFarlane 0d0ec98dd5 Generate Emoji module with TH.
- Add Text.Pandoc.Emoji.TH.
- Replace long literal list in Text.Pandoc.Emoji with one-liner
  generating it from data/emoji.json using TH.
- Add Makefile target to download data/emoji.json.
- Remove tools/emoji.hs.
2019-11-27 21:31:53 -08:00
John MacFarlane 415ddbe228 Fix extract-changes.hs to use new changelog.md format. 2019-11-22 09:42:04 -08:00
John MacFarlane 36f02e1673 Fix extract-changes.hs so it uses stack as interpreter. 2019-11-22 09:33:32 -08:00