feat: add docs section to website (#108)

This commit is contained in:
Luca Casonato
2022-03-07 21:08:55 +01:00
committed by GitHub
parent 026ed86f40
commit 73fd41be31
40 changed files with 1258 additions and 62 deletions
+46
View File
@@ -0,0 +1,46 @@
import { gfm, Handlers } from "../server_deps.ts";
// TODO(lucacasonato): hash the file and use the hash as the filename, and serve
// with high-cacheability headers.
const CSS = `${gfm.CSS}
ol.nested {
counter-reset: item;
}
ol.nested li {
display: block;
}
ol.nested li:before {
font-feature-settings: "kern" 1, "tnum" 1;
-webkit-font-feature-settings: "kern" 1, "tnum" 1;
-ms-font-feature-settings: "kern" 1, "tnum" 1;
-moz-font-feature-settings: "kern" 1, "tnum" 1;
content: counters(item, ".") ". ";
counter-increment: item;
}
.markdown-body ul {
list-style: disc;
}
.markdown-body ol {
list-style: numeric;
}
.toggle:checked + .toggled {
display: block;
}
`;
export const handler: Handlers = {
GET: () => {
return new Response(CSS, {
headers: {
"content-type": "text/css",
},
});
},
};