Compare commits

..

No commits in common. "ea3d4f32336dfc6ff88621760c470f5f45a21f9d" and "c9a945559d51b2cb5f69eabca993ed4a5025a1d3" have entirely different histories.

11 changed files with 3 additions and 1911 deletions

4
.gitignore vendored
View file

@ -1,8 +1,4 @@
site/vendor site/vendor
site/node_modules
site/_site site/_site
site/.bundle site/.bundle
site/.jekyll-cache site/.jekyll-cache
# Local Netlify folder
site/.netlify

View file

@ -5,12 +5,8 @@ author:
email: dani@00dani.me email: dani@00dani.me
description: "Bootstrap and simple management script for my dotfiles" description: "Bootstrap and simple management script for my dotfiles"
url: 'https://dots.00dani.me' url: 'https://dots.00dani.me'
exclude:
- netlify.toml
- package.json
- bun.lockb
- node_modules
# Build settings
theme: minima theme: minima
minima: minima:
skin: auto skin: auto

View file

@ -1,9 +0,0 @@
pre {
margin-bottom: 0;
}
code {
tab-size: 2;
}
a {
font-size: 1.3em;
}

View file

@ -1 +0,0 @@
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#272822;color:#ddd}.hljs-keyword,.hljs-literal,.hljs-name,.hljs-selector-tag,.hljs-strong,.hljs-tag{color:#f92672}.hljs-code{color:#66d9ef}.hljs-attribute,.hljs-link,.hljs-regexp,.hljs-symbol{color:#bf79db}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-emphasis,.hljs-section,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-string,.hljs-subst,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type,.hljs-variable{color:#a6e22e}.hljs-class .hljs-title,.hljs-title.class_{color:#fff}.hljs-comment,.hljs-deletion,.hljs-meta,.hljs-quote{color:#75715e}.hljs-doctag,.hljs-keyword,.hljs-literal,.hljs-section,.hljs-selector-id,.hljs-selector-tag,.hljs-title,.hljs-type{font-weight:700}

File diff suppressed because it is too large Load diff

View file

@ -1,45 +0,0 @@
import hljs from 'highlight.js/lib/core';
import bash from 'highlight.js/lib/languages/bash';
hljs.registerLanguage('bash', bash);
const addStylesheet = function(url: string): void {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = url;
document.head.appendChild(link);
};
const wrapAsCode = function(container: HTMLElement, language: string): HTMLElement {
const code = container.innerHTML.split('\n');
code.pop(); // Drop the line that actually runs this script, we don't need it now.
const codeElement = document.createElement('code');
codeElement.className = `language-${language}`;
codeElement.innerHTML = code.join('\n');
const pre = document.createElement('pre');
pre.appendChild(codeElement);
container.replaceChildren(pre);
return codeElement;
};
const addReadmeLink = function(codeblock: HTMLElement): void {
const span = document.createElement('span');
span.className = 'hljs-comment';
const readme = document.createElement('a');
readme.innerText = 'WHAT IS THIS';
readme.href = 'https://dots.00dani.me/README';
span.append('# ', readme);
codeblock.querySelector('span.hljs-meta + span.hljs-comment')?.replaceWith(span);
};
addStylesheet('/assets/css/style.css');
addStylesheet('/assets/css/code.css');
addStylesheet('/assets/css/monokai.min.css');
const codeblock = wrapAsCode(document.body, 'bash');
hljs.highlightElement(codeblock);
addReadmeLink(codeblock);

Binary file not shown.

View file

@ -1,4 +1,4 @@
--- ---
--- ---
{% include_relative local/bin/dots %} {% include_relative local/bin/dots %}
# <script type="text/javascript" src="{{ '/assets/js/highlight.js' | relativepath }}"></script> # <link rel="stylesheet" href="/assets/css/style.css"><style>body { display: block; white-space: pre-wrap; font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace; margin: 5px; tab-size: 2; } a { font-size: 1.3em; }</style>

View file

@ -1 +1 @@
../dot-local ../local

View file

@ -1,4 +0,0 @@
[build]
base = "site/"
publish = "site/_site/"
command = "jekyll build"

View file

@ -1 +0,0 @@
{ "dependencies": { "highlight.js": "^11.9.0" } }