Minor visual improvements to the docs

This commit is contained in:
Lonami Exo 2017-04-08 12:26:48 +02:00
parent 877065d0ac
commit 64a1a69a5e
3 changed files with 6 additions and 10 deletions

View File

@ -11,7 +11,7 @@ a {
}
pre {
font-family: 'Space Mono', monospace;
font-family: 'Source Code Pro', monospace;
padding: 8px;
color: #567;
background: #f0f4f8;

View File

@ -42,7 +42,7 @@ class DocsWriter:
self.write(relative_css_path)
self.write('''" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito|Space+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro" rel="stylesheet">
</head>
<body>
<div id="main_div">''')

View File

@ -295,14 +295,12 @@ def generate_documentation(scheme_file):
else:
docs.write_text('This type has %d constructors available.' % len(constructors))
docs.begin_table(1)
docs.begin_table(2)
for constructor in constructors:
# Constructor full name
link = get_create_path_for(constructor)
link = get_relative_path(link, relative_to=filename)
docs.add_row(get_class_name(constructor),
link=link,
align='center')
docs.add_row(get_class_name(constructor), link=link)
docs.end_table()
docs.write_title('Methods returning this type', level=3)
@ -314,13 +312,11 @@ def generate_documentation(scheme_file):
else:
docs.write_text('The following %d methods return this type as a result.' % len(functions))
docs.begin_table(1)
docs.begin_table(2)
for function in functions:
link = get_create_path_for(function)
link = get_relative_path(link, relative_to=filename)
docs.add_row(get_class_name(function),
link=link,
align='center')
docs.add_row(get_class_name(function), link=link)
docs.end_table()
docs.end_body()