wireapp / wire-server

🇪🇺 Wire back-end services
https://wire.com
GNU Affero General Public License v3.0
2.6k stars 325 forks source link

Warning when building docs #2299

Closed arthurwolf closed 2 years ago

arthurwolf commented 2 years ago

Describe the bug Warning when building the docs from docs/ (after recent migration from wire-docs repo)

To Reproduce Steps to reproduce the behavior:

╰─⠠⠵ make docs on develop|✔ docker run --rm -v $(pwd):/mnt quay.io/wire/alpine-sphinx:0.0.111 make clean html rm -rf "/mnt/build" sphinx-build -M html "/mnt/src" "/mnt/build" -q /nix/store/brp9dz5v47zxwkskffy57pzf8fmng2rm-python3-3.8.8-env/lib/python3.8/site-packages/recommonmark/parser.py:75: UserWarning: Container node skipped: type=document warn("Container node skipped: type={0}".format(mdnode.t))

Expected behavior Shouldn't see a warning.

stephen-smith commented 2 years ago

Could be: https://github.com/readthedocs/recommonmark/issues/177 ?

stephen-smith commented 2 years ago

If so, we'd either have to stop using recommonmark (probably switching to myst_parser like our sphinx conf.py says) or patch recommonmark and use our own version.

The patch would be small, but probably not worth the maintenance trouble going forward. So, we should see if we can switch to myst_parser.

stephen-smith commented 2 years ago

I guess we either need to get myst-parser in nixpkgs or maintain our own nix recipe for that. https://github.com/lazyprop/haskell-language-server/blob/master/myst-parser.nix might work are a recipe but as far as I can tell nothing has landed in https://github.com/NixOS/nixpkgs yet.

flokli commented 2 years ago

Fixed by https://github.com/wireapp/wire-server/pull/2594, which moves markdown rendering to myst.