Skip to content

Commit 6bc3ac7

Browse files
committed
fix some styles
1 parent 7828c0c commit 6bc3ac7

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

scripts/vercel-build.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
echo "Generating node.1"
2-
1+
echo "Generating man page (node.1)"
32
node bin/cli.mjs generate \
43
-t man-page \
54
-i "./node/doc/api/cli.md" \
65
-o "./node/node.1" \
76
--skip-lint
87

9-
echo "Generating addon tests"
10-
8+
echo "Generating addon tests"
119
node bin/cli.mjs generate \
1210
-t addon-verify \
1311
-i "./node/doc/api/addons.md" \
1412
-o "./node/test/addons" \
1513
--skip-lint
1614

17-
echo "Generating API doc links"
18-
15+
echo "Generating API doc links"
1916
node bin/cli.mjs generate \
2017
-t api-links \
2118
-i "./node/lib/*.js" \
2219
-o "./out" \
2320
--skip-lint
2421

25-
echo "Generating API docs (orama, json, llms, web)"
26-
22+
echo "Generating API docs: orama-db, legacy-json, llms-txt, web"
2723
node bin/cli.mjs generate \
2824
-t orama-db \
2925
-t legacy-json \

src/generators/web/constants.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export const JSX_IMPORTS = {
1010
},
1111
SideBar: {
1212
name: 'SideBar',
13-
source: './components/SideBar.jsx',
13+
source: './components/SideBar/index.jsx',
1414
},
1515
MetaBar: {
1616
name: 'MetaBar',
17-
source: './components/MetaBar.jsx',
17+
source: './components/MetaBar/index.jsx',
1818
},
1919
CodeBox: {
2020
name: 'CodeBox',

src/generators/web/ui/components/MetaBar.jsx renamed to src/generators/web/ui/components/MetaBar/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { CodeBracketIcon, DocumentIcon } from '@heroicons/react/24/outline';
22
import MetaBar from '@node-core/ui-components/Containers/MetaBar';
33
import GitHubIcon from '@node-core/ui-components/Icons/Social/GitHub';
44

5+
import styles from './index.module.css';
6+
57
const iconMap = {
68
JSON: CodeBracketIcon,
79
MD: DocumentIcon,
@@ -45,7 +47,7 @@ export default ({
4547
return (
4648
<li key={title}>
4749
<a href={path}>
48-
{Icon && <Icon className="inline w-4 h-4 mr-1" />}
50+
{Icon && <Icon className={styles.icon} />}
4951
{title}
5052
</a>
5153
</li>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.icon {
2+
display: inline;
3+
width: 1rem;
4+
height: 1rem;
5+
margin-right: 0.25rem;
6+
}

src/generators/web/ui/components/SideBar.jsx renamed to src/generators/web/ui/components/SideBar/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import Select from '@node-core/ui-components/Common/Select/index.js';
22
import SideBar from '@node-core/ui-components/Containers/Sidebar';
33

4+
import styles from './index.module.css';
5+
46
/**
57
* @typedef {Object} SideBarProps
68
* @property {string} pathname - The current document
@@ -34,6 +36,8 @@ export default ({ versions, pathname, currentVersion, docPages }) => (
3436
<Select
3537
label="Node.js version"
3638
values={versions}
39+
inline={true}
40+
className={styles.select}
3741
placeholder={currentVersion}
3842
onChange={redirect}
3943
/>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.select {
2+
width: 100%;
3+
}

0 commit comments

Comments
 (0)