Merge pull request #785 from readthedocs/style-cpp-domain

Fix styling of generated cpp documentation
This commit is contained in:
Anthony 2019-07-25 19:08:45 -06:00 committed by GitHub
commit b360305d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 5 deletions

View File

@ -1,15 +1,34 @@
*********************
:mod:`test_py_module`
*********************
***************************************
API documentation and generated content
***************************************
.. contents:: Table of Contents
:mod:`test_py_module`
=====================
.. automodule:: test_py_module.test
:members:
:private-members:
:special-members:
C++ API
=======
.. cpp:type:: MyType
Some type
.. cpp:function:: const MyType Foo(const MyType bar)
Some function type thing
.. cpp:class:: template<typename T, std::size_t N> std::array
Some cpp class
Generated Index
===============

View File

@ -328,7 +328,7 @@
// that output similar, but not quite the same nesting so this is really the best we can do.
dl:not(.docutils)
// In Sphinx 2.0+ most DLs no longer contain .docutils, needs tighter scoping using next line
&.class, &.data
&.class, &.data, &.type, &.function
margin-bottom: $base-line-height
// This would be the equivilant of a .. class::
dt