Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 6aabf51

Browse files
committed
Add changelog
1 parent 1c6be40 commit 6aabf51

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

CHANGELOG.rst

Whitespace-only changes.

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ release: clean
33
git pull origin master
44
python setup.py sdist bdist_wheel
55
python -m twine upload dist/*
6+
7+
tag:
68
git tag `python -c "print(__import__('sphinx_search').__version__)"`
79
git push --tags
810

911
clean:
1012
rm -rf dist/
1113

12-
.PHONY: release clean
14+
.PHONY: release clean tag

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Changelog
2+
=========
3+
4+
.. include:: ../CHANGELOG.rst

docs/development.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ Make sure you have the latest version of these packages:
3232
3333
python -m pip install --upgrade setuptools wheel twine
3434
35-
Update the version in ``sphinx_search/__init__.py``,
36-
and run ``make release``, this will:
35+
- Update the version in ``sphinx_search/__init__.py`` and ``package.json``.
36+
- Run ``npm run build`` and ``npm run changelog``.
37+
- Open a pull request with the changes.
38+
39+
After the pull request is merged, run ``make release``, this will:
3740

3841
- Checkout and update your master branch.
3942
- Generate the distribution archives in ``dist/``.
4043
- Upload the archives from ``dist/`` to PyPI.
41-
- Create a tag from ``__version__`` and push it to GitHub.
44+
45+
Now you can tag the release with ``make tag``.
4246

4347
.. note:: Make sure you don't have any uncommitted changes before releasing.

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
testing
1313
js-api-reference
1414
get-involved
15+
changelog

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "sphinx-es-suggest",
3-
"version": "0.0.1",
3+
"version": "0.1.0rc3",
44
"description": "Enable search-as-you-type feature.",
55
"scripts": {
6-
"build": "gulp"
6+
"build": "gulp",
7+
"changelog": "gh-changelog -o readthedocs -r readthedocs-sphinx-search -e '' -f CHANGELOG.rst"
78
},
89
"repository": {
910
"type": "git",
@@ -26,7 +27,8 @@
2627
"gulp-csso": "^3.0.1",
2728
"gulp-rename": "^1.4.0",
2829
"gulp-uglify": "^3.0.2",
29-
"run-sequence": "^2.2.1"
30+
"run-sequence": "^2.2.1",
31+
"github-changelog": "git+https://github.com/agjohnson/github-changelog.git"
3032
},
3133
"browserslist": [
3234
"last 10 versions",

0 commit comments

Comments
 (0)