Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 530308f

Browse files
authored
chore(docs): restructured Skin docs site and made it more mobile friendly (#2520)
1 parent f794f6e commit 530308f

File tree

178 files changed

+46418
-1469
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+46418
-1469
lines changed

.stylelintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"selector-class-pattern": null,
2525
"alpha-value-notation": "number",
2626
"declaration-block-no-redundant-longhand-properties": null,
27+
"media-feature-range-notation": null,
2728
"value-keyword-case": [
2829
"lower",
2930
{

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"@commitlint/config-conventional": "^19.6.0",
7878
"@ebay/browserslist-config": "^2.10.0",
7979
"@floating-ui/dom": "^1.6.12",
80-
"@marko/run": "^0.5.11",
80+
"@marko/run": "^0.5.13",
8181
"@marko/run-adapter-static": "^0.2.1",
8282
"@percy/cli": "^1.30.5",
8383
"@percy/storybook": "^6.0.3",

src/components/about.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="about">
2-
<h2>About</h2>
2+
<h2>What is Skin?</h2>
33
<p>Skin is the official CSS framework of eBay. Skin represents the eBay brand and adheres to the following core principals:</p>
44
<dl>
55
<dt>Accessible</dt>

src/components/anchor.marko

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
static const basePath = import.meta.env.BASE_URL;
2+
3+
<a href=`${basePath}${input.href || ''}` class=input.class role=input.role target=input.target>
4+
<${input.renderBody}/>
5+
</a>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import path from 'path';
2+
3+
<for|key, comp| in=input.components>
4+
$ const componentName = path.basename(comp, '.marko');
5+
$ const name = componentName.replace(/-([a-z])/g, function (g) { return ` ${g[1].toUpperCase()}`; });
6+
$ const properName = name.charAt(0).toUpperCase() + name.slice(1);
7+
<li>
8+
<anchor href=`component/${componentName}` class="nav-link" role="menuitem">${properName}</anchor>
9+
</li>
10+
</for>
11+

src/components/components.marko

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import path from 'path';
2+
import flags from "./data/flags.json"
3+
import icons from "./data/icons.json"
4+
5+
static const componentFolders = import.meta.glob("../routes/_index/component/*/*.marko");
6+
7+
static const components = Object.keys(componentFolders).map((filePath) => {
8+
const parts = filePath.split('/');
9+
return parts.slice(0, parts.length - 1).join('/');
10+
});
11+
12+
export { components, flags, icons };
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)