[ADD] doc: new documentation, with training tutorials, and new scaffolding
[odoo/odoo.git] / doc / _themes / odoodoc / odoo_pygments.py
1 # -*- coding: utf-8 -*-
2
3 import imp
4 import sys
5
6 from pygments.style import Style
7 from pygments.token import *
8
9 # extracted from getbootstrap.com
10 class OdooStyle(Style):
11     background_color = '#ffffcc'
12     highlight_color = '#fcf8e3'
13     styles = {
14         Whitespace: '#BBB',
15         Error: 'bg:#FAA #A00',
16
17         Keyword: '#069',
18         Keyword.Type: '#078',
19
20         Name.Attribute: '#4F9FCF',
21         Name.Builtin: '#366',
22         Name.Class: '#0A8',
23         Name.Constant: '#360',
24         Name.Decorator: '#99F',
25         Name.Entity: '#999',
26         Name.Exception: '#C00',
27         Name.Function: '#C0F',
28         Name.Label: '#99F',
29         Name.Namespace: '#0CF',
30         Name.Tag: '#2F6F9F',
31         Name.Variable: '#033',
32
33         String: '#d44950',
34         String.Backtick: '#C30',
35         String.Char: '#C30',
36         String.Doc: 'italic #C30',
37         String.Double: '#C30',
38         String.Escape: '#C30',
39         String.Heredoc: '#C30',
40         String.Interol: '#C30',
41         String.Other: '#C30',
42         String.Regex: '#3AA',
43         String.Single: '#C30',
44         String.Symbol: '#FC3',
45
46         Number: '#F60',
47
48         Operator: '#555',
49         Operator.Word: '#000',
50
51         Comment: '#999',
52         Comment.Preproc: '#099',
53
54         Generic.Deleted: 'bg:#FCC border:#c00',
55         Generic.Emph: 'italic',
56         Generic.Error: '#F00',
57         Generic.Heading: '#030',
58         Generic.Inserted: 'bg:#CFC border:#0C0',
59         Generic.Output: '#AAA',
60         Generic.Prompt: '#009',
61         Generic.Strong: '',
62         Generic.Subheading: '#030',
63         Generic.Traceback: '#9C6',
64     }
65
66
67 modname = 'pygments.styles.odoo'
68 m = imp.new_module(modname)
69 m.OdooStyle = OdooStyle
70 sys.modules[modname] = m