mosra / m.css

A no-nonsense, no-JavaScript CSS framework, site and documentation theme for content-oriented websites
https://mcss.mosra.cz
Other
409 stars 92 forks source link

Change m.css transitions into Docutils transition nodes. #195

Closed williamjcm closed 2 years ago

williamjcm commented 3 years ago

Among others, this allows transitions at the end of a section to be moved one level up in the tree and after the section, similarly to how reST transitions are handled by Docutils.

While I didn't try building the site like the contributing guidelines say, a quick search for usages of the .. transition:: directive indicates that there should be no issues. 😅

codecov[bot] commented 3 years ago

Codecov Report

Merging #195 (9acd98c) into master (3a29473) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #195   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files          27       27           
  Lines        6646     6649    +3     
  Branches       44       44           
=======================================
+ Hits         6532     6535    +3     
  Misses        114      114           
Impacted Files Coverage Δ
plugins/m/components.py 95.07% <100.00%> (ø)
plugins/m/htmlsanity.py 94.02% <100.00%> (+0.04%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3a29473...9acd98c. Read the comment docs.

mosra commented 2 years ago

(Sorry for an embarrassingly late merge, finally got a chance to get back to the project.)

I expanded the tests a bit to actually trigger the new behavior in 6693d2dd1245cac95e8df784923fa4b3f3af1558 and merged this as 3f7b8501c98bfead4047f397a527e096ac75e26a. Thank you!