How to set up a home section
TL;DR
You want to have a card for a Lepiter page automatically installed in the Home Section of GT when you load your GitHub repo (i.e., a card similar to the Glamorous Toolkit Book
card).
Steps
Use the GtHomeMultiCardSection
class.
Create a subclass of GtHomeMultiCardSection
with cards defined in methods with a <gtSectionCard>
pragma. For example: GtHomeMultiCardGetStartedSection
.
To install this as a home section card, you must implement an extension method of the GtHome
class. For example: GtHome>>#getStartedSection
.
Note that this should be categorized as an extension method of one of your packages, for example *MyStuff
(assuming MyStuff
is a package of your repo). In this way, as soon as your repo is loaded, so will the extension method, and your card will automatically appear in the home section.