Skip to content

Commit eac11cc

Browse files
committed
sphinx copybutton info
1 parent f76817a commit eac11cc

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
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: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
2-
2+
from pathlib import Path
33
from setuptools import setup, find_packages
4-
from sphinx_copybutton import __version__
54

65
if (os.path.isdir('clipboard.js') and
76
not os.path.islink('sphinx_copybutton/_static/clipboard.min.js')):
@@ -18,15 +17,21 @@
1817
with open('./README.md', 'r') as ff:
1918
readme_text = ff.read()
2019

20+
# Parse version
21+
init = Path(__file__).parent.joinpath("sphinx_copybutton", "__init__.py")
22+
for line in init.read_text().split("\n"):
23+
if line.startswith("__version__ ="):
24+
break
25+
version = line.split(" = ")[-1].strip('"')
26+
2127
setup(
2228
name='sphinx-copybutton',
23-
version=__version__,
29+
version=version,
2430
description="Add a copy button to each of your code cells.",
2531
long_description=readme_text,
2632
long_description_content_type='text/markdown',
27-
author='Chris Holdgraf',
28-
author_email='[email protected]',
29-
url="https://github.com/choldgraf/sphinx-copybutton",
33+
author='Executable Book Project',
34+
url="https://github.com/ExecutableBookProject/sphinx-copybutton",
3035
license='MIT License',
3136
packages=find_packages(),
3237
package_data={'sphinx_copybutton': ['_static/copybutton.css',

0 commit comments

Comments
 (0)