Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
79b0e2c0
Unverified
Commit
79b0e2c0
authored
Dec 22, 2020
by
Henry Schreiner
Committed by
GitHub
Dec 22, 2020
Browse files
docs: fix pdf build, simpler start page (#2736)
parent
6b4297fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
22 deletions
+32
-22
README.rst
README.rst
+7
-4
docs/changelog.rst
docs/changelog.rst
+15
-13
docs/conf.py
docs/conf.py
+6
-1
docs/requirements.txt
docs/requirements.txt
+4
-4
No files found.
README.rst
View file @
79b0e2c0
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
• `Scikit-build example <https://github.com/pybind/scikit_build_example>`_
• `Scikit-build example <https://github.com/pybind/scikit_build_example>`_
• `CMake example <https://github.com/pybind/cmake_example>`_
• `CMake example <https://github.com/pybind/cmake_example>`_
.. start
.. warning::
.. warning::
Combining older versions of pybind11 (< 2.6.0) with Python 3.9.0 will
Combining older versions of pybind11 (< 2.6.0) with Python 3.9.0 will
...
@@ -24,6 +26,7 @@
...
@@ -24,6 +26,7 @@
the latest version of pybind11 (2.6.0 or newer), which includes a temporary
the latest version of pybind11 (2.6.0 or newer), which includes a temporary
workaround specifically when Python 3.9.0 is detected at runtime.
workaround specifically when Python 3.9.0 is detected at runtime.
**pybind11** is a lightweight header-only library that exposes C++ types
**pybind11** is a lightweight header-only library that exposes C++ types
in Python and vice versa, mainly to create Python bindings of existing
in Python and vice versa, mainly to create Python bindings of existing
C++ code. Its goals and syntax are similar to the excellent
C++ code. Its goals and syntax are similar to the excellent
...
@@ -171,7 +174,7 @@ to the terms and conditions of this license.
...
@@ -171,7 +174,7 @@ to the terms and conditions of this license.
.. |Latest Documentation Status| image:: https://readthedocs.org/projects/pybind11/badge?version=latest
.. |Latest Documentation Status| image:: https://readthedocs.org/projects/pybind11/badge?version=latest
:target: http://pybind11.readthedocs.org/en/latest
:target: http://pybind11.readthedocs.org/en/latest
.. |Stable Documentation Status| image:: https://img.shields.io/badge/docs-stable-blue
.. |Stable Documentation Status| image:: https://img.shields.io/badge/docs-stable-blue
.svg
:target: http://pybind11.readthedocs.org/en/stable
:target: http://pybind11.readthedocs.org/en/stable
.. |Gitter chat| image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
.. |Gitter chat| image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
:target: https://gitter.im/pybind/Lobby
:target: https://gitter.im/pybind/Lobby
...
@@ -179,11 +182,11 @@ to the terms and conditions of this license.
...
@@ -179,11 +182,11 @@ to the terms and conditions of this license.
:target: https://github.com/pybind/pybind11/actions
:target: https://github.com/pybind/pybind11/actions
.. |Build status| image:: https://ci.appveyor.com/api/projects/status/riaj54pn4h08xy40?svg=true
.. |Build status| image:: https://ci.appveyor.com/api/projects/status/riaj54pn4h08xy40?svg=true
:target: https://ci.appveyor.com/project/wjakob/pybind11
:target: https://ci.appveyor.com/project/wjakob/pybind11
.. |PyPI package| image:: https://img.shields.io/pypi/v/pybind11
.. |PyPI package| image:: https://img.shields.io/pypi/v/pybind11
.svg
:target: https://pypi.org/project/pybind11/
:target: https://pypi.org/project/pybind11/
.. |Conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pybind11
.. |Conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pybind11
.svg
:target: https://github.com/conda-forge/pybind11-feedstock
:target: https://github.com/conda-forge/pybind11-feedstock
.. |Repology| image:: https://repology.org/badge/latest-versions/python:pybind11.svg
.. |Repology| image:: https://repology.org/badge/latest-versions/python:pybind11.svg
:target: https://repology.org/project/python:pybind11/versions
:target: https://repology.org/project/python:pybind11/versions
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/pybind11
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/pybind11
.svg
:target: https://pypi.org/project/pybind11/
:target: https://pypi.org/project/pybind11/
docs/changelog.rst
View file @
79b0e2c0
...
@@ -11,29 +11,31 @@ v2.6.2 (TBA, not yet released)
...
@@ -11,29 +11,31 @@ v2.6.2 (TBA, not yet released)
------------------------------
------------------------------
* Fixed segfault in multithreaded environments when using ``scoped_ostream_redirect``.
* Allow thread termination to be avoided during shutdown for CPython 3.7+ via
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
``.disarm``.
`#2657 <https://github.com/pybind/pybind11/pull/2657>`_
* CMake: mixing local and installed pybind11's would prioritize the installed one over the local one (regression in 2.6.0).
`#2716 <https://github.com/pybind/pybind11/pull/2716>`_
* Fix bug where the constructor of `object` subclasses would not throw on being passed a Python object of the wrong type.
* Fix bug where the constructor of ``object`` subclasses would not throw on
being passed a Python object of the wrong type.
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
* Fixed assertion error related to unhandled (later overwritten) exception in CPython 3.8 and 3.9 debug builds.
* Fixed segfault in multithreaded environments when using
``scoped_ostream_redirect``.
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
* Fixed assertion error related to unhandled (later overwritten) exception in
CPython 3.8 and 3.9 debug builds.
`#2685 <https://github.com/pybind/pybind11/pull/2685>`_
`#2685 <https://github.com/pybind/pybind11/pull/2685>`_
* Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
* Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
`#2683 <https://github.com/pybind/pybind11/pull/2683>`_
`#2683 <https://github.com/pybind/pybind11/pull/2683>`_
* Fixes segfaults in multithreaded environments when using ``scoped_ostream_redirect``.
* CMake: Fix issue with FindPython2/FindPython3 not working with ``pybind11::embed``.
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
* Fix issue with FindPython2/FindPython3 not working with ``pybind11::embed``.
`#2662 <https://github.com/pybind/pybind11/pull/2662>`_
`#2662 <https://github.com/pybind/pybind11/pull/2662>`_
* Allow thread termination to be avoided during shutdown for CPython 3.7+ via ``.disarm``.
* CMake: mixing local and installed pybind11's would prioritize the installed
`#2657 <https://github.com/pybind/pybind11/pull/2657>`_
one over the local one (regression in 2.6.0).
`#2716 <https://github.com/pybind/pybind11/pull/2716>`_
...
...
docs/conf.py
View file @
79b0e2c0
...
@@ -239,6 +239,8 @@ htmlhelp_basename = "pybind11doc"
...
@@ -239,6 +239,8 @@ htmlhelp_basename = "pybind11doc"
# -- Options for LaTeX output ---------------------------------------------
# -- Options for LaTeX output ---------------------------------------------
latex_engine
=
"pdflatex"
latex_elements
=
{
latex_elements
=
{
# The paper size ('letterpaper' or 'a4paper').
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',
# 'papersize': 'letterpaper',
...
@@ -353,8 +355,11 @@ def prepare(app):
...
@@ -353,8 +355,11 @@ def prepare(app):
with
open
(
DIR
.
parent
/
"README.rst"
)
as
f
:
with
open
(
DIR
.
parent
/
"README.rst"
)
as
f
:
contents
=
f
.
read
()
contents
=
f
.
read
()
# Filter out section titles for index.rst for LaTeX
if
app
.
builder
.
name
==
"latex"
:
if
app
.
builder
.
name
==
"latex"
:
# Remove badges and stuff from start
contents
=
contents
[
contents
.
find
(
r
".. start"
)
:]
# Filter out section titles for index.rst for LaTeX
contents
=
re
.
sub
(
r
"^(.*)\n[-~]{3,}$"
,
r
"**\1**"
,
contents
,
flags
=
re
.
MULTILINE
)
contents
=
re
.
sub
(
r
"^(.*)\n[-~]{3,}$"
,
r
"**\1**"
,
contents
,
flags
=
re
.
MULTILINE
)
with
open
(
DIR
/
"readme.rst"
,
"w"
)
as
f
:
with
open
(
DIR
/
"readme.rst"
,
"w"
)
as
f
:
...
...
docs/requirements.txt
View file @
79b0e2c0
breathe==4.2
0.0
breathe==4.2
5.1
commonmark==0.9.1
commonmark==0.9.1
recommonmark==0.
6.0
recommonmark==0.
7.1
sphinx==3.
2
.1
sphinx==3.
3
.1
sphinx_rtd_theme==0.5.0
sphinx_rtd_theme==0.5.0
sphinxcontrib-moderncmakedomain==3.1
3
sphinxcontrib-moderncmakedomain==3.1
7
sphinxcontrib-svg2pdfconverter==1.1.0
sphinxcontrib-svg2pdfconverter==1.1.0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment