-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT: Switch to sphinx-theme-builder #469
Merged
choldgraf
merged 27 commits into
executablebooks:master
from
AakashGfude:sphinx-theme-builder
Jan 25, 2022
+1,689
−1,664
Merged
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7d5616e
using sphinx-theme-builder
AakashGfude bb19e68
correcting init and removing theme_dev_mode
AakashGfude 892a3f4
removing manifest check
AakashGfude b1aa911
using tox instead of nox
AakashGfude 939db94
commenting test for translations for now
AakashGfude 599a680
tests workflow
AakashGfude 91a82c1
updating git workflow
AakashGfude 80423c7
tox.ini update
AakashGfude d85f0e4
including *.mo files in MANIFEST for now
AakashGfude 1748b46
specifying path to test in pyproject
AakashGfude ac4b9c1
moved translations to the src/sphinx_book_theme folder
AakashGfude fba1425
reverting changes made to pre-commit as not necessary in this PR
AakashGfude 48bb621
removed MANIFEST file
AakashGfude af82599
changes necessary after rebasing
AakashGfude 4fb5154
margin styles
AakashGfude a30c858
javascript corrections, code/compilation
AakashGfude 8627fbe
javascript corrections
AakashGfude fb5ed0a
updated contributing guide, and removed
AakashGfude 83e0226
Update tox.ini
AakashGfude 80d0955
deleting commented code in __init__.py
AakashGfude 10bbb79
Merge branch 'sphinx-theme-builder' of https://github.com/AakashGfude…
AakashGfude d7a1a67
adding comments on scss loaders in webpack
AakashGfude 664a77e
translations readme update
AakashGfude 2d6b8e2
adding comments on scss loader pipeline in webpack
AakashGfude 48c43c1
corrections/additions to contributing.md
AakashGfude 9f0a374
adding choldgraf's email address in pyproject.toml
AakashGfude 9fc1186
Update src/sphinx_book_theme/assets/scripts/index.js
choldgraf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This seems... odd. Contributors might be modifying the templates or Python code as well.
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.
good point - I can take a pass at the contributing docs in general as well (or spot check other changes as needed) in #472
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.
Thanks, @pradyunsg for pointing this out.