Skip to content

allow Markdown for docsrc documents - #5211

Merged
rjbs merged 6 commits into
cyrusimap:masterfrom
rjbs:tweak-docs
Mar 25, 2026
Merged

rjbs merged 6 commits into
cyrusimap:masterfrom
rjbs:tweak-docs

Conversation

@rjbs

@rjbs rjbs commented Jan 10, 2025 •

Copy link
Copy Markdown
Contributor

Woah, remember this old hunk of work?

This will make it possible to write some docs in Markdown. Although I have temporarily given up on converting everything, I think it will be useful for including some technical specifications that we currently write in Markdown elsewhere.

@rjbs
rjbs force-pushed the tweak-docs branch 2 times, most recently from 2b1c802 to 347f1b4 Compare March 21, 2025 03:05
@rjbs rjbs changed the title WIP: testing rejiggering of docs (and Markdown) allow Markdown for docsrc documents Mar 21, 2025
@rjbs
rjbs marked this pull request as ready for review March 21, 2025 03:06
@rjbs
rjbs marked this pull request as draft March 21, 2025 03:53
@rjbs
rjbs marked this pull request as ready for review March 14, 2026 12:26
@rjbs
rjbs requested a review from elliefm March 14, 2026 12:27
@rjbs

rjbs commented Mar 14, 2026

Copy link
Copy Markdown
Contributor Author

The CI will failed until we've put cyrusimap/cyrus-docker#37 in the docker image

@elliefm elliefm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

A few things still needed to complete the job:

  • around line 2425 of configure.ac, add myst_parser to the rest of the "Documentation dependencies" outputs that are reported to the terminal
  • also add it to the dependencies list in docsr/developer/compiling.rst. The deb package is called 'python3-myst-parser'
  • changes file

@rjbs

rjbs commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

I've added the configure.ac update — and realized we hadn't done that in the doxygen branch, so went and did that! Updated the compiling.rst

I added a changes/next file, but I think I don't believe in my heart we need one. But that's a discussion for another time. It took 30 seconds, right?

I've merged the cyrus-docker change to add myst, so the next CI run of this branch is likely to succeed.

Then I spent some time wondering why my local build didn't work. It's because I didn't install myst_parser.

Fixed that, stub page looks good. It's silly content, but real content later.

@rjbs
rjbs requested a review from elliefm March 24, 2026 21:17

@elliefm elliefm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One comment on the changes file but it's not any kind of blocker.

Comment thread changes/next/markdown-docs Outdated
Comment on lines +3 to +4
Content for the documentation site (cyrusimap.org) can now be written in
Markdown.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, from the point of view of someone installing, upgrading, or packaging Cyrus (i.e. the audience of the release notes), the interesting change is that they will now need myst-parser if they want to (re)build the documentation. Last time they built Cyrus, Cyrus didn't need it, so they probably don't just have it already. This is the kind of thing I would stick under the "Build changes" heading.

Being able to write documentation in markdown is interesting to people writing (or avoiding writing) documentation, but not to anyone else, I don't think.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have adjusted this bit!

rjbs added 6 commits March 24, 2026 21:33
We'll use this to build docs from Markdown.
This is a new TOC document that will list specs for our protocol
extensions.  Also, sieve.md, which is just a placeholder to show that
this will all work.  Next, we'll document the extensions.
@rjbs
rjbs merged commit ccd30ad into cyrusimap:master Mar 25, 2026
10 checks passed
@rjbs
rjbs deleted the tweak-docs branch March 25, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants