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