mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Merge pull request #785 from readthedocs/style-cpp-domain
Fix styling of generated cpp documentation
This commit is contained in:
commit
b360305d0f
@ -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
|
||||
===============
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user