Skip to content

Latest commit

 

History

History

diagrams

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hugo Book Diagrams

Source files to generate the diagram images in SVG using Dia.


Table of Contents


Folder Contents

  • build.sh — Create SVG images from Dia sourcefiles.
  • deploy.sh — Copy built SVG images to ../../docs_src/.

Object Tree diagrams (Book I: §3.2):

Hugo Compiler flowchart (Book II: §25):

Hugo Engine flowchart (Book II: §26):

Hugo Debugger flowchart (Book II: §27):

Diagrams Previews

Object Tree Diagrams

Used in §3.2. The Object Tree.

1st Diagram

Object Tree example 1


2nd Diagram

Object Tree example 2


3rd Diagram

Object Tree example 3


Hugo Compiler Flowchart

Used in §25. The Hugo Compiler and How It Works.

Hugo Compiler Diagram


Hugo Engine Flowchart

Used in §26. The Hugo Engine and How It Works.

Hugo Engine Diagram


Hugo Debugger Flowchart

Used in §27. Dark Secrets of the Hugo Debugger.

Hugo Debugger Diagram


System Requirements

In order to edit the diagram's sourcefile, or to run the scripts in this folder, you'll need to install Dia Diagram Editor, a free and open source cross platform tool for editing diagrams.

Diagrams Editing Notes

Some annotations on Dia assets and settings used in the creation of the SVG diagrams sources.

NOTE — The Courier New font was chosen because it's a universally safe font that should be available on all OSs, including smart phones and tablets.

Attempts to use "monospace" instead of a specific font name didn't turn out to provide reliable cross-browser behaviour, and was deemed as potentially unsafe to use with other backends.

Courier New is expected to be supported by all conversion backends as well as being properly previewed in all formats on all OSs.

Object Trees Fonts and Colours

For the Object Trees diagrams, I've used Dia's built-in Flowchart Shapes.

And the following fonts:

  • Courier New (bold), 28 pt.

Flowcharts Fonts and Colours

For the flowchart diagrams, I've used Dia's built-in Flowchart Shapes.

And the following fonts:

  • Courier New (normal, bold), 28 pt.

Text colour variations:

element text colour description
Element Title #2660BF Medium Blue
Ref. Number #BA3925 Dark Red

For the diagrams shapes background colours, I've used the same colour scheme adopted by VisualParadigm Online Diagrams:

symbol bg-colour
Terminator #F8CECC
Process #FFE599
Decision #FFCE9F
Data #D4E1F5

Text Overlays

In order to achieve special alignments in the same diagram box, an extra text overlay was used in some places, positioned on top of the main box to ensure that right aligned texts (usually, file names) will be preserved.

This was necessary due to multiple spaces being treated as one, and the impossibility of using special spaces with the Courier New font (e.g. non-breaking spaces or numeric spaces).

When editing the diagrams, be mindful of the presence of these text boxes.

External Links

Dia Diagram Editor

Flowcharts

SVG Images

Web Safe Fonts

Resources and articles on which fonts are safe to use based on common OSs' availability (this affects fonts used in SVG images too):