This file contains hidden or 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
import scrapboxData from '../scrapbox.json'; | |
import fs from 'fs-extra'; | |
import path from 'path'; | |
const distPath = path.join(process.cwd(), 'dist'); | |
async function main() { | |
fs.mkdirp(distPath); | |
scrapboxData.pages.forEach(page => { |
This file contains hidden or 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
import * as Hex from './hex'; | |
const red = Hex.create('#f00'); | |
const nonBrandedRed = '#f00'; | |
function stdoutOnlyHex(hex: Hex) { | |
console.log(hex); | |
} | |
stdoutOnlyHex(red); |
This file contains hidden or 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
:root { | |
--height-header: 10rem; | |
--width-left: 20rem; | |
--color-fg: #24292f; | |
--color-canvas-sub: #f6f8fa; | |
--color-code: #cf222e; | |
} | |
html { | |
font-size: 62.5%; |
This file contains hidden or 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
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | |
{ | |
"name": "Ubuntu", | |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | |
"image": "mcr.microsoft.com/devcontainers/base:jammy", | |
"features": { | |
// Programming languages | |
"ghcr.io/devcontainers/features/node:1": { | |
"nodeGypDependencies": true, |
OlderNewer