Skip to content

Commit

Permalink
Merge pull request #11 from teleportx/main
Browse files Browse the repository at this point in the history
update dev
  • Loading branch information
teleportx authored Dec 14, 2023
2 parents 56696bb + 1e87f3a commit 0beebea
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Sphinx: Render docs"

on: push

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Build docs
run: |
pip install -r ./docs/source/requirements.txt
pip install -r ./requirements.txt
sphinx-build -M html docs/source docs/build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/build/html/

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[![Documentation Status](https://readthedocs.org/projects/py-spw/badge/?version=latest)](https://pyspw.xstl.ru/ru/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/Py-SPW.svg)](https://pypi.org/project/Py-SPW/)
[![python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)](https://pypi.org/project/Py-SPW/)

[![Documentation Status](https://readthedocs.org/projects/py-spw/badge/?version=latest)](https://pyspw.xstl.ru/en/latest/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/teleportx/Py-SPW/blob/main/LICENSE)
[![Downloads](https://img.shields.io/pypi/dm/Py-SPW)](https://pypi.org/project/Py-SPW/)

# Py SPW
Library for work with [SPWorlds](https://spworlds.ru) API in Python.
Expand Down Expand Up @@ -31,4 +36,4 @@ print(api.check_access('437610383310716930'))
## Links
- [PyPi](https://pypi.org/project/Py-SPW)
- [Documentation](https://pyspw.xstl.ru/en/latest/)
- [API](https://github.com/sp-worlds/api-docs)
- [API](https://github.com/sp-worlds/api-docs)
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
import sys
from datetime import datetime

sys.path.insert(0, os.path.abspath('../..'))

Expand All @@ -14,7 +15,7 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'Py-SPW'
copyright = '2023, Teleport'
copyright = f'{datetime.now().year}, Teleport'
author = 'Teleport'
release = __version__

Expand Down
1 change: 1 addition & 0 deletions docs/source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx==5.3.0
furo==2023.3.27
2 changes: 1 addition & 1 deletion pyspw/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .api import *

__version__ = '1.5.2'
__version__ = '1.5.3'

0 comments on commit 0beebea

Please sign in to comment.