Skip to content

Notebook cell styling (nbsphinx and MyST-NB) #2187

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

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bf1d86c
prettier
gabalafou Apr 11, 2025
abb1bd3
in/out labels
gabalafou Apr 11, 2025
f60a3fa
refactor, remove tab trap (and ipympl), add comments
gabalafou Apr 11, 2025
d2b2513
polish
gabalafou Apr 25, 2025
ce7c4c4
Add MIT License to code-cells notebook
gabalafou Apr 29, 2025
5547365
undo change in _api.scss
gabalafou Apr 29, 2025
51fc4cf
fix stylelint pre-commit, better organize scss
gabalafou Apr 29, 2025
76fde56
Fix math, fix alignment (use padding not margin), add more examples
gabalafou May 6, 2025
0e04488
revert changes to bottom of pydata.ipynb
gabalafou May 6, 2025
6064059
add back table-layout: auto
gabalafou May 6, 2025
5d07520
long input and output example
gabalafou May 6, 2025
f752baa
remove nbsphinx stylesheet
gabalafou May 27, 2025
f535b13
fix focus ring for dark mode exceptions
gabalafou May 27, 2025
ef86d7c
use webpack to create separate css file to overwrite
gabalafou May 27, 2025
877dca1
be less implicit overwriting nbsphinx
gabalafou May 27, 2025
a2a1130
incorporate @drammock's feedback into the notebook
gabalafou May 27, 2025
586d7bf
some more fixes for the rendered notebook
gabalafou May 27, 2025
db7bb75
update nbsphinx functions based on review feedback
gabalafou May 28, 2025
66c429d
Add new CSS file to sdist
gabalafou May 28, 2025
13c50a2
move mixin to abstracts/_color.scss
gabalafou May 29, 2025
91b6051
remove TODO comments
gabalafou May 29, 2025
1dfa4d4
Environment variable to build with MyST-NB instead of nbsphinx
gabalafou Apr 25, 2025
bc72c6e
myst-nb styles
gabalafou Apr 29, 2025
b90d26d
working build
gabalafou May 30, 2025
86aead2
build still working
gabalafou May 30, 2025
29f8cf8
make each heading specific to its extension
gabalafou May 30, 2025
c60f2e6
replace myst_nb css with our css, restructure css files
gabalafou May 30, 2025
82a473c
cleanup
gabalafou May 30, 2025
287b6e4
edit myst-nb css
gabalafou May 30, 2025
b92f760
copy notebook at build, rather than use symlink
gabalafou May 30, 2025
f0c1605
update comment
gabalafou May 30, 2025
ceb5278
Update README.md
gabalafou Jun 2, 2025
96aa14e
[pre-commit.ci] Automatic linting and formatting fixes
pre-commit-ci[bot] Jun 2, 2025
547a68d
Update README.md
gabalafou Jun 2, 2025
4f8ef73
[pre-commit.ci] Automatic linting and formatting fixes
pre-commit-ci[bot] Jun 2, 2025
10113de
styles/README
gabalafou Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ repos:
args: [--fix]
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.
- stylelint@16.5.0
- stylelint-config-standard-scss@13.1.0
- stylelint
- stylelint-scss
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed these lines because I was getting indecipherable error messages when trying to commit scss files with lint errors. After these changes, I got intelligible error messages.

- stylelint-config-standard-scss

- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v5.0.0
Expand Down
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "stylelint-config-standard-scss",
"plugins": ["stylelint-scss"],
"rules": {
"selector-class-pattern": null,
"no-descending-specificity": null,
Expand Down
Loading
Loading