Skip to content

Only show the formatDocs once per group#146

Closed
wilzbach wants to merge 1 commit intodlang:masterfrom
wilzbach:only-show-formatdoc-once-per-group
Closed

Only show the formatDocs once per group#146
wilzbach wants to merge 1 commit intodlang:masterfrom
wilzbach:only-show-formatdoc-once-per-group

Conversation

@wilzbach
Copy link
Contributor

A very naive attempt at fixing #145.

The idea is that when there's a group, the DDOC sections (Parameters, Returns, See also, Examples) should only be shown once.

This still isn't perfect as I wasn't able to group all parameters nicely in my time given today, but I hope it's a good start in a direction of a more visually appealing ddox ;-)

(Note that this was also mentioned as one of the blockers for switching from ddoc to ddox: dlang/dlang.org#1526)

Before:

2017-02-28-00-20-localhost-8080 1

After:

2017-02-28-00-20-localhost-8080

s-ludwig added a commit that referenced this pull request Mar 5, 2017
This is a more complete approach for #146, combining all declarations in a doc group and removing several redundant sub headings.

Also reduces the footprint of the legal footer.
@s-ludwig
Copy link
Member

s-ludwig commented Mar 5, 2017

I've proposed an alternative approach in #147. The changes here would break pages that contain multiple doc groups and I wanted to make some further reductions. Still far from ideal, but it's getting there slowly.

@wilzbach
Copy link
Contributor Author

wilzbach commented Mar 5, 2017

I've proposed an alternative approach in #147.

Awesome! Thanks a lot!

The changes here would break pages that contain multiple doc groups and I wanted to make some further reductions. Still far from ideal, but it's getting there slowly.

As mentioned this PR was just a naive attempt to explore this ;-)

@wilzbach wilzbach closed this Mar 5, 2017
s-ludwig added a commit that referenced this pull request Mar 7, 2017
This is a more complete approach for #146, combining all declarations in a doc group and removing several redundant sub headings.

Also reduces the footprint of the legal footer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments