executablebooks / sphinx-exercise

A Sphinx extension for producing exercise and solution directives.
https://ebp-sphinx-exercise.readthedocs.io
MIT License
18 stars 6 forks source link

✨ NEW: Add hide option and configuration key #27

Closed najuzilu closed 3 years ago

najuzilu commented 3 years ago

This PR introduces a :hidden: option for both directive types and a new hide_solutions configuration key which will remove all solution directives from the HTML output.

codecov-io commented 3 years ago

Codecov Report

Merging #27 into master will decrease coverage by 0.24%. The diff coverage is 96.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   96.55%   96.30%   -0.25%     
==========================================
  Files           3        3              
  Lines         348      325      -23     
==========================================
- Hits          336      313      -23     
  Misses         12       12              
Flag Coverage Δ
#pytests 96.30% <96.87%> (-0.25%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sphinx_exercise/directive.py 98.71% <96.77%> (-0.31%) :arrow_down:
sphinx_exercise/__init__.py 94.93% <100.00%> (+0.02%) :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 f37722f...6a8c8a9. Read the comment docs.