all: html_readme pdf_readme
html_readme:
- pandoc -f markdown+pipe_tables -t html5 --css readme.css -s PortingGuide.md -o PortingGuide.html
+ pandoc -f markdown+pipe_tables --number-sections --toc -t html5 --css readme.css -s PortingGuide.md -o PortingGuide.html
pdf_readme:
- pandoc -f markdown+pipe_tables -s PortingGuide.md -o PortingGuide.pdf
+ pandoc -f markdown+pipe_tables --number-sections --toc -s PortingGuide.md -o PortingGuide.pdf
clean:
rm PortingGuide.html PortingGuide.pdf
%SWAP Porting guide
-# Table of Contents
-* [Introduction to SWAP](#introduction-to-swap)
-* [SWAP architecture and components](#swap-architecture-and-components)
-* [SWAP porting procedure](#swap-porting-procedure)
- * [Kernel with memory protection or without kernel modules support](#kernel-with-memory-protection-or-without-kernel-modules-support)
- * [Checking and applying SWAP kernel hooks](#applying-swap-kernel-hooks)
- * [Checking SWAP kernel hooks existance in kernel](#checking-swap-kernel-hooks-existance-in-kernel)
- * [Applying SWAP kernel hooks by GIT](#applying-swap-kernel-hooks-by-git)
- * [Applying SWAP kernel hooks manually](#applying-swap-kernel-hooks-manually)
- * [SWAP modules and kernel sources synchronization](#swap-modules-and-kernel-sources-synchronization)
- * [Manual synchronization](#manual-synchronization)
- * [Usign sync script](#using-sync-script)
-* [Testing SWAP](#testing-swap)
-
# Introduction to SWAP
**SWAP** is a Tizen dynamic binary instrumentation tool, it allows developers