minor improvements, improve link formatting, improve css

This commit is contained in:
opFez 2021-07-31 18:01:59 +02:00
parent 8452b46b25
commit fc99d0fa15
8 changed files with 40 additions and 11 deletions

4
TODO
View File

@ -1,4 +0,0 @@
Add support for quoting.
Pages to write:
- category theory (more general, math)

7
TODO.org Normal file
View File

@ -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.

View File

@ -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

View File

@ -3,4 +3,5 @@
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="../resources/style.css">
<title>Codex</title>
<body>

View File

@ -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;
}

View File

@ -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.

View File

@ -2,4 +2,8 @@
Welcome to {codex}.
** Topics
{programming-languages Programming languages}
{site-index Full site index}

View File

@ -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.