minor improvements, improve link formatting, improve css
This commit is contained in:
parent
8452b46b25
commit
fc99d0fa15
4
TODO
4
TODO
|
@ -1,4 +0,0 @@
|
|||
Add support for quoting.
|
||||
|
||||
Pages to write:
|
||||
- category theory (more general, math)
|
|
@ -0,0 +1,7 @@
|
|||
Add support for quoting.
|
||||
|
||||
Pages to write:
|
||||
- category theory (more general, math)
|
||||
- A more general "computation" page instead of linking to programming language
|
||||
in the index. This will also allow for linking to pages like lambda calculus
|
||||
and others.
|
9
format.c
9
format.c
|
@ -142,7 +142,14 @@ emit_internal_implicit_link(FILE *input, FILE *output)
|
|||
while ((*(page_ptr++) = fgetc(input)) != '}');
|
||||
*(page_ptr - 1) = '\0';
|
||||
|
||||
fprintf(output, "<a href=\"%s.html\">{%s}</a>", page, page);
|
||||
char pagename[1024];
|
||||
size_t i;
|
||||
for (i = 0; page[i] != '\0'; i++) {
|
||||
pagename[i] = (page[i] == '-' ? ' ' : page[i]);
|
||||
}
|
||||
pagename[i] = '\0';
|
||||
|
||||
fprintf(output, "<a href=\"%s.html\">{%s}</a>", page, pagename);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="stylesheet" href="../resources/style.css">
|
||||
<title>Codex</title>
|
||||
<body>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
:root {
|
||||
--fg: #ddd;
|
||||
--bg: #111;
|
||||
--pre-bg: #1a1a1a;
|
||||
/* --bg: #eee; */
|
||||
/* --fg: #111; */
|
||||
/* --pre-bg: #dedede */
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -9,6 +13,7 @@ body {
|
|||
font-family: serif;
|
||||
margin: 2em;
|
||||
max-width: 40%;
|
||||
margin-left: 4em;
|
||||
}
|
||||
|
||||
a {
|
||||
|
@ -23,4 +28,13 @@ a:hover {
|
|||
|
||||
pre {
|
||||
font-size: 14px;
|
||||
background: var(--pre-bg);
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
hr {
|
||||
width: 50%;
|
||||
border-top: 0px;
|
||||
text-align: left;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
* Haskell
|
||||
|
||||
Haskell is a purely functional, lazy, strongly and statically typed, general
|
||||
purpose programming language based on the typed {lambda-calculus lambda
|
||||
calculus}. It famously uses monads to express I/O interactions. Many of its
|
||||
strengths come from its powerful type system.
|
||||
purpose programming language based on the typed {lambda-calculus}. It famously
|
||||
uses monads to express I/O interactions. Many of its strengths come from its
|
||||
powerful type system.
|
||||
|
|
|
@ -2,4 +2,8 @@
|
|||
|
||||
Welcome to {codex}.
|
||||
|
||||
** Topics
|
||||
|
||||
{programming-languages Programming languages}
|
||||
|
||||
{site-index Full site index}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
thinking previously impossible thoughts.</blockquote>
|
||||
- Edsger Dijkstra
|
||||
|
||||
Lisp is a family of {programming-languages programming languages} which uses
|
||||
s-expressions for expressing both source code and data. Its syntax is fully
|
||||
parenthesized and features prefix notation.
|
||||
Lisp is a family of {programming-languages} which uses s-expressions for
|
||||
expressing both source code and data. Its syntax is fully parenthesized and
|
||||
features prefix notation.
|
||||
|
||||
Some dialects of Lisp include Common Lisp, Scheme and Clojure.
|
||||
|
||||
|
|
Loading…
Reference in New Issue