Commit Graph

33 Commits

Author SHA1 Message Date
Wez Furlong 37111c8036 add auto-gen docs for proxy-server http api and metrics
refs: https://github.com/KumoCorp/kumomta/pull/472
2026-02-06 07:11:56 +00:00
Wez Furlong 66e5aa5508 docs: generate a page for each exported metric 2026-02-04 09:10:25 +00:00
Wez Furlong 49cdee1ec5 lruttl: expose pre-defined cache info to the docs
This commit adds some plumbing to allow us to collect metadata
about the caches and spit it out into a json file that we can
then use in the docs to show the predefined caches, capacities
and brief comments about their purpose.

We put that info on the set_lruttl_cache_capacity doc page.
2025-11-01 07:40:40 +00:00
Wez Furlong a95e78cfa7 docs: enable build w/ podman on apple silicon 2025-03-24 21:58:47 -07:00
Wez Furlong 4af9c7035f docs: move make_queue_config fields to their own pages
This makes them easier to search for, and find.
2024-08-18 19:14:34 -07:00
Wez Furlong d416b31af9 docs: add toml_data macro
This macro allows embedding TOML data into the docs,
and showing it in a tab that has both the TOML and JSON
representation of that data.

It works by executing the toml2jsonc helper that was added
in an earlier commit.

There's some machinery here to compile that utility to run
in the context of the mkdocs docker image; that works
locally, let's see how well it works in CI!

Usage is simple; before:

```toml
["something"]
foo = "bar"
```

after:

{% call toml_data() %}
["something"]
foo = "bar"
{% endcall %}

The first page to get switched over to this is https://docs.kumomta.com/tutorial/configuring_kumomta/

refs: https://github.com/KumoCorp/kumomta/issues/212
2024-07-03 14:59:52 -07:00
Wez Furlong fa2c6225e8 docs: add kcli reference docs
These are automatically extracted from `kcli --help`.
2024-06-27 15:18:07 -07:00
Wez Furlong 0e401a4b9b ci: fixup docs build
The symlink switcheroo needs to happen sooner
2024-06-12 15:17:54 -07:00
Wez Furlong 20e7d1052f ci: fixup doc build for new cache dir structure 2024-06-12 12:38:26 -07:00
Wez Furlong edc56226f7 docs: always pull upstream mkdocs 2024-03-31 06:49:14 -07:00
Wez Furlong 82c9541fcd ci: docs: try using the woodpecker plugin for mkdocs 2024-02-09 13:21:44 -07:00
Wez Furlong e93002c22d ci: docs: try using podman instead of docker(!)
It's a PITA to bootstrap the docker daemon, and pointing it to the host
daemon to sidestep all that is insecure and should not be trusted in a
public repo like this.

So, let's just try podman for this: it doesn't need a daemon and
doesn't need any special privs.
2024-02-09 12:57:08 -07:00
Wez Furlong f1de881ebb docs: switch to using docker based mkdocs
ubuntu is making it awkward to use pip for user-installed stuff,
so let's just use the docker image.
2024-02-08 08:09:53 -07:00
Wez Furlong 837f9e5c0e automate updating the openapi spec files
I definitely forgot to do this on the very first change after
adding them, so I want to make it less likely in the future.

This causes the specs to get updated in the docs if they have
changed (other than the version field) since the last time they
were updated.

We check this during test and doc building.  That should be
sufficient to catch this during my dev loop.

refs: https://github.com/KumoCorp/kumomta/issues/96
2023-11-23 09:02:00 -07:00
drone c7a7386295 docs: add note for future improvement on rust api docs 2023-09-25 09:35:29 -07:00
Wez Furlong 4a0a45d658 docs: look for pip3 and use it if present 2023-09-17 22:05:21 -07:00
Wez Furlong cb1f64fe9d docs: add internal rust API docs to reference section 2023-09-14 10:18:22 -07:00
Wez Furlong bbfa1122c4 docs: unconditionally install social plugin deps
mkdocs now refuses to start without them installed, even when
this plugin is disabled.
2023-08-30 08:26:08 -07:00
Wez Furlong f65e985e64 docs: add since macro. document connection metadata object 2023-06-28 13:52:15 -07:00
Wez Furlong 0cf6a16ef2 allow running ./docs/build.sh serve to build and serve docs
Any arguments you pass to it will be passed through to mkdocs
2023-03-23 08:28:17 -07:00
Wez Furlong 6b9b01eca0 disable social media cards in local builds
Enable it for the final deploy
2023-03-13 15:38:18 -07:00
Wez Furlong 3a1b1053bd docs: add link checking
Ideally there would be a good mkdocs based checker, but the
one that is out there only validate absolute URLs, which makes
it unsuitable for checking local relative links in the docs.

Adjust the doc build so that we also generate the SUMMARY.md
for mdbook, and use mdbook's link checker to check the links.

Fixup the couple of broken links that it found.
2023-03-13 12:01:07 -07:00
Wez Furlong 52d204984a docs: install exclude plugin to exlude stuff better
Previously, I was cleaning up some junk like _index directories
generated from the _index.md fragments. I noticed that those
were showing up in the search index, so it is better to exclude
from the outset. mkdocs doesn't natively support the idea of
exclusion, but there is a plugin that does, so use it.
2023-03-11 23:27:49 -07:00
Wez Furlong 77b91cf3cc docs: adjust PATH for pip 2023-03-11 22:30:11 -07:00
Wez Furlong a841b1e635 docs: do black formatting in docs/build.sh
This way it should get included in the automated fixup commit
performed by the workflow
2023-03-11 20:41:44 -07:00
Wez Furlong f0c893582e switch from mdbook to mkdocs 2023-03-11 20:13:54 -07:00
Wez Furlong c1f0daa2a3 docs/build.sh: just run on all md files
I'd carried over behavior from wezterm where we only considered
tracked markdown files, which could be confusing for newly
authored files: they wouldn't get considered or updated until
they had been committed.
2023-03-11 06:54:59 -07:00
Wez Furlong a40cf617d3 docs/build.sh: always enable coloring in output
should make it easier to spot the source of the issue
2023-03-11 06:46:07 -07:00
Wez Furlong bf99848ef0 ci: surface unformatted lua code errors pushed to main
the pages workflow silently corrects these so they go unnoticed,
leaving the corrections to show up for the next person to run
`docs/build.sh`, polluting their later commit with unrelated
changes.

Augment the verify-pages workflow to also run on `main` and
surface the corrections with a failed workflow run.
2023-03-11 06:11:58 -07:00
Wez Furlong 3e97cea1f6 docs build: simplify dep logic a little 2023-03-07 11:31:01 -07:00
Wez Furlong a0c0107a54 docs: install mdbook-admonish
See: https://tommilligan.github.io/mdbook-admonish/overview.html
https://tommilligan.github.io/mdbook-admonish/reference.html
2023-02-25 15:08:54 -07:00
Wez Furlong c8a8d7da00 docs: install gelatyx earlier 2023-02-25 11:24:37 -07:00
Wez Furlong 831bfe9aab docs: skeleton for building the docs
Rather than edit SUMMARY.md, you edit docs/generate-toc.py
and it will flesh out sections based on the list of files
in a directory.
2023-02-25 10:50:58 -07:00