Clean up .NET detail page, add assemblies list

The .NET detail page was slightly messy, this cleans up and settles on some UX
there:

* Don't use an explicit header for summary, move it up under the object heading
* Drop redundant (and broken) github edit link on page, we need to fix the
  github header link instead.
* Add pattern for displaying read only fields in definition list
* Adds namespace + assemblies listing to detail page

Refs #60
This commit is contained in:
Anthony Johnson 2016-05-01 19:57:58 -07:00
parent 26924f93e3
commit 1c6c9f15d8
2 changed files with 18 additions and 15 deletions

View File

@ -265,6 +265,7 @@ class DotNetPythonMapper(PythonMapperBase):
self.children = []
self.item_map = defaultdict(list)
self.inheritance = []
self.assemblies = obj.get('assemblies', [])
# Syntax example and parameter list
syntax = obj.get('syntax', None)

View File

@ -5,22 +5,30 @@
{% endblock %}
.. contents::
:local:
{% block summary %}
{%- if obj.summary %}
Summary
-------
{{ obj.summary }}
{%- endif %}
{% endblock %}
{%- if obj.namespace %}
Namespace
:dn:ns:`{{ obj.namespace }}`
{%- endif %}
{%- if obj.assemblies %}
Assemblies
{%- for assembly in obj.assemblies %}
* {{ assembly }}
{%- endfor %}
{%- endif %}
----
.. contents::
:local:
{% block inheritance %}
{%- if obj.inheritance %}
@ -51,12 +59,6 @@ Syntax
{% endblock %}
GitHub
------
`View on GitHub <{{ obj.edit_link }}>`_
{% block content %}