symbol / symbol-docs

Open-source documentation of Symbol
https://docs.symbol.dev
Apache License 2.0
57 stars 91 forks source link

Fix the Glossary #715

Open segfaultxavi opened 2 years ago

segfaultxavi commented 2 years ago

There are two glossary pages, the old one, which needs cleansing, and the new one imported from the handbook (/handbook/glossary.html).

segfaultxavi commented 2 years ago

Take a look at this for the building of the glossary table: https://bitbucket.org/vinay.sajip/sphinx_sizzle_theme/src/master/sphinx_sizzle_theme/__init__.py

This builds a JS file with the WHOLE glossary. ALL pages then load it and a JS method that injects the tooltips.

The code is a good inspiration for how to parse and build the glossary table, but I think I prefer embedding the tooltips at build time.