feat: add more content

This commit is contained in:
Stevan Freeborn
2023-04-12 10:54:07 -05:00
parent 46018970d7
commit 955de7db83
13 changed files with 199 additions and 10 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ export default function CodeSnippet({
if (React.isValidElement(child)) {
const languageClassParts =
child.props.className.split('-');
if (languageClassParts.length == 2) {
if (languageClassParts.length > 1) {
const language = languageClassParts[1];
return language;
}
+2
View File
@@ -1,6 +1,8 @@
import Prism from 'prismjs';
import 'prismjs/components/prism-bash';
import 'prismjs/components/prism-csharp';
import 'prismjs/components/prism-json';
import 'prismjs/components/prism-python';
import './prism-custom.css';
export default function Fence({
+27
View File
@@ -44,4 +44,31 @@
.container>article:nth-child(2)>h1 {
padding-top: 75px;
}
}
.container>article>h2 {
margin-top: 1rem;
}
.container table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.container table>thead>tr>th,
.container table>tbody>tr>td {
padding: 0.5rem;
text-align: left;
border-bottom: 1px solid #0b3766;
}
.container table>thead>tr>th {
white-space: nowrap;
}
.container a {
text-decoration: none;
color: #64adac;
font-weight: bold;
}
+3 -1
View File
@@ -51,7 +51,9 @@ function TreeNode({ doc }: { doc: Doc }) {
</div>
) : (
<a
href={`#${doc.title.toLowerCase()}`}
href={`#${doc.title
.replaceAll(' ', '-')
.toLowerCase()}`}
className={styles.link}
>
{doc.title}