-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Adding logo image for dark mode (#231)
* dark logo code * testing if CI works okay * removing windows test * configuration for dark_logo
- Loading branch information
1 parent
e65778b
commit 74b5bb9
Showing
7 changed files
with
64 additions
and
12 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 |
---|---|---|
|
@@ -11,39 +11,50 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.9, "3.10"] | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
# Only test the latest major release of Sphinx because otherwise we need to | ||
# keep multiple versions of regression tests on file and this creates lots of | ||
# noise in the tests. | ||
sphinx: ["~=5.0"] | ||
include: | ||
- os: macos-latest | ||
python-version: 3.x | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} and Sphinx ${{ matrix.sphinx }} | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies with Sphinx ${{ matrix.sphinx }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[test] | ||
python -m pip install --upgrade "sphinx${{matrix.sphinx}}" -e .[test] --pre | ||
- name: Run pytest | ||
run: > | ||
pytest --durations=10 --cov=quantecon_book_theme --cov-report=xml --cov-report=term-missing | ||
- name: Upload to Codecov | ||
if: github.repository == 'QuantEcon/quantecon-book-theme' | ||
uses: codecov/[email protected].0 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && github.repository == 'QuantEcon/quantecon-book-theme' && github.event_name == 'pull_request' | ||
uses: codecov/[email protected].4 | ||
with: | ||
name: ebp-qbt-pytests-${{ matrix.python-version}} | ||
name: ebp-qbt-pytests-py3.7 | ||
flags: pytests | ||
file: ./coverage.xml | ||
fail_ci_if_error: true | ||
|
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
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 |
---|---|---|
|
@@ -28,3 +28,4 @@ twitter = | |
twitter_logo_url = | ||
og_logo_url = | ||
persistent_sidebar = False | ||
dark_logo = |
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
74b5bb9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://hungry-lovelace-7d0512.netlify.app as production
🚀 Deployed on https://6541cd579b376d350c2ad9a0--hungry-lovelace-7d0512.netlify.app