-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): restructured Skin docs site and made it more mobile frie…
…ndly (#2520)
- Loading branch information
Showing
178 changed files
with
46,418 additions
and
1,469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
static const basePath = import.meta.env.BASE_URL; | ||
|
||
<a href=`${basePath}${input.href || ''}` class=input.class role=input.role target=input.target> | ||
<${input.renderBody}/> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import path from 'path'; | ||
|
||
<for|key, comp| in=input.components> | ||
$ const componentName = path.basename(comp, '.marko'); | ||
$ const name = componentName.replace(/-([a-z])/g, function (g) { return ` ${g[1].toUpperCase()}`; }); | ||
$ const properName = name.charAt(0).toUpperCase() + name.slice(1); | ||
<li> | ||
<anchor href=`component/${componentName}` class="nav-link" role="menuitem">${properName}</anchor> | ||
</li> | ||
</for> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import path from 'path'; | ||
import flags from "./data/flags.json" | ||
import icons from "./data/icons.json" | ||
|
||
static const componentFolders = import.meta.glob("../routes/_index/component/*/*.marko"); | ||
|
||
static const components = Object.keys(componentFolders).map((filePath) => { | ||
const parts = filePath.split('/'); | ||
return parts.slice(0, parts.length - 1).join('/'); | ||
}); | ||
|
||
export { components, flags, icons }; |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.