From 6a070d3d28cef9541fed00065566ae3efe1a1ad5 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 28 Aug 2013 02:52:56 +0000 Subject: [PATCH] Numbering of html sections todo class for html div for table of contents git-svn-id: https://svn.dealii.org/trunk@30511 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/development/cmakelists.html | 69 ++++++++++++------------- deal.II/doc/screen.css | 48 ++++++++++++++++- 2 files changed, 79 insertions(+), 38 deletions(-) diff --git a/deal.II/doc/development/cmakelists.html b/deal.II/doc/development/cmakelists.html index 5457169624..d0a7a833f9 100644 --- a/deal.II/doc/development/cmakelists.html +++ b/deal.II/doc/development/cmakelists.html @@ -15,27 +15,23 @@

How to use CMake to configure your projects with deal.II

- - - - -
Table of contents
- -
+ Make.global_options + +

cmake is the configuration and build tool we use @@ -58,7 +54,7 @@

-

Simple CMakeLists.txt

+

Simple CMakeLists.txt

In this section, we start out with a @@ -71,7 +67,7 @@ (plain text version): - TODO: Fix plain text after finalizing! +

Fix plain text after finalizing!

 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
@@ -87,12 +83,13 @@ ADD_EXECUTABLE(mycode mycode.cc)
 DEAL_II_SETUP_TARGET(mycode)
 
- TODO: Explain the two macros! +

Explain the code!

-

Adding multiple executable targets

+

Adding multiple executable targets

-

In order to specify multiple executable targets, simply repeat the last two lines of the simple CMakeLists.txt:

+

In order to specify multiple executable targets, simply repeat + the last two lines of the simple CMakeLists.txt:

 ADD_EXECUTABLE(mycode2 mycode2.cc)
 DEAL_II_SETUP_TARGET(mycode2)
@@ -106,7 +103,7 @@ a loop, possibly
 with GLOB.
 
     
-    

Adding libraries and common source files

+

Adding libraries and common source files

Adding a library is as simple as adding an executable target. We @@ -142,11 +139,11 @@ DEAL_II_SETUP_TARGET(mycode2)

You should be aware though that common.cc will be compiled for each target, not only once.

-TODO: Matthias, is this correct? +

Matthias, is this correct?

-

Adding a "run" target

+

Adding a "run" target

If you wish to have a "run" target for make, like in the deal.II @@ -161,7 +158,7 @@ ADD_CUSTOM_TARGET(run COMMAND mycode -

Autopilot style CMakeLists.txt

+

Autopilot style CMakeLists.txt

If you want a make interface similar to the deal.II library and @@ -267,11 +264,11 @@ SET(TARGET_RUN

-

Advanced CMakeLists.txt

+

Advanced CMakeLists.txt

-
+    
 
-    TODO: A Subsection for each of the following:
+      A Subsection for each of the following:
 
       - Common code for several targets. Library or adding to target definition
 
@@ -292,7 +289,7 @@ SET(TARGET_RUN
     
-

Finding the deal.II library

+

Finding the deal.II library

Finding the deal.II library should be no more than @@ -305,7 +302,7 @@ SET(TARGET_RUN specifying deal.II_DIR to point to the path were the deal.IIConfig.cmake file is located: - TODO: is deal.II_DIR still accurate? We use different above +

is deal.II_DIR still accurate? We use different above

 
@@ -328,7 +325,7 @@ SET(TARGET_RUN
 
 
     
-    

deal.IIConfig.cmake

+

deal.IIConfig.cmake

Importing the deal.IIConfig.cmake file via FIND_PACKAGE @@ -336,7 +333,7 @@ SET(TARGET_RUN DEAL_II_*:

 
-      TODO: A long list with detailed explanation...
+      

A long list with detailed explanation...

@@ -345,7 +342,7 @@ SET(TARGET_RUN -

Legacy Make.global_options

+

Legacy Make.global_options

Before version 8.0, deal.II used the diff --git a/deal.II/doc/screen.css b/deal.II/doc/screen.css index dd6605493a..f41edfa72e 100644 --- a/deal.II/doc/screen.css +++ b/deal.II/doc/screen.css @@ -6,6 +6,7 @@ body { margin: 10px; padding: 0; font-family: sans-serif; + counter-reset: section; } body.title { @@ -28,6 +29,23 @@ body.navbar { font-size: 12px; } +div.toc { + width: 50%; + color: black; + border: 1px solid #aaa; + background-color: #f9f9f9; + padding: 5px; + font-size: 88%; +} + +div.toc:before { + display: block; + content: "Table of contents"; + text-align: center; + font-size: 88%; + font-weight: bold; +} + frameset { background-color: white; border-color: black; @@ -84,17 +102,20 @@ h1, h2, h3, h4, h5, h6 { } h1 { - font-size: 175%; + font-size: 175%; + counter-reset: section; } h2 { font-size: 150%; + counter-reset: subsection; } h3 { font-size: 140%; padding-top: 1.5em; padding-bottom: 0.17em; border-bottom: 1px dashed #aaaaaa; } + h4 { font-size: 110%; border-bottom: none; font-weight: bold; @@ -108,6 +129,16 @@ h6 { font-size: 80%; font-weight: bold; } +h2:before { + counter-increment: section; + content: counter(section) ". "; +} + +h3:before { + counter-increment: subsection; + content: counter(section) "." counter(subsection) ". "; +} + div.right { text-align: right; } @@ -121,13 +152,18 @@ ul { margin: 0.3em 0 0 1.5em; padding:0; } + ol { line-height: 1.5em; margin: 0.3em 0 0 3.2em; padding:0; list-style-image: none; } -li { margin-bottom: 0.1em; } + +li { + margin-bottom: 0.1em; +} + dt { font-weight: bold; margin-bottom: 0.1em; @@ -259,6 +295,14 @@ td.build { text-decoration: line-through; } +.todo:before { + content: "TODO: "; +} + +.todo { + color: Red; +} + .deprecated { text-decoration: line-through; } -- 2.39.5