summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-16Merge branch 'no-dh-cargo' into 'main'HEADmainDaniel Silverstone1-1/+1
fix(README.md): drop mention of dh-cargo See merge request subplot/subplot!375
2024-03-16fix(README.md): drop mention of dh-cargoLars Wirzenius1-1/+1
It's not needed any more. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-28Merge branch 'fixes' into 'main'Daniel Silverstone7-150/+157
update Debian packaging for Ambient See merge request subplot/subplot!374
2024-02-25chore: Cargo.lock updateLars Wirzenius1-144/+142
Since our MSRV is 1.70, need to downgrade a couple of crates. (I with "cargo update" dealt with this automatically: maybe one day.) cargo update cargo update -p normpath --precise 1.1.1 cargo update -p clap --precise 4.4.13 Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-25build: drop build-dep on unused dh-cargo; install lintianLars Wirzenius2-2/+3
Drop dh-cargo as we don't need to build a deb. Install the lintian files in the binary so that lintian will actually find them. Normally, dh will do this automatically, but we override the installation step so we have to do it ourselves. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-25build: override lintianLars Wirzenius2-0/+5
Disable some lintian warnings. * shell-script-fails-syntax-check, script-not-executable: these complain about Bash templates for Subplot. These are not expected to be valid Bash nor executable. * no-manual-page: I'm not going to write a subplot manual page any time soon, sorry. We might generate one from clap some day, though. * source-nmu-has-incorrect-version-number, no-nmu-in-changelog: not relevant for us, only for Debian. These sometimes happen if I invoke the build wrong. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-25fix(debian/copyright): syntax error in empty linesLars Wirzenius1-3/+3
This file has always been broken, but I only found it about it now by running lintian. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-25fix(check): run cargo build with --offlineLars Wirzenius1-1/+4
This is needed for running the test suite under Ambient, without network access. Other invocations of cargo are already doing this, but I had missed this invocation previously. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-13Merge branch 'dameon.yaml-fix' into 'main'Daniel Silverstone1-0/+1
fix(share/python/lib/daemon.yaml): add missing capture type See merge request subplot/subplot!372
2024-01-13Merge branch 'build-docvs' into 'main'Daniel Silverstone1-0/+48
build: script to build all document output Closes #344 See merge request subplot/subplot!371
2024-01-13fix(share/python/lib/daemon.yaml): add missing capture typeLars Wirzenius1-0/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-13build: script to build all document outputLars Wirzenius1-0/+48
Add a script to build all subplots into HTML, and to generate HTML versions of all Subplot library bindings. This is useful for two reasons: * When iterating over documentation, just building it is fast. * CI needs to build all the documentation, but does not necessarily need to generate test code to run the scenarios in subplots. I plan on using this in Ambient CI to update doc.subplot.tech. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-08Merge branch 'ambient' into 'main'Daniel Silverstone1-2/+2
build: allow building under Ambient See merge request subplot/subplot!370
2024-01-07build: allow building under AmbientLars Wirzenius1-2/+2
I'm about to start building a Subplot .deb under my new CI system, Ambient. Ambient runs builds without network access, so do "cargo install" with --offline. My Ambient setup runs ./check (also with --offline) as a separate step, so running it a second time in debian/rules seems wasteful, so disable that. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-07Merge branch 'clippy-and-chores' into 'main'Daniel Silverstone4-169/+309
A few chores See merge request subplot/subplot!369
2024-01-07chore: Run cargo updateDaniel Silverstone1-148/+281
Updating crates.io index Updating anstream v0.6.4 -> v0.6.5 Updating anstyle-parse v0.2.2 -> v0.2.3 Updating anstyle-query v1.0.0 -> v1.0.2 Updating anstyle-wincon v3.0.1 -> v3.0.2 Updating anyhow v1.0.75 -> v1.0.79 Updating bstr v1.7.0 -> v1.9.0 Adding bumpalo v3.14.0 Updating clap v4.4.7 -> v4.4.13 Updating clap_builder v4.4.7 -> v4.4.12 Updating cpufeatures v0.2.11 -> v0.2.12 Adding crossbeam-deque v0.8.4 Adding crossbeam-epoch v0.9.17 Adding crossbeam-utils v0.8.18 Updating deranged v0.3.9 -> v0.3.11 Removing deunicode v0.4.5 Removing deunicode v1.4.1 Adding deunicode v1.4.2 Updating env_logger v0.10.0 -> v0.10.1 Updating errno v0.3.5 -> v0.3.8 Updating filetime v0.2.22 -> v0.2.23 Removing fnv v1.0.7 Updating getrandom v0.2.10 -> v0.2.11 Updating globset v0.4.13 -> v0.4.14 Updating hashbrown v0.14.2 -> v0.14.3 Updating ignore v0.4.20 -> v0.4.22 Updating indexmap v2.0.2 -> v2.1.0 Updating is-terminal v0.4.9 -> v0.4.10 Updating itoa v1.0.9 -> v1.0.10 Updating libc v0.2.149 -> v0.2.152 Updating linux-raw-sys v0.4.10 -> v0.4.12 Updating memchr v2.6.4 -> v2.7.1 Updating once_cell v1.18.0 -> v1.19.0 Updating percent-encoding v2.3.0 -> v2.3.1 Updating pest v2.7.5 -> v2.7.6 Updating pest_derive v2.7.5 -> v2.7.6 Updating pest_generator v2.7.5 -> v2.7.6 Updating pest_meta v2.7.5 -> v2.7.6 Updating proc-macro2 v1.0.69 -> v1.0.76 Updating quote v1.0.33 -> v1.0.35 Removing redox_syscall v0.3.5 Updating rustix v0.38.21 -> v0.38.28 Updating ryu v1.0.15 -> v1.0.16 Updating serde v1.0.190 -> v1.0.195 Updating serde-aux v4.2.0 -> v4.3.1 Updating serde_derive v1.0.190 -> v1.0.195 Updating serde_json v1.0.107 -> v1.0.111 Updating serde_yaml v0.9.27 -> v0.9.30 Updating slug v0.1.4 -> v0.1.5 Updating smallvec v1.11.1 -> v1.11.2 Updating strsim v0.10.0 -> v0.10.1 Updating syn v2.0.38 -> v2.0.48 Updating tempfile v3.8.1 -> v3.9.0 Updating termcolor v1.3.0 -> v1.4.0 Updating thiserror v1.0.50 -> v1.0.56 Updating thiserror-impl v1.0.50 -> v1.0.56 Updating time v0.3.30 -> v0.3.31 Updating time-macros v0.2.15 -> v0.2.16 Updating tracing-log v0.1.4 -> v0.2.0 Updating tracing-subscriber v0.3.17 -> v0.3.18 Updating unsafe-libyaml v0.2.9 -> v0.2.10 Updating utf8-width v0.1.6 -> v0.1.7 Adding wasm-bindgen v0.2.89 Adding wasm-bindgen-backend v0.2.89 Adding wasm-bindgen-macro v0.2.89 Adding wasm-bindgen-macro-support v0.2.89 Adding wasm-bindgen-shared v0.2.89 Adding windows-sys v0.52.0 Adding windows-targets v0.52.0 Adding windows_aarch64_gnullvm v0.52.0 Adding windows_aarch64_msvc v0.52.0 Adding windows_i686_gnu v0.52.0 Adding windows_i686_msvc v0.52.0 Adding windows_x86_64_gnu v0.52.0 Adding windows_x86_64_gnullvm v0.52.0 Adding windows_x86_64_msvc v0.52.0 Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2024-01-07check: When --strict, do not pass --mercifulDaniel Silverstone1-17/+19
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2024-01-07cli: If no template available, don't lint the implsDaniel Silverstone1-1/+6
2024-01-07md: Fix up a little clippy warningsDaniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2024-01-07Merge branch 'fix-types' into 'main'Daniel Silverstone1-0/+16
fix: add missing types for python lib/daemon.yaml See merge request subplot/subplot!368
2024-01-06fix: add missing types for python lib/daemon.yamlLars Wirzenius1-0/+16
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-30Merge branch 'fix-339' into 'main'Daniel Silverstone10-40/+224
Ensure all bindings have types Closes #339 See merge request subplot/subplot!367
2023-12-27reference: Use --merciful because we might have added new warningsDaniel Silverstone2-2/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-12-27bindings: Add types for all relevant bindings which were missing themDaniel Silverstone3-0/+36
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-12-27bindings: Add warnings for missing capture names or missing capture typesDaniel Silverstone4-11/+56
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-12-27bindings: Remember filename when loading bindingsDaniel Silverstone2-27/+130
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-12-25Merge branch 'liw/scenario-typesetting' into 'main'Daniel Silverstone11-102/+271
typeset scenarios Closes #345 See merge request subplot/subplot!366
2023-12-25feat: typeset scenarios by typesetting stepsLars Wirzenius9-94/+220
Typeset each step in a scenario, including captures in the steps. Previously the scenario was just one <pre> element, now things can be styled with CSS. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-25refactor: move CSS file out of doc.rsLars Wirzenius3-8/+51
Make it easier to edit the CSS file, and also add some styles for upcoming scenario typesetting. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01Merge branch 'liw/check-libdocgen' into 'main'Daniel Silverstone7-6/+174
Improve binding docs and generate docs from them Closes #346 See merge request subplot/subplot!365
2023-12-01tests: generate library docs for share/**/*.yaml in ./checkLars Wirzenius1-1/+38
They go into test-outputs/libdocs so they're easy to extract. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add docs to share/rust/lib/datadir.yamlLars Wirzenius1-0/+7
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add docs to share/python/lib/daemon.yamlLars Wirzenius1-0/+52
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add missing doc to share/common/runcmd.yamlLars Wirzenius1-1/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add doc to bindings in share/common/files.yamlLars Wirzenius1-1/+55
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01feat: make libdocgen fail if a binding lacks a doc stringLars Wirzenius2-3/+21
The --merciful option allows this if the user really wants it. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-11-11Merge branch 'fix-320' into 'main'Lars Wirzenius2-2/+72
Make bindings parsing more strict, and validate that strictness Closes #320 See merge request subplot/subplot!364
2023-11-11Merge branch 'fix-340' into 'main'Lars Wirzenius7-52/+43
chore: Update from fehler to culpa Closes #340 See merge request subplot/subplot!363
2023-11-11Merge branch 'liw/libdoc' into 'main'Daniel Silverstone4-16/+191
feat: generate library documentation from bindings files Closes #341 See merge request subplot/subplot!362
2023-11-11Merge branch 'liw/css' into 'main'Daniel Silverstone3-1/+135
Add CSS support in HTML Closes #36 See merge request subplot/subplot!361
2023-11-11subplot: Validate some of the bindings semi-strictnessDaniel Silverstone1-0/+68
2023-11-11bindings: Be more strict about fields in bindings filesDaniel Silverstone1-2/+4
2023-11-11chore: Update from fehler to culpaDaniel Silverstone7-52/+43
2023-11-04feat: generate library documentation from bindings filesLars Wirzenius4-16/+191
Add a `doc` field to a binding. It's a string meant to contain markdown. Add subcommand `subplot libdocgen YAML -o MD` to read a bindings file and output a markdown file documenting the steps in the bindings file, and the type of captures, and the documentation for the step. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-10-31feat: add some HTML class attributesLars Wirzenius1-1/+11
This is a start. We'll need to add more as we add more support for styling the output. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-10-31div for page body classLars Wirzenius1-0/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-10-30feat: allow adding CSS URLs to HTML outputLars Wirzenius3-0/+56
This is in the meta data field "css_urls". Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-10-30feat: allow .subplot to list CSS files to embed in HTML outputLars Wirzenius3-0/+67
This is in the meta data field "css_embed". Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-10-29Merge branch 'update-msrv' into 'main'Lars Wirzenius8-320/+348
gitlab-ci: Update MSRV to 1.70 Closes #343 See merge request subplot/subplot!360
2023-10-29chore: Update Cargo.lock indiscriminatelyDaniel Silverstone1-313/+337
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>