add page TOCs
This commit is contained in:
1
Makefile
1
Makefile
@@ -15,6 +15,7 @@ html-cfp:
|
||||
|
||||
MD2HTML=$(PANDOC) \
|
||||
-f markdown-smart-tex_math_dollars+autolink_bare_uris+wikilinks_title_after_pipe \
|
||||
--toc \
|
||||
--lua-filter=wikilinks.lua \
|
||||
--lua-filter=headings.lua \
|
||||
|
||||
|
||||
@@ -27,3 +27,10 @@ h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
|
||||
li {
|
||||
margin-bottom:0;
|
||||
}
|
||||
|
||||
#TOC {
|
||||
border-top: thin solid black;
|
||||
padding-top: 1em;
|
||||
border-bottom: thin solid black;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
10
page.tmpl
10
page.tmpl
@@ -37,6 +37,16 @@
|
||||
<p><a href="/">plaintextaccounting.org</a></p>
|
||||
<h1><a href="">$title$</a></h1>
|
||||
|
||||
$if(toc)$
|
||||
<nav id="$idprefix$TOC" role="doc-toc">
|
||||
$if(toc-title)$
|
||||
<h2 id="$idprefix$toc-title">$toc-title$</h2>
|
||||
$endif$
|
||||
<b>Contents</b><br>
|
||||
$table-of-contents$
|
||||
</nav>
|
||||
$endif$
|
||||
|
||||
$body$
|
||||
|
||||
<hr>
|
||||
|
||||
@@ -9,11 +9,7 @@ and we'll add it, or you can
|
||||
[add it yourself](https://github.com/plaintextaccounting/plaintextaccounting/blob/master/src/Cookbook.md).
|
||||
|
||||
|
||||
**[Getting started](#getting-started)**\
|
||||
**[General usage](#general-usage)**\
|
||||
**[Accounting situations](#accounting-situations)**\
|
||||
|
||||
### Getting started
|
||||
## Getting started
|
||||
|
||||
- [[index|Home]] - links to news, videos, articles, docs and software.
|
||||
- [[Newcomer FAQ]]
|
||||
@@ -23,7 +19,7 @@ and we'll add it, or you can
|
||||
- [[Don't Sink Your First Attempts at Plaintext Accounting]] h/ledger beginner syntax tips
|
||||
- [[quickref/index|Syntax quick reference]]
|
||||
|
||||
### General usage
|
||||
## General usage
|
||||
|
||||
- [[Importing data]]
|
||||
- [[Reconciling]]
|
||||
@@ -34,7 +30,7 @@ and we'll add it, or you can
|
||||
- [[Recording dates]]
|
||||
- Starting a new file
|
||||
|
||||
### Accounting situations
|
||||
## Accounting situations
|
||||
|
||||
- [[Borrowing and Lending]]
|
||||
- [[Budgeting]]
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
% Newcomer FAQ
|
||||
|
||||
**[What is this](#what-is-this)**\
|
||||
**[Objections and concerns](#objections-and-concerns)**\
|
||||
|
||||
## What is this
|
||||
|
||||
### What is accounting, and what can it do for me?
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
% Plain Text Accounting (PTA)
|
||||
|
||||
---
|
||||
toc: false
|
||||
...
|
||||
|
||||
|
||||
<!-- For editing tips, see ../README.md -->
|
||||
|
||||
<div style="float:right; width:30%; margin:0 1em; z-index:-1;">
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
% Syntax quick reference
|
||||
|
||||
---
|
||||
toc: false
|
||||
...
|
||||
|
||||
<link href="quickref.css" rel="stylesheet">
|
||||
|
||||
**[Big 3](index.html)**
|
||||
|
||||
Reference in New Issue
Block a user