summaryrefslogtreecommitdiffstats
path: root/website/templates/globals
blob: 79d7d2f78d0081da32d21df1c7df591f4b0e733f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[% USE date -%]
[%
# This global template is included in every HTML file.  It is
# included before the DOCTYPE and it *must not* generate any
# output.  Be careful to chomp!  However it is a very useful
# place to put global variables.  Note that the only variable
# that is passed in here is topdir.

year = date.format(date.now, '%Y')
printable_date = date.format

# These are the sections / tabs of the site as they appear in
# the navigation at the top of all pages.

sections = [ "home", "news", "learning", "faq", "about", "contact" ]

section_titles.home = "Home"
section_titles.news = "News"
section_titles.learning = "Tutorials and videos"
section_titles.faq = "FAQ"
section_titles.about = "About this site"
section_titles.contact = "Contact us"

section_paths.home = "/"
section_paths.news = "/news/"
section_paths.learning = "/learning/"
section_paths.faq = "/faq/"
section_paths.about = "/about/"
section_paths.contact = "/contact/"

# The full list of local resources under src/learning/
#
# Put new documents at the top.
#
# If the resource is really beginner level, then set difficulty = 0.
# Use this sparingly because these appear in 'Get started' on the
# front page of the site, and also at the top of the list.
#
# Other variables:
#   difficulty: Difficulty level 0 (absolute beginner) 1 (easy) .. 5 (hardest).
#   cmdline: (optional) Set to 1 if this involves using the command line.
#   author: (optional) String containing author's name.
#   date: (optional) Date last updated (use: date +%F)
#
# The text will be displayed to the user as:
#   <a href="/learning/[name]/">[link]</a> [rest]

learning_documents = [
  { difficulty = 0, cmdline = 1,
    name = "start-virt-tools",
    link = "Where to get virt tools.",
    rest = "Learn how to download or obtain virt tools on Fedora,
            Debian, Ubuntu, RHEL and more." },
  { difficulty = 0,
    name = "start-conventions",
    link = "Names and terms used in the rest of the documentation.",
    rest = "If you confused by words like <q>paravirt</q>, <q>migration</q>,
            <q>domain</q>, then start here." },
  { difficulty = 0,
    name = "start-install-with-virt-manager",
    link = "Install a virtual machine",
    rest = "with virt-manager.  A step by step guide to creating
            your first virtual machine using simple graphical tools." },
  { difficulty = 0,
    name = "start-vm-with-virt-manager",
    link = "Start and stop virtual machines",
    rest = "using graphical virt-manager." },
  { difficulty = 0, cmdline = 1,
    name = "start-list-with-command-line",
    link = "List virtual machines",
    rest = "from the command line and shell scripts." },
  { difficulty = 1, cmdline = 1,
    name = "start-stop-vm-with-command-line",
    link = "Start and stop virtual machines",
    rest = "from the command line and shell scripts." },
  { difficulty = 1, cmdline = 1,
    name = "check-hardware-virt",
    link = "Check if your hardware supports virtualization.",
    rest = "Hardware virtualization is supported by many but not all
            modern hardware.  If enabled it offers great performance
            benefits.  This article explains the different types of
            hardware virtualization and how to check if your hardware
            supports it." },
  { difficulty = 3, cmdline = 1,
    name = "install-with-command-line",
    link = "Install a virtual machine",
    rest = "using the command line.  Create a VM from the command line
            and shell scripts." },
  { difficulty = 5, cmdline = 1,
    author = "Richard W.M. Jones", date = "2010-10-12",
    name = "advanced-virt-df",
    link = "Advanced use of virt-df.",
    rest = "Check free disk space.  Regularly check from a cron job,
            draw graphs to predict future usage, and generate alerts
            if VMs are running low on space." },
]

# NB: Make sure you don't add blank lines to the end of this file!
-%]