Skip to content

Commit e29d396

Browse files
Doc: Changes from review
1 parent 2c6227d commit e29d396

5 files changed

Lines changed: 40 additions & 28 deletions

File tree

File renamed without changes.

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
rst_epilog = ""
2929
# Read link all targets from file
30-
with open("links.rst", encoding="utf-8") as f:
30+
with open("_static/links.rst", encoding="utf-8") as f:
3131
rst_epilog += f.read()
3232

3333
autosummary_generate = True
@@ -46,7 +46,9 @@
4646
# Use the version number of the installed project
4747
version = release = importlib.metadata.version(project)
4848
language = "python"
49-
exclude_patterns = ["_build", "_old", "links.rst"]
49+
exclude_patterns = ["_build", "_old", "_static"]
50+
# Don't copy the prompt characters
51+
copybutton_exclude = ".linenos, .gp"
5052
pygments_style = "sphinx"
5153
highlight_language = "python"
5254
todo_include_todos = False

docs/source/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ and some related projects are here_.
4242

4343
.. _todd-coxeter algorithm: https://en.wikipedia.org/wiki/Todd%E2%80%93Coxeter_algorithm
4444

45-
.. _libsemigroups: https://libsemigroups.github.io/libsemigroups/index.html
46-
4745
How to use it
4846
~~~~~~~~~~~~~
4947

docs/source/install.rst

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,29 @@
55

66
The full license is in the file LICENSE, distributed with this software.
77

8-
.. |libsemigroups-pybind11-version| replace:: 1.0.0
9-
108
Installation
119
============
1210

1311
Installing with pip
1412
-------------------
1513

16-
It's possible to install ``libsemigroups_pybind11`` using ``pip`` something
17-
like the following (depending on your system and setup):
14+
It's possible to install ``libsemigroups_pybind11`` using ``pip`` by doing one
15+
of the following (depending on your system and setup):
16+
17+
.. highlight:: console
1818

1919
::
2020

21-
pip install libsemigroups_pybind11
22-
pip3 install libsemigroups_pybind11
23-
python -m pip install libsemigroups_pybind11
21+
$ pip install libsemigroups_pybind11
22+
23+
24+
::
25+
26+
$ pip3 install libsemigroups_pybind11
27+
28+
::
29+
30+
$ python -m pip install libsemigroups_pybind11
2431

2532

2633
.. Installing with conda
@@ -56,46 +63,53 @@ like the following (depending on your system and setup):
5663
From the sources
5764
----------------
5865

59-
Before installing ``libsemigroups_pybind11`` from its sources you should first
66+
Before installing ``libsemigroups_pybind11`` from its sources, you should first
6067
perform a system install of the C++ library ``libsemigroups``. For information
61-
about how to install ``libsemigroups`` see `the installation guide
68+
about how to do this, see the `libsemigroups installation guide
6269
<https://libsemigroups.github.io/libsemigroups/md_install.html>`_.
6370

64-
Assuming that you have ``libsemigroups`` installed you can install
71+
Assuming that you have ``libsemigroups`` installed, you can install
6572
``libsemigroups_pybind11`` as follows:
6673

6774
::
6875

69-
git clone https://github.com/libsemigroups/libsemigroups_pybind11
70-
cd libsemigroups_pybind11
71-
pip install .
76+
$ git clone https://github.com/libsemigroups/libsemigroups_pybind11
77+
$ cd libsemigroups_pybind11
78+
$ pip install .
7279

7380
From a release archive
7481
~~~~~~~~~~~~~~~~~~~~~~
7582

7683
To build ``libsemigroups_pybind11`` from a release archive:
7784

85+
.. Unfortunately, text replacement doesn't work inside of code blocks, so it is
86+
necessary to update the version number below manually.
87+
7888
::
7989

80-
curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-|libsemigroups-pybind11-version|.tar.gz
81-
tar -xf libsemigroups_pybind11-|libsemigroups-pybind11-version|.tar.gz
82-
rm -f libsemigroups_pybind11-|libsemigroups-pybind11-version|.tar.gz
83-
cd libsemigroups_pybind11-|libsemigroups-pybind11-version|
84-
pip install .
90+
$ curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-1.0.0.tar.gz
91+
$ tar -xf libsemigroups_pybind11-1.0.0.tar.gz
92+
$ rm -f libsemigroups_pybind11-1.0.0.tar.gz
93+
$ cd libsemigroups_pybind11-1.0.0
94+
$ pip install .
8595

8696
Building the documentation
8797
--------------------------
8898

89-
Assuming you already have ``python3`` install, you can build the doc by using:
99+
Assuming you have ``python3`` and ``make`` installed, you can build the doc by
100+
using:
90101

91102
::
92103

93-
python3 -m pip3 install -r requirements.txt
94-
make doc
104+
$ python3 -m pip3 install -r requirements.txt
105+
$ make doc
106+
107+
If you don't have ``make``, you can run the executable ``./etc/make-doc.sh``
108+
instead of running ``make doc`` (which is precisely what ``make doc`` does).
95109

96110
Issues
97111
------
98112

99113
If you find any problems with ``libsemigroups_pybind11``, or have any
100-
suggestions for features that youd like to see, please use the
114+
suggestions for features that you'd like to see, please use the
101115
`issue tracker`_.

docs/source/libsemigroups-error.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,3 @@ Full API
103103
`issue tracker`_.
104104

105105
.. autofunction:: error_message_with_prefix
106-
107-
.. _libsemigroups: https://libsemigroups.github.io/libsemigroups/index.html

0 commit comments

Comments
 (0)