From 471556a19e68b372155095c1b11aa568735fe867 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Feb 2016 04:25:00 +0200 Subject: First part of TOC generation support (no links yet) Currently only supported in the HTML output. --- tests/toc/toc.cli | 58 ++++++++++++++++++++++++++++++++++++++ tests/toc/toc.html | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 tests/toc/toc.cli create mode 100644 tests/toc/toc.html (limited to 'tests') diff --git a/tests/toc/toc.cli b/tests/toc/toc.cli new file mode 100644 index 0000000..5e9c43a --- /dev/null +++ b/tests/toc/toc.cli @@ -0,0 +1,58 @@ +"\h1|Table of Contents|" +"\$TOC$" + +" +\h0|Preface| + +This document describes something awesome. + +\h|About This Document| + +And this document is also awesome. + +\h|More Information| + +It is so awesome that no further information will be required." + +" +\H|PART I| + +Start of part one. + +\h1|Introduction| + +Beginning of the first chapter. + +\h|Architecture and Workflow| + +Some basics. + +\h|Benefits| + +You will like them. + +\h1|Hello World| + +Beginning of the second chapter. + +\h|Setup| + +More basics. + +\h|Compiling| + +How to build the example + +\h2|Compiling with GCC| + +GCC + +\h2|Compiling with Clang| + +Clang + +\h|Conclusion| + +Some remarks. + +" diff --git a/tests/toc/toc.html b/tests/toc/toc.html new file mode 100644 index 0000000..383ff12 --- /dev/null +++ b/tests/toc/toc.html @@ -0,0 +1,82 @@ +

Table of Contents

+ + + + + + +
Preface + + + +
About This Document
More Information
+
PART I
1Introduction + + + +
1.1Architecture and Workflow
1.2Benefits
+
2Hello World + + + + +
2.1Setup
2.2Compiling + + + +
2.2.1Compiling with GCC
2.2.2Compiling with Clang
+
2.3Conclusion
+
+ +

Preface

+ +

This document describes something awesome.

+ +

About This Document

+ +

And this document is also awesome.

+ +

More Information

+ +

It is so awesome that no further information will be required.

+ +

PART I

+ +

Start of part one.

+ +

Introduction

+ +

Beginning of the first chapter.

+ +

Architecture and Workflow

+ +

Some basics.

+ +

Benefits

+ +

You will like them.

+ +

Hello World

+ +

Beginning of the second chapter.

+ +

Setup

+ +

More basics.

+ +

Compiling

+ +

How to build the example

+ +

Compiling with GCC

+ +

GCC

+ +

Compiling with Clang

+ +

Clang

+ +

Conclusion

+ +

Some remarks.

+ -- cgit v1.1