Skip to content

Commit cceb71e

Browse files
committed
feat: plugins and extensions
1 parent 3d84b25 commit cceb71e

File tree

6 files changed

+68
-24
lines changed

6 files changed

+68
-24
lines changed

.github/workflows/mkdocs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ jobs:
2727
path: ~/.cache
2828
restore-keys: |
2929
mkdocs-material-
30+
3031
- run: pip install mkdocs-material
31-
- run: pip install "mkdocs-material[imaging]"
32-
- run: sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
33-
- run: mkdocs gh-deploy --force
32+
33+
- name: install plugins
34+
run: |
35+
pip install "mkdocs-material[imaging]"
36+
sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
37+
38+
pip install mkdocs-glightbox
39+
40+
- run: mkdocs gh-deploy --force

docs/API/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Scratch Web API
2+
3+
insert info here

docs/contributing.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# README
2+
13
This project aims to document the Scratch API and other features, such as the sb3 file format. The source of these docs is available on [GitHub](https://github.com/scratch-api/docs).
24

3-
Feel free to make contributions [by opening a pull request on GitHub](https://github.com/scratch-api/docs/pulls)
5+
You can make contributions [by opening a pull request on GitHub](https://github.com/scratch-api/docs/pulls)
6+
7+
The docs are licensed under [MIT](https://github.com/scratch-api/docs/blob/main/LICENSE)

docs/mkdocs.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

mkdocs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,60 @@ theme:
2222
toggle:
2323
icon: material/brightness-4
2424
name: Switch to light mode
25+
26+
27+
features:
28+
- navigation.instant
29+
- navigation.instant.prefetch
30+
- navigation.instant.progress
31+
- navigation.instant.preview
32+
- navigation.tracking
33+
- navigation.tabs
34+
- content.tabs.link
35+
- content.tooltips
36+
37+
2538
plugins:
2639
- social
2740
- search
41+
- glightbox
42+
43+
markdown_extensions:
44+
- admonition
45+
- pymdownx.details
46+
- pymdownx.superfences:
47+
custom_fences:
48+
- name: mermaid
49+
class: mermaid
50+
format: !!python/name:pymdownx.superfences.fence_code_format
51+
- attr_list
52+
- md_in_html
53+
- pymdownx.superfences
54+
- pymdownx.emoji:
55+
emoji_index: !!python/name:material.extensions.emoji.twemoji
56+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
2857

58+
- pymdownx.highlight:
59+
anchor_linenums: true
60+
line_spans: __span
61+
pygments_lang_class: true
62+
- pymdownx.inlinehilite
63+
- pymdownx.snippets
64+
- pymdownx.superfences
65+
- pymdownx.tabbed:
66+
alternate_style: true
67+
- tables
68+
- footnotes
69+
- pymdownx.critic
70+
- pymdownx.caret
71+
- pymdownx.keys
72+
- pymdownx.mark
73+
- pymdownx.tilde
74+
- attr_list
75+
- pymdownx.blocks.caption
76+
- def_list
77+
- pymdownx.tasklist:
78+
custom_checkbox: true
2979

3080
extra:
3181
social:

0 commit comments

Comments
 (0)