Rename 'Expanded Table of Contents' to 'Full Table of Contents', and generate full toc and chapter tocs like CSS ones.
authorCameron McCormack <cam@mcc.id.au>
Wed, 09 May 2012 20:47:16 +0200
changeset 57 6c0b37390603
parent 56 7fe673d7c46e
child 58 f24cf746eae1
Rename 'Expanded Table of Contents' to 'Full Table of Contents', and generate full toc and chapter tocs like CSS ones.
master/expanded-toc.html
master/publish.xml
master/style/default_svg.css
master/toc.html
--- a/master/expanded-toc.html	Wed May 09 19:42:24 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional+edit//EN" "xhtml1-transitional+edit.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:edit="http://xmlns.grorg.org/SVGT12NG/">
-<head>
-  <title>Expanded Table of Contents</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-  <link rel="stylesheet"           title="Default"               type="text/css" media="screen" href="style/default_svg.css"/>
-  <link rel="alternate stylesheet" title="No issues/annotations" type="text/css" media="screen" href="style/default_no_issues.css"/>
-  <link rel="alternate stylesheet" title="CSS3 Unmodified"       type="text/css" media="screen" href="style/default.css"/>
-  <link rel="alternate stylesheet" title="SVG 1.1"               type="text/css" media="screen" href="style/svg-style.css"/>
-  <!-- W3C style sheet will be added here during processing. -->
-</head>
-<body>
-
-<h1>Expanded Table of Contents</h1>
-
-<edit:fulltoc/>
-
-</body>
-</html>
--- a/master/publish.xml	Wed May 09 19:42:24 2012 +0200
+++ b/master/publish.xml	Wed May 09 20:47:16 2012 +0200
@@ -21,13 +21,13 @@
   <definitions href='definitions.xml'/>
   <interfaces idl='../build/svg.idlx'/>
 
-  <toc href='expanded-toc.html'/>
+  <toc href='toc.html'/>
   <elementindex href='eltindex.html'/>
   <attributeindex href='attindex.html'/>
   <propertyindex href='propidx.html'/>
 
   <index name='index'/>
-  <page name='expanded-toc'/>
+  <page name='toc' toc="true"/>
   <chapter name='intro'/>
   <chapter name='concepts'/>
   <chapter name='render'/>
--- a/master/style/default_svg.css	Wed May 09 19:42:24 2012 +0200
+++ b/master/style/default_svg.css	Wed May 09 20:47:16 2012 +0200
@@ -218,6 +218,12 @@
 .header.bottom { border-bottom: 1px solid #ccc; margin-top: 2em }
 .header .namedate { display: block; float: left }
 
+/* The "Contents" header before a chapter's toc. */
+h2.contents { font-size: inherit; color: black; font-weight: bold; margin-bottom: 1em }
+
+/* In appendix tocs, don't have a gap where section numbers would go. */
+ul.appendix-toc, ul.appendix-toc ul { margin-left: 0 }
+
 /*
  * Temporary styles for use only while the spec is in development:
  */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/master/toc.html	Wed May 09 20:47:16 2012 +0200
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional+edit//EN" "xhtml1-transitional+edit.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:edit="http://xmlns.grorg.org/SVGT12NG/">
+<head>
+  <title>Full Table of Contents</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+  <link rel="stylesheet"           title="Default"               type="text/css" media="screen" href="style/default_svg.css"/>
+  <link rel="alternate stylesheet" title="No issues/annotations" type="text/css" media="screen" href="style/default_no_issues.css"/>
+  <link rel="alternate stylesheet" title="CSS3 Unmodified"       type="text/css" media="screen" href="style/default.css"/>
+  <link rel="alternate stylesheet" title="SVG 1.1"               type="text/css" media="screen" href="style/svg-style.css"/>
+  <!-- W3C style sheet will be added here during processing. -->
+</head>
+<body>
+
+<h1>Full Table of Contents</h1>
+
+<edit:fulltoc/>
+
+</body>
+</html>