-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Switch to sphinx-theme-builder (#469)
- Loading branch information
1 parent
fa8bd19
commit ca4f765
Showing
130 changed files
with
1,689 additions
and
1,664 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 |
---|---|---|
|
@@ -21,11 +21,11 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
python-version: [3.7, 3.8, 3.9] | ||
sphinx: [">=3,<4", ">=4,<5"] | ||
include: | ||
- os: windows-latest | ||
python-version: 3.7 | ||
python-version: 3.9 | ||
sphinx: ">=3,<4" | ||
- os: macos-latest | ||
python-version: 3.9 | ||
|
@@ -38,14 +38,18 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[testing] | ||
python -m pip install -e .[test] | ||
|
||
- name: Run pytest | ||
run: > | ||
pytest --durations=10 --cov=sphinx_book_theme --cov-report=xml --cov-report=term-missing | ||
|
||
- name: Upload to Codecov | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 && github.repository == 'executablebooks/sphinx-book-theme' | ||
uses: codecov/codecov-action@v1 | ||
|
@@ -68,7 +72,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[sphinx] | ||
pip install -e .[doc] | ||
- name: Build documentation | ||
run: > | ||
sphinx-build -b html docs docs/_build/html -w warnings.txt | ||
|
@@ -107,11 +111,10 @@ jobs: | |
with: | ||
python-version: 3.7 | ||
|
||
- name: Install build dependecies | ||
run: pip install wheel | ||
|
||
- name: Build package | ||
run: python setup.py sdist bdist_wheel | ||
run: | | ||
python -m pip install -U pip build | ||
python -m build | ||
|
||
- name: Publish | ||
uses: pypa/[email protected] | ||
|
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "sphinx_book_theme", | ||
"repository": "https://github.com/executablebooks/sphinx-book-theme", | ||
"scripts": { | ||
"build": "webpack" | ||
}, | ||
"devDependencies": { | ||
"css-loader": "^3.4.2", | ||
"dedent": "^0.7.0", | ||
"extract-loader": "^4.0.3", | ||
"file-loader": "^5.0.2", | ||
"html-webpack-plugin": "^4.3.0", | ||
"node-sass": "^6.0.1", | ||
"optimize-css-assets-webpack-plugin": "^5.0.3", | ||
"sass-loader": "^10.1.1", | ||
"style-loader": "^1.1.3", | ||
"webpack": "^4.41.6", | ||
"webpack-cli": "^3.3.11", | ||
"webpack-dev-server": "^3.10.3" | ||
}, | ||
"dependencies": { | ||
"optimize-css-assets-webpack-plugin": "^5.0.3" | ||
} | ||
} |
Oops, something went wrong.