Replies: 1 comment 2 replies
-
The same technique we will now use for updating fonts and colour schemes.
Every package will have to create a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we handle sidebar by adding sidebar explicitly in each page. We can minimise the code to add it explicitly, but we still have to add it explicitly. How do we globally handle sidebar? And sidebar is just one example, what if we want to globally add items in header, footer, or any other common component?
In most packages we are going to ask people to not import
doc-site
, but to create a module, and import that module asdoc-site
:my-doc-site.ftd
And in our FPM.ftd we can put:
As you see we do not import
doc-site
asds
, butmy-doc-site
asds
.Now in our
my-doc-site.ftd
we can create apage
component:We have create
page
with same arguments asdoc-site.page
. Since nowmy-doc-site
has an actualpage
defined, any attempt to usemy-doc-site.page
will use this component. Theexport: *
has lower priority than symbols defined in the module explicitly.Beta Was this translation helpful? Give feedback.
All reactions