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 { pre {
font-family: 'Space Mono', monospace; font-family: 'Source Code Pro', monospace;
padding: 8px; padding: 8px;
color: #567; color: #567;
background: #f0f4f8; background: #f0f4f8;

View File

@ -42,7 +42,7 @@ class DocsWriter:
self.write(relative_css_path) self.write(relative_css_path)
self.write('''" rel="stylesheet"> 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> </head>
<body> <body>
<div id="main_div">''') <div id="main_div">''')

View File

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