Skip to content

LiberaVeritas/liberaveritas.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website

Markdown files and static site tools for my website.

Structure

All content is written in markdown. Each page or book has its own directory along with its own navigation structure specified in its nav.yaml. Each directory (including the root, docs/) has a landing page. All markdown files go inside a markdown directory (except for top level landing pages).

make

The make script converts all markdown files to html files using pandoc using template.html as a template and style.css as the default stylesheet. It also calls LinkChecker to check for bad links.

YAML

nav.yaml

Root relative pathnames must be used. chapter specifies a list of top-level items to show up in the nav bar. Each item should have name, href, and label (for CSS class/id names) set. Each item may have a secondary section list.

Example:

---
chapter:
  - name: Chapter 1
    href: /book/chapter1/chapter1.html
    label: ch1
    section:
      - name: Section 1
        href: /book/chapter1/section1.html
        label: ch1s1
  - name: Chapter 2
    href: /book/chapter2/chapter2.html
    label: ch2
    section:
      - name: Section 1
        href: /book/chapter2/section1.html
        label: ch2s1
      - name: Section 2
        href: /book/chapter2/section2.html
        label: ch2s2
  - name: Chapter 3
    href: /book/chapter3/chapter3.html
    label: ch3
---

YAML metadata

Each .md files should have a metadata header formatted in YAML.

Example:

---
title: Linear Maps
subsection:
  - Definition
  - Theorem 1
  - Theorem 2
  - Summary

previous:
  name: Vector Spaces
  href: ./vector-spaces.html
next:
  name: Inner Product Spaces
  href: ./inner-product-spaces.html
---

Relative paths can be used. previous and next (optional) are used for the navigations buttons at the bottom of the page.

Dependencies

pandoc

LinkChecker

License

All non-software written content is license under the Creative Commons Attribution-NonCommercial 4.0 International License

Releases

No releases published

Packages

No packages published

Languages