Ticket #3752: 3752-0003-extfs-tester-improve-HTML-documentation-output.patch

File 3752-0003-extfs-tester-improve-HTML-documentation-output.patch, 1.6 KB (added by mooffie, 5 years ago)
  • tests/src/vfs/extfs/helpers-list/Makefile.am

    From 2a15888c597ed43ad5e9b98ffce73cbd7770aad4 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sun, 8 Jan 2017 07:21:22 +0200
    Subject: [PATCH 3/3] Ticket #3752: extfs: tester: improve HTML documentation
     output.
    
    - We now have 4'th level headers: adjust --doc-depth.
    - We have many short sections: highlight the active section's header.
    
    Signed-off-by: Mooffie <mooffie@gmail.com>
    ---
     tests/src/vfs/extfs/helpers-list/Makefile.am    | 2 +-
     tests/src/vfs/extfs/helpers-list/README.css.inc | 4 ++++
     2 files changed, 5 insertions(+), 1 deletion(-)
    
    diff --git a/tests/src/vfs/extfs/helpers-list/Makefile.am b/tests/src/vfs/extfs/helpers-list/Makefile.am
    index a0a28e9..716c3a3 100644
    a b doc: README.html 
    107107 
    108108# (Thanks to VPATH we don't need to write "$(srcdir)/README". doc/hlp/Makefile.am needlessly does this.) 
    109109README.html: README 
    110         pandoc --include-in-header=$(srcdir)/README.css.inc -N --old-dashes --toc --standalone -o $@ $< 
     110        pandoc --include-in-header=$(srcdir)/README.css.inc -N --old-dashes --toc --toc-depth=4 --standalone -o $@ $< 
    111111 
    112112EXTRA_DIST += README.css.inc 
    113113CLEANFILES += README.html 
  • tests/src/vfs/extfs/helpers-list/README.css.inc

    diff --git a/tests/src/vfs/extfs/helpers-list/README.css.inc b/tests/src/vfs/extfs/helpers-list/README.css.inc
    index a99a894..dacc4ca 100644
    a b h1, h2, h3 { 
    1616  font-family: sans-serif; 
    1717} 
    1818 
     19:target { 
     20  background: linear-gradient(45deg, #FFF 0%, #7CC 100%); 
     21} 
     22 
    1923</style>