feat: add dockerfile.md cheatsheet.

This commit is contained in:
jaywcjlove
2022-09-30 17:33:13 +08:00
parent 410c8f09da
commit 7487fbf680
11 changed files with 209 additions and 25 deletions

View File

@ -1,6 +1,10 @@
import { logo, github, editor } from './logo.mjs';
import path from 'path';
import { github, editor } from './logo.mjs';
import { getSVGNode } from '../utils/getSVGNode.mjs';
const ICONS_PATH = path.resolve(process.cwd(), 'scripts/assets/quickreference.svg')
export function header({ homePath, githubURL = '' }) {
const svgNode = getSVGNode(ICONS_PATH)
const data = [
{
href: githubURL,
@ -35,7 +39,19 @@ export function header({ homePath, githubURL = '' }) {
href: homePath,
class: ['logo'],
},
children: logo,
children: [
...svgNode,
{
type: 'element',
tagName: 'span',
properties: {
class: ['title'],
},
children: [
{ type: 'text', value: 'Quick Reference' }
]
}
],
},
{
type: 'element',