Skip to content

Commit 9a00b05

Browse files
authored
Merge pull request #75 from ExecutableBookProject/info
sphinx copybutton info
2 parents 25ac3de + b30b7f0 commit 9a00b05

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

RELEASES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ To create a new release of Sphinx-Copybutton, you need to do these things:
1111

1212
## To create the release
1313

14-
To create a new release, [open an issue](https://github.com/choldgraf/sphinx-copybutton/issues/new) to keep
14+
To create a new release, [open an issue](https://github.com/ExecutableBookProject/sphinx-copybutton/issues/new) to keep
1515
track of the to-do list for the release. Copy/paste the following markdown into the issue
1616
and check off the boxes as you complete items:
1717

1818

1919
```
20-
- [ ] Ensure that the [Sphinx-Copybutton version number](https://github.com/choldgraf/sphinx-copybutton/blob/master/jupyter_book/__init__.py)
20+
- [ ] Ensure that the [Sphinx-Copybutton version number](https://github.com/ExecutableBookProject/sphinx-copybutton/blob/master/jupyter_book/__init__.py)
2121
is correct, and remove the `dev0` part of the version number.
2222
Make a PR with the new number and merge into master.
2323
- [ ] Create a new distribution for Sphinx-Copybutton by
2424
[following the twine release instructions](https://twine.readthedocs.io/en/latest/#using-twine)
2525
- [ ] Confirm that the new version of Sphinx-Copybutton [is posted to pypi](https://pypi.org/project/sphinx-copybutton/)
26-
- [ ] Bump the [Sphinx-Copybutton version number](https://github.com/choldgraf/sphinx-copybutton/blob/master/jupyter_book/__init__.py) to
26+
- [ ] Bump the [Sphinx-Copybutton version number](https://github.com/ExecutableBookProject/sphinx-copybutton/blob/master/jupyter_book/__init__.py) to
2727
the next minor (or major) release and append `dev0` to the end.
2828
- [ ] Celebrate! You've just released a new version of Sphinx-Copybutton!
2929
```

doc/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ You can install ``sphinx-copybutton`` with ``pip``:
6060
6161
pip install sphinx-copybutton
6262
63-
`Here's a link to the sphinx-copybutton GitHub repository <https://github.com/choldgraf/sphinx-copybutton>`_.
63+
`Here's a link to the sphinx-copybutton GitHub repository <https://github.com/ExecutableBookProject/sphinx-copybutton>`_.
6464

6565
Usage
6666
=====
@@ -92,7 +92,7 @@ Customize the CSS
9292

9393
To customize the display of the copy button, you can add your own CSS files
9494
that overwrite the CSS in the
95-
`sphinx-copybutton CSS rules <https://github.com/choldgraf/sphinx-copybutton/blob/master/_static/copybutton.css>`_.
95+
`sphinx-copybutton CSS rules <https://github.com/ExecutableBookProject/sphinx-copybutton/blob/master/_static/copybutton.css>`_.
9696
Just add these files to ``_static`` in your documentation folder, and it should
9797
overwrite sphinx-copybutton's behavior.
9898

@@ -198,7 +198,7 @@ Development
198198
If you'd like to develop or make contributions for sphinx-copybutton, fork
199199
the repository here:
200200
201-
https://github.com/choldgraf/sphinx-copybutton
201+
https://github.com/ExecutableBookProject/sphinx-copybutton
202202
203203
pull to your computer and install locally with ``pip``::
204204

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,21 @@
2424
with open('./README.md', 'r') as ff:
2525
readme_text = ff.read()
2626

27+
# Parse version
28+
init = Path(__file__).parent.joinpath("sphinx_copybutton", "__init__.py")
29+
for line in init.read_text().split("\n"):
30+
if line.startswith("__version__ ="):
31+
break
32+
version = line.split(" = ")[-1].strip('"')
33+
2734
setup(
2835
name='sphinx-copybutton',
2936
version=version,
3037
description="Add a copy button to each of your code cells.",
3138
long_description=readme_text,
3239
long_description_content_type='text/markdown',
33-
author='Chris Holdgraf',
34-
author_email='[email protected]',
35-
url="https://github.com/choldgraf/sphinx-copybutton",
40+
author='Executable Book Project',
41+
url="https://github.com/ExecutableBookProject/sphinx-copybutton",
3642
license='MIT License',
3743
packages=find_packages(),
3844
package_data={'sphinx_copybutton': ['_static/copybutton.css',

0 commit comments

Comments
 (0)