Skip to content

Commit

Permalink
docs: Shift css js to _static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kayjan committed Jun 25, 2024
1 parent 7c4fd5b commit 567d817
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install dependencies
run: |
pip install -r docs/requirements.txt
python docs/_static/playground2.py
python docs/_static/playground_whl.py
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy to GH Pages
run: mkdocs gh-deploy
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
python: "3.8"
jobs:
pre_create_environment:
- python docs/_static/playground2.py
- python docs/_static/playground_whl.py

# Build documentation in the docs/ directory with Sphinx
mkdocs:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/playground/playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ a = "hello"
b = "world"
print(a + b)

c = 1
d = 2
c + d

# from bigtree import Node
# print(Node("a", parent=Node("b")))
# Node("a", children=[Node("b"), Node("c")]).show()
Expand Down
8 changes: 4 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ markdown_extensions:
format: !!python/object/apply:docs._static.playground.color_command_formatter
kwds:
init: |
import bigtree
from bigtree import *
validator: !!python/name:docs._static.playground.color_command_validator
- pymdownx.tabbed: # code snippet with tabs
alternate_style: true

extra_css:
- _static/custom.css
- playground.css
- _static/playground.css

extra_javascript:
- _static/custom.js
- playground-config.js
- playground.js
- _static/playground-config.js
- _static/playground.js
- https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ dependencies = [
"docstr-coverage",
"IPython",
"mkdocs==1.5.3",
"mkdocs-material[imaging]==9.5.5",
"mdx_truly_sane_lists",
"mkdocstrings[python]",
"mkdocs-material[imaging]==9.5.17",
"mdx_truly_sane_lists==1.3",
"mkdocstrings[python]==0.24.0",
"mkdocs-glightbox",
"termynal",
"termynal==0.11.1",
]

[tool.hatch.envs.mkdocs.scripts]
Expand Down

0 comments on commit 567d817

Please sign in to comment.