-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't require npm to build from source
We already have this scripts in package.json, and we commit the static files in the repo. Close #1014
- Loading branch information
Showing
3 changed files
with
25 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
version: 2 | ||
|
||
python: | ||
version: 3 | ||
version: 3.8 | ||
install: | ||
- requirements: docs/requirements.txt | ||
- method: pip | ||
path: . | ||
|
||
sphinx: | ||
configuration: docs/conf.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,20 +98,25 @@ To release a new version of the theme, core team will take the following steps: | |
#. New versions are by default ``alpha`` releases. If this is a release candidate, | ||
run ``bump2version --allow-dirty release`` to update the release to an ``rc`` | ||
release. If this is a final release, run the command again. | ||
#. Update the static files | ||
|
||
.. code:: bash | ||
npm install | ||
npm run build | ||
#. Update the changelog (``docs/changelog.rst``) with the version information. | ||
#. Run ``python setup.py update_translations`` to compile new translation files | ||
and update Transifex. | ||
#. Run ``python setup.py build`` to rebuild all the theme assets and the Python | ||
package. | ||
#. Commit these changes. | ||
#. Tag the release in git: ``git tag $NEW_VERSION``. | ||
#. Push the tag to GitHub: ``git push --tags origin``. | ||
#. Upload the package to PyPI: | ||
|
||
.. code:: console | ||
.. code:: console | ||
$ rm -rf dist/ | ||
$ python setup.py sdist bdist_wheel | ||
$ twine upload --sign --identity [email protected] dist/* | ||
$ rm -rf dist/ | ||
$ python setup.py sdist bdist_wheel | ||
$ twine upload --sign --identity [email protected] dist/* | ||
.. _PEP440: https://www.python.org/dev/peps/pep-0440/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters