chipsalliance / f4pga-examples

Example designs showing different ways to use F4PGA toolchains.
https://f4pga-examples.readthedocs.io
Apache License 2.0
266 stars 78 forks source link

It is very hard to find the design / example list now #370

Open mithro opened 1 year ago

mithro commented 1 year ago

The only place the designs and examples are listed is on the page @ https://f4pga-examples.readthedocs.io/en/latest/building-examples.html and they no longer appear in the left side bar.

mithro commented 1 year ago

@umarcor - This seems to be a regression / step backwards for usability.....

mithro commented 1 year ago

It was almost impossible for me to find the demos which run on the Zynq to answer the question at https://github.com/chipsalliance/f4pga-examples/issues/26

mithro commented 1 year ago

@kgugala - PTAL - I think the listing / menu thing is affecting many users of the theme.

mithro commented 1 year ago

BTW - This is what the example page looks like to me, I can't see any examples at first glance (have to scroll down); image

kgugala commented 1 year ago

yeah, @umarcor is working on this (experimenting with a few different desings to figure out which will be most readable)

umarcor commented 1 year ago

I pushed eight tests to https://github.com/antmicro/f4pga-examples/blob/gh-pages. See https://github.com/antmicro/f4pga-examples/blob/gh-pages/theme_tests.md.

Therefore, it seems that the theme needs to be modified in order to allow globaltoc_depth > 1. Particularly, collapsible items should have two parts:

Alternatively, the theme might be modified so that the depth of the right sidebar is also configurable through theme options. Currently, the left does show children by traversing toctrees, but the right seems to only include sections of the current page, not children traversing toctrees. Then, it would not mind if the items on the left sidebar are not collapsible because all of them would be expanded on the right.

It is surprising that the left sidebar seems to be broken in the latest version of the upstream. It might be related to some recent changes in Sphinx, since the theme was not updated since Oct 2021. Another user reported it: https://github.com/bashtage/sphinx-material/issues/128.

Per https://github.com/f4pga/sphinx_f4pga_theme/commit/2dd4934686b8c5644a1124f1cf5d9d03a34d6c14 and https://github.com/f4pga/sphinx_f4pga_theme/commit/09ae77d684912714e29bb3ea28c9b79c7db1c3c0, maybe @daniellimws can provide some insight?