mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-19 15:25:31 +00:00
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:
parent
26924f93e3
commit
1c6c9f15d8
@ -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)
|
||||
|
@ -5,21 +5,29 @@
|
||||
|
||||
{% endblock %}
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
{% block summary %}
|
||||
|
||||
{%- if obj.summary %}
|
||||
|
||||
Summary
|
||||
-------
|
||||
{%- if obj.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 %}
|
||||
|
||||
{% endblock %}
|
||||
----
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
{% block inheritance %}
|
||||
|
||||
@ -51,12 +59,6 @@ Syntax
|
||||
|
||||
{% endblock %}
|
||||
|
||||
GitHub
|
||||
------
|
||||
|
||||
`View on GitHub <{{ obj.edit_link }}>`_
|
||||
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user