-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(docs): use iframes instead of in-page examples #750
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, see my suggestions to improve. Decline them if you want to, no problem...
<li><a href="#example-navigation">Navigatie</a></li> | ||
<li><a href="#example-with-content-wrapper">Navigatie met content wrapper</a></li> | ||
<li><a href="#example-with-search">Navigatie met zoekveld</a></li> | ||
<li><a href="#example-with-logo">Navigatie en logo</a></li> | ||
<li><a href="#example-with-multiple-menus">Navigatie met meerdere menu's</a></li> | ||
<li><a href="#example-with-form-button">Navigatie met formulier-knop</a></li> | ||
<li><a href="#example-with-logo-above">Navigatie met logo bovenaan</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<li><a href="#example-navigation">Navigatie</a></li> | |
<li><a href="#example-with-content-wrapper">Navigatie met content wrapper</a></li> | |
<li><a href="#example-with-search">Navigatie met zoekveld</a></li> | |
<li><a href="#example-with-logo">Navigatie en logo</a></li> | |
<li><a href="#example-with-multiple-menus">Navigatie met meerdere menu's</a></li> | |
<li><a href="#example-with-form-button">Navigatie met formulier-knop</a></li> | |
<li><a href="#example-with-logo-above">Navigatie met logo bovenaan</a></li> | |
<li><a href="#example-navigation">Navigatie</a></li> | |
<li><a href="#example-navigation-with-content-wrapper">Navigatie met content wrapper</a></li> | |
<li><a href="#example-navigation-with-search">Navigatie met zoekveld</a></li> | |
<li><a href="#example-navigation-with-logo">Navigatie en logo</a></li> | |
<li><a href="#example-navigation-with-multiple-menus">Navigatie met meerdere menu's</a></li> | |
<li><a href="#example-navigation-with-form-button">Navigatie met formulier-knop</a></li> | |
<li><a href="#example-navigation-with-logo-above">Navigatie met logo bovenaan</a></li> |
Ik heb deze nog explicietere benaming ook doorgevoerd in de targets (zie verderop)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URLs are /components/header-navigation#example-*
, I intentionally left off the extra navigation
, except for #example-navigation
because I thought just #example
would be too similar to #examples
. But perhaps we can think of a better name than "Navigation" for the first example and solve two naming issues with one... ehm... stone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like a plan
`} | ||
/> | ||
|
||
<h3 id="example-with-content-wrapper">Navigatie met content wrapper</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h3 id="example-with-content-wrapper">Navigatie met content wrapper</h3> | |
<h3 id="example-navigation-with-content-wrapper">Navigatie met content wrapper</h3> |
`} | ||
/> | ||
|
||
<h3 id="example-with-search">Navigatie met zoekveld</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h3 id="example-with-search">Navigatie met zoekveld</h3> | |
<h3 id="example-navigation-with-search">Navigatie met zoekveld</h3> |
`} | ||
/> | ||
|
||
<h3 id="example-with-logo">Navigatie en logo</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h3 id="example-with-logo">Navigatie en logo</h3> | |
<h3 id="example-navigation-with-logo">Navigatie en logo</h3> |
docs/src/routes/components/sidemenu/next-to-page-collapsible/+page.svelte
Outdated
Show resolved
Hide resolved
docs/src/routes/components/sidemenu/next-to-page-collapsible/+page.svelte
Outdated
Show resolved
Hide resolved
docs/src/routes/components/sidemenu/next-to-page-collapsible/+page.svelte
Show resolved
Hide resolved
docs/src/routes/examples/sidemenu-in-page-expandable/+page.svelte
Outdated
Show resolved
Hide resolved
Co-authored-by: Rein Schaap <[email protected]>
Co-authored-by: Rein Schaap <[email protected]>
Co-authored-by: Rein Schaap <[email protected]>
Co-authored-by: Rein Schaap <[email protected]>
Co-authored-by: Rein Schaap <[email protected]>
Co-authored-by: Rein Schaap <[email protected]>
This PR refactors the way header and sidemenu examples are presented. Instead of "abusing" the docs page itself, the visual examples are now on separate pages and presented in the docs in iframes.
Not "abusing" the page itself removes the need for layout overrides, removing the need for the
(docs)
route group.