Skip to content

Commit

Permalink
[TASK] Standalone Theme
Browse files Browse the repository at this point in the history
- The theme is renamed to sphinx_typo3_theme
- Version is now generated automatically, depending on the Git-Tag
- Added Version to the footer of the Page
- Readme now reflects the latest changes.
- Introduced workflow to build the python package
- Introduced workflow to publish the python package
- PYPI_USERNAME and PYPI_PASSWORD need to be set in the secrets
- Added license file for Source font files
- Removed obsolete license files
- Added screenshot of rendered documentation
- The theme will now generate a _static/theme.json file
  • Loading branch information
benjaminkott authored Jan 24, 2020
2 parents 98f5c92 + b8f21ea commit 37ea185
Show file tree
Hide file tree
Showing 89 changed files with 355 additions and 1,113 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install
run: |
yarn install
- name: Build
run: |
yarn build
- name: Archive Demo
uses: actions/upload-artifact@v1
with:
name: demo
path: build/Result/project/0.0.0
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Install
run: |
yarn install
- name: Build
run: |
yarn build
- name: Archive Demo
uses: actions/upload-artifact@v1
with:
name: demo
path: build/Result/project/0.0.0
49 changes: 49 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Python Package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Archive Module
uses: actions/upload-artifact@v1
with:
name: dist
path: dist
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.coverage
.ruby-version
.tox
.eggs/
dist/
node_modules/
bower_components/
Expand Down
207 changes: 0 additions & 207 deletions Apache-License-2.0.txt

This file was deleted.

Loading

0 comments on commit 37ea185

Please sign in to comment.