build(deps)!: replace canonical-sphinx-extensions#107
build(deps)!: replace canonical-sphinx-extensions#107jahn-junior wants to merge 5 commits intomainfrom
Conversation
|
Thanks @jahn-junior! I'm testing this in the Pebble docs, where we have a bunch of The docs are rendering as expected, except I don't see the copy button (our live docs also don't have the copy button). For example, see this preview page. Do you know why that might be? cc @james-garner-canonical in case this needs further investigation while I'm away in November. |
|
I see two issues, the first is that the new sphinx-terminal extension sets the copybutton class which means that standard codeblocks are no longer automatically able to be copied. The second is that as soon as this is released, it will break everyone's existing terminals because no one has this package pinned. Rather than this update, I would prefer to move away from the |
|
@SecondSkoll We've already updated the Starter Pack as you described. The "intended" use of canonical-sphinx is now just for theme components (and some other random functionality). Once the Starter Pack is released, this will be the non-standard way of incorporating these extensions. With that being said, I suppose we can hold off on this change, as it's discouraged in the same way that |
|
Abandoning this update to encourage users to incorporate the extensions independently, as done in the Starter Pack. |
Thanks for confirming. I'll switch canonical/pebble#717 to preview the next starter pack release and ping you there if anything doesn't look right |
tox?BREAKING: This update incorporates the newest version of sphinx-terminal, which is incompatible with older versions of the terminal directive. When incorporating this version of canonical-sphinx into existing docs, all terminal directives have to be reworked to make use of the new syntax.
A comprehensive guide for migrating from a previous version can be found in the 1.0.0 release notes.
canonical-sphinx-extensionswith the newer, standalone versions of the extensions.I've pulled this branch into a handful of Starcraft projects for testing, and, aside from the terminal redesign, everything seems to be completely backwards-compatible so far.
To test these changes against an existing doc set:
canonical-sphinx[full]dependency withcanonical-sphinx[full]@git+https://github.com/canonical/canonical-sphinx@work/incorporate-extensions