Skip to content

Commit

Permalink
pre-commit fix and master->main
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Sep 8, 2024
1 parent 51969bf commit 8ac7b0b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: nwtgck/actions-netlify@v1.1
with:
publish-dir: 'lecture-python-programming.myst/_build/html/'
production-branch: master
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Preview Deploy from GitHub Actions"
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: continuous-integration

on:
push:
branches: [master]
branches: [main]
tags:
- 'v*'
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions src/quantecon_book_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ def get_github_src_folder(app):
if repo_url:
branch = config_theme.get("repository_branch")
if not branch:
# Explicitly check in cae branch is ""
branch = "master"
# Explicitly check in case branch is ""
branch = "main"
relpath = config_theme.get("path_to_docs", "")
org, repo = repo_url.strip("/").split("/")[-2:]
context.update(
Expand Down
6 changes: 3 additions & 3 deletions src/quantecon_book_theme/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1193,13 +1193,13 @@ tt {
}
}

div.admonition, .admonition {
div.admonition,
.admonition {
font-size: 0.9rem;
margin: 1.5rem auto;
padding: 0 1rem 0.5rem 1rem;
page-break-inside: avoid;
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1),
0 0 0.05rem rgba(0, 0, 0, 0.1);
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1), 0 0 0.05rem rgba(0, 0, 0, 0.1);
> .admonition-title {
position: relative;
margin: 0 -1rem;
Expand Down
2 changes: 1 addition & 1 deletion src/quantecon_book_theme/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,5 @@ def _is_notebook(app, pagename):
def _get_branch(config_theme):
branch = config_theme.get("nb_branch")
if not branch:
branch = "master"
branch = "main"
return branch
2 changes: 1 addition & 1 deletion tests/sites/base/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"repository_url": "https://github.com/executablebooks/sphinx-book-theme",
"nb_repository_url": "https://github.com/executablebooks/sphinx-book-theme",
"navigation_with_keys": True,
# "repository_branch": "master", # Not using this, should default to master
# "repository_branch": "main", # Not using this, should default to main
"launch_buttons": {
"binderhub_url": "https://mybinder.org",
"jupyterhub_url": "https://datahub.berkeley.edu",
Expand Down

0 comments on commit 8ac7b0b

Please sign in to comment.