@chassis-ui/docs 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Shared Astro layouts, components, and utilities for Chassis documentation sites.
|
|
4
4
|
|
|
5
|
-
[](https://opensource.org/licenses/MIT) [](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@chassis-ui/docs) [](https://www.npmjs.com/package/@chassis-ui/docs)
|
|
6
6
|
|
|
7
7
|
## Overview
|
|
8
8
|
|
|
@@ -61,15 +61,15 @@ import { generateTOC, processImage } from '@chassis-ui/docs'
|
|
|
61
61
|
|
|
62
62
|
## Exports
|
|
63
63
|
|
|
64
|
-
| Subpath | Contents
|
|
65
|
-
| ------------------------------- |
|
|
64
|
+
| Subpath | Contents |
|
|
65
|
+
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
66
66
|
| `@chassis-ui/docs` | Library functions: `highlight`, `image`, `layout`, `markdown`, `placeholder`, `rehype`, `shortcodes`, `site`, `toc`, `utils` |
|
|
67
|
-
| `@chassis-ui/docs/layouts/*` | `BaseLayout`, `DocsLayout`, `RedirectLayout`, `SingleLayout`
|
|
68
|
-
| `@chassis-ui/docs/components/*` | `DocsSidebar`, `FeatureCard`, `NavLink`, `ResponsiveImage`, `TableOfContents`, `ThemeToggler`
|
|
69
|
-
| `@chassis-ui/docs/shortcodes/*` | MDX shortcode components
|
|
70
|
-
| `@chassis-ui/docs/libs/*` | Direct access to individual library modules
|
|
71
|
-
| `@chassis-ui/docs/js/*` | Client-side scripts
|
|
72
|
-
| `@chassis-ui/docs/scss/*` | SCSS utilities and partials
|
|
67
|
+
| `@chassis-ui/docs/layouts/*` | `BaseLayout`, `DocsLayout`, `RedirectLayout`, `SingleLayout` |
|
|
68
|
+
| `@chassis-ui/docs/components/*` | `DocsSidebar`, `FeatureCard`, `NavLink`, `ResponsiveImage`, `TableOfContents`, `ThemeToggler` |
|
|
69
|
+
| `@chassis-ui/docs/shortcodes/*` | MDX shortcode components |
|
|
70
|
+
| `@chassis-ui/docs/libs/*` | Direct access to individual library modules |
|
|
71
|
+
| `@chassis-ui/docs/js/*` | Client-side scripts |
|
|
72
|
+
| `@chassis-ui/docs/scss/*` | SCSS utilities and partials |
|
|
73
73
|
|
|
74
74
|
### Source Layout
|
|
75
75
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chassis-ui/docs",
|
|
3
3
|
"description": "Shared Astro components and layouts for Chassis documentation sites.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@astrojs/markdown-remark": "^7.0.0",
|
|
48
|
-
"@chassis-ui/css": ">=0.3.
|
|
48
|
+
"@chassis-ui/css": ">=0.3.3",
|
|
49
49
|
"@pagefind/component-ui": "^1.0.0",
|
|
50
50
|
"@shikijs/transformers": "^4.3.1",
|
|
51
51
|
"astro": "^7.0.0",
|
|
@@ -39,6 +39,9 @@ const pageTitle = isHome
|
|
|
39
39
|
<meta charset="UTF-8" />
|
|
40
40
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
41
41
|
|
|
42
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
43
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
44
|
+
|
|
42
45
|
<meta name="description" content={description} />
|
|
43
46
|
|
|
44
47
|
<meta name="author" content={getConfig().authors} />
|
|
@@ -29,8 +29,8 @@ const socialImageSize = await getStaticImageSize(path.join(getDocsPublicFsPath()
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
31
|
<meta name="twitter:card" content="summary_large_image" />
|
|
32
|
-
<meta name="twitter:site" content=`@${getConfig().
|
|
33
|
-
<meta name="twitter:creator" content=`@${getConfig().
|
|
32
|
+
<meta name="twitter:site" content=`@${getConfig().x_username}` />
|
|
33
|
+
<meta name="twitter:creator" content=`@${getConfig().x_username}` />
|
|
34
34
|
<meta name="twitter:title" content={title} />
|
|
35
35
|
<meta name="twitter:description" content={description} />
|
|
36
36
|
<meta name="twitter:image" content={socialImageUrl} />
|
|
@@ -107,21 +107,21 @@ const isActive = (path: string) => {
|
|
|
107
107
|
<ul class="navbar-nav flex-row flex-wrap large:ms-auto align-items-center">
|
|
108
108
|
<NavLink
|
|
109
109
|
class="px-0 large:px-small"
|
|
110
|
-
href={getConfig().
|
|
110
|
+
href={`https://figma.com/@${getConfig().figma_handle}`}
|
|
111
111
|
target="_blank"
|
|
112
112
|
rel="noopener"
|
|
113
113
|
>
|
|
114
|
-
<Icon name="
|
|
115
|
-
<small class="large:d-none ms-xsmall">
|
|
114
|
+
<Icon name="figma-brand" title="Figma" />
|
|
115
|
+
<small class="large:d-none ms-xsmall">Figma Community</small>
|
|
116
116
|
</NavLink>
|
|
117
117
|
<NavLink
|
|
118
118
|
class="px-0 large:px-small"
|
|
119
|
-
href={`https://
|
|
119
|
+
href={`https://github.com/${getConfig().github_org}`}
|
|
120
120
|
target="_blank"
|
|
121
121
|
rel="noopener"
|
|
122
122
|
>
|
|
123
|
-
<Icon name="
|
|
124
|
-
<small class="large:d-none ms-xsmall">
|
|
123
|
+
<Icon name="github-brand" title="GitHub" />
|
|
124
|
+
<small class="large:d-none ms-xsmall">GitHub</small>
|
|
125
125
|
</NavLink>
|
|
126
126
|
<li class="nav-item col-12 large:col-auto">
|
|
127
127
|
<div class="vr d-none large:d-flex h-100 large:mx-2xsmall"></div>
|
package/src/scss/main.scss
CHANGED
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
align-items: center;
|
|
61
61
|
|
|
62
62
|
@include media-breakpoint-down(medium) {
|
|
63
|
-
margin
|
|
63
|
+
margin-block-start: -25%;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
img {
|
|
67
67
|
vertical-align: middle;
|
|
68
68
|
zoom: 1.5;
|
|
69
69
|
transform: rotate(30deg) skewX(-30deg) scaleY(.866);
|