Skip to content

Commit

Permalink
Migrate manual from haskus-manual
Browse files Browse the repository at this point in the history
Convert it to Typst. Need more work but it will be done later.
  • Loading branch information
hsyl20 committed Aug 19, 2024
1 parent 0a93e25 commit b150316
Show file tree
Hide file tree
Showing 40 changed files with 9,672 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/manual/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
watch:
./typst.sh watch haskus.typ

compile:
./typst.sh compile haskus.typ
Binary file added doc/manual/fonts/ShareTechMono-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file added doc/manual/fonts/neo-sans/Neo Sans Std Black.otf
Binary file not shown.
Binary file not shown.
Binary file added doc/manual/fonts/neo-sans/Neo Sans Std Bold.otf
Binary file not shown.
Binary file added doc/manual/fonts/neo-sans/Neo Sans Std Italic.otf
Binary file not shown.
Binary file not shown.
Binary file added doc/manual/fonts/neo-sans/Neo Sans Std Light.otf
Binary file not shown.
Binary file not shown.
Binary file added doc/manual/fonts/neo-sans/Neo Sans Std Medium.otf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added doc/manual/fonts/neo-sans/Neo Sans Std Ultra.otf
Binary file not shown.
Binary file added doc/manual/fonts/uwch.ttf
Binary file not shown.
92 changes: 92 additions & 0 deletions doc/manual/haskus.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#set text(font: "Neo Sans Std")

#set heading(numbering: "1.1.1.1 ")
#show heading: it => {
set text(
weight: "medium"
, rgb("#0860a8")
, font: "Share Tech Mono"
)
v(8pt)
it
}

// Page break before level 1 titles
#show heading.where(level:1): it => {
pagebreak(weak: true)
it
}

#show raw.where(block: true): it => block(
fill: rgb("#fae1df")
, inset: 8pt
, radius: 5pt
, text(fill: rgb("#1c2826"), it)
)

#show raw.where(block: false): it => highlight(
fill: rgb("#fae1df")
, text(fill: rgb("#1c2826"), it)
)

// Palette:
// 0680A8 (blue)
// D64550 (red)
// FAE1DF (rose)
// 1C2826 (black)
// CFFFE5 (green)

#set document(
title: "Haskus packages manual"
, author: "Sylvain Henry"
, date: auto
)

#set page(
numbering: "1"
, number-align: right
)

// Front page

#page(
numbering: none,
align(center,
[
#v(40%)
#text(
size: 26pt,
[
Haskus Computer Manual
]
)\
#v(5%)
#text(
size: 22pt,
[
Sylvain Henry
]
)
#v(5%)
#text(
size: 12pt,
[
Version: #datetime.today().display()
]
)
]
)
)

#outline()

#include "src/intro.typ"
#include "src/stdlib.typ"
#include "src/system.typ"
#include "src/compiler.typ"
#include "src/graphics.typ"

#bibliography(
style: "ieee",
"src/biblio.yml"
)
Binary file added doc/manual/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions doc/manual/src/biblio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
linux-initramfs:
type: Web
title: initramfs buffer format
author:
- Al Viro
- H. Peter Anvin
date: 2002-01-13
url: https://www.kernel.org/doc/html/latest/driver-api/early-userspace/buffer-format.html
3 changes: 3 additions & 0 deletions doc/manual/src/compiler.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Compilers

#include "compiler/x86.typ"
Loading

0 comments on commit b150316

Please sign in to comment.