./src/
src/cli.ts
src/index.ts
./vite.config.ts
vite.config.ts
import { resolve } from "node:path"
./src/
src/cli.ts
src/index.ts
./vite.config.ts
vite.config.ts
import { resolve } from "node:path"
#! /bin/bash | |
if [[ -z $1 ]] || [[ "$1" != "-r" ]] && [[ "$1" != "--reinstall" ]]; then | |
type docker >/dev/null 2>&1 && echo "Docker already installed, exiting" && exit 0 | |
fi | |
echo "Installing Docker..." | |
sleep 2 | |
# from the docker website - Install Docker Engine on Ubuntu |
#!/bin/bash | |
type docker >/dev/null 2>&1 || { echo "Docker could not be found"; exit 1; } | |
function usage() | |
{ | |
cat << EOF | |
Usage: $progname [--port NUM] [--dir STR] [--image STR] | |
optional arguments: |
#!/bin/bash | |
## installs node 16.x | |
## install with: | |
## curl -fsSL https://tinyurl.com/install-node-16-pop-os | sudo -E bash - | |
sudo rm /etc/apt/sources.list.d/nodesource.list | |
sudo apt --fix-broken install | |
sudo apt update |
this is a likely folder structure:
/docs/ << all dirs in docs are added as categories
./[category]/
./[section]/ << all dirs in category are added as category sections
./[article].md << all .md files in section are added as section articles
EXAMPLE:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<h1>yo</h1> |
const fs = require("fs"); | |
const path = require("path"); | |
const glob = require("glob"); | |
const TurndownService = require("turndown"); | |
const turndownService = new TurndownService({ | |
// options | |
headingStyle: "atx", | |
bulletListMarker: "-", | |
linkStyle: "referenced", |
#!/bin/bash | |
usage() { | |
cat <<EOM | |
Usage: | |
$(basename $0) '[remotes]' '[command]' | |
example: | |
$(basename $0) 'ELIT ASHC' 'cd /var/www/html && pwd' | |
EOM |