Open
Description
Now that #227 is merged we have a basic testing infrastructure set up for the theme. This will let us test the HTML outputs that are generated by the theme, using BeautifulSoup.
We should add more tests for the following things:
Make sure that...
- sidebars behave expected for nested toctree pages
- the navbar / sidebar behaves expected for things like external links in toctrees
- buttons show up when activated (E.g. github button, edit this page button, etc)
- logo etc behave as expected when they are added / not added
- numbering of sidebar sections works with
:numbered:
flag - Special characters in navbar / sidebar work (e.g. equations or formatted text)
- The header has the structure we'd expect (e.g. JS and CSS imports, social media metadata, etc)
For each of these, I think the easiest thing to do is:
- Use
beautifulsoup
to select the subset of a page we want to test - Use
file_regression
to test its structure against a reference we have committed to the tests folder
See the contributing documentation for some guidelines on how this works!
Note that I'm also making this issue because I'll likely go on paternity leave sometime in the next several weeks so probably will not be able to personally do this but I am happy to help advise and guide others!