Skip to content
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

sitebuilder extension #11

Draft
wants to merge 727 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
727 commits
Select commit Hold shift + click to select a range
ec173a6
AI fix for mouth_washer.js
sccpsteve Feb 27, 2024
985f32a
add back functions to more-types.js
lego7set Feb 28, 2024
923acbd
Update More-Types.md
lego7set Feb 28, 2024
c56fcfd
its 7 new types not 6
lego7set Feb 28, 2024
2a8c1f3
Update Display-Text.js
SharkPool-SP Feb 28, 2024
3a2c2ca
Merge pull request #147 from sccpsteve/patch-1
SharkPool-SP Feb 28, 2024
1439d25
Merge branch 'PenguinMod:main' into main
lego7set Feb 28, 2024
4fb7aae
add typeof block
lego7set Feb 28, 2024
7c166d1
Update More-Types.md
lego7set Feb 28, 2024
ac48e0c
Fix the one bug
David-Orangemoon Feb 28, 2024
9a4811b
info comment
mariocraft987 Feb 28, 2024
12e97bd
Upload DiscordAuth
enderhacker Feb 29, 2024
f9729f9
Add DiscordAuth logo
enderhacker Feb 29, 2024
5376fc9
Update extensions.js
enderhacker Feb 29, 2024
245d93b
DiscordAuth fix banner
enderhacker Feb 29, 2024
d47be56
Change discord auth thing
enderhacker Feb 29, 2024
b6b6534
discordauth
enderhacker Feb 29, 2024
db3defd
a
enderhacker Feb 29, 2024
3e22b18
resolve();
enderhacker Feb 29, 2024
b6e9dbd
unasync
enderhacker Feb 29, 2024
ebef46f
resolve();n't
enderhacker Feb 29, 2024
70ed5dc
Merge branch 'PenguinMod:main' into main
lego7set Feb 29, 2024
bed6ff4
Update Variables-Expanded.js
SharkPool-SP Mar 1, 2024
1d52bfb
Bug fix
SharkPool-SP Mar 1, 2024
d966af9
Update Sprite-Linking 2.0
SharkPool-SP Mar 1, 2024
3c6f034
Sprite-Linking 2.0
SharkPool-SP Mar 1, 2024
05b9d6b
DiscordAuthn't
enderhacker Mar 1, 2024
d28054d
More auth to discord
enderhacker Mar 1, 2024
9f40307
1.0.3 DiscordAuth
enderhacker Mar 1, 2024
d5f768e
https://extensions.penguinmod.com/extensions/NotHouse/DiscordAuth.js
enderhacker Mar 1, 2024
b36c68b
errored
enderhacker Mar 1, 2024
9d58927
erroredn't
enderhacker Mar 1, 2024
6fe3084
Merge pull request #143 from lego7set/main
RedMan13 Mar 2, 2024
1bf8451
fix typo that was breaking link
Ianyourgod Mar 2, 2024
42977ae
Update BetterInput.js
SharkPool-SP Mar 2, 2024
7b96609
Merge branch 'PenguinMod:main' into main
mariocraft987 Mar 2, 2024
7f89e5a
fix a bunch of things
mariocraft987 Mar 2, 2024
cfef427
Merge pull request #148 from mariocraft987/main
RedMan13 Mar 3, 2024
7dd7c8f
Update Extra-Control.md
SharkPool-SP Mar 3, 2024
39fb527
reorder & change names & descriptions 4 extensions
JeremyGamer13 Mar 4, 2024
15f2f49
Update Box2D.js
pooiod Mar 5, 2024
4834dd5
Update Box2D.js (again)
pooiod Mar 6, 2024
396e6ad
Update Box2D
pooiod Mar 6, 2024
15d785c
update for sharkpool to accept
cicerorph Mar 6, 2024
db76df8
Merge branch 'main' into patch-3
JeremyGamer13 Mar 6, 2024
338c9c7
Delete static/images/MubiLop/_Temp
JeremyGamer13 Mar 6, 2024
61aed5e
License, canFetch and Name on ID, are fixed
cicerorph Mar 6, 2024
c113163
Merge pull request #150 from pooiod/patch-6
JeremyGamer13 Mar 6, 2024
d20a45a
remove eval
JeremyGamer13 Mar 6, 2024
01fc901
Update extensions.js
JeremyGamer13 Mar 7, 2024
f74d260
Update Box2D.js
pooiod Mar 7, 2024
7cb2914
Merge pull request #151 from pooiod/patch-7
RedMan13 Mar 7, 2024
a254c60
Add files via upload
pooiod Mar 7, 2024
98df576
Delete static/images/pooiod/309973435-bcd5da92-1356-4506-96c4-0024c39…
pooiod Mar 7, 2024
504a6f5
Delete static/images/pooiod/Box2D.png
pooiod Mar 7, 2024
8fa2f11
Create File.txt
pooiod Mar 7, 2024
8b0eb00
Add files via upload
pooiod Mar 7, 2024
9c585f7
Delete static/pooiod/File.txt
pooiod Mar 7, 2024
ee51074
Create Dir
pooiod Mar 7, 2024
365017a
Add files via upload
pooiod Mar 7, 2024
64656a9
Delete static/pooiod directory
pooiod Mar 7, 2024
70f3079
Delete static/images/pooiod/Dir
pooiod Mar 7, 2024
a7505ee
Merge pull request #152 from pooiod/main
RedMan13 Mar 7, 2024
665edf3
Fix smth
cicerorph Mar 7, 2024
804c48d
my try to add a search bar into the extensions page
enderhacker Mar 7, 2024
0963f4d
extension saerch bar
enderhacker Mar 7, 2024
a853677
Update app.html
enderhacker Mar 7, 2024
fef6194
Update Component.svelte
enderhacker Mar 7, 2024
b838427
Update Component.svelte
enderhacker Mar 7, 2024
72e9dbc
svelte'ed the page this ok
enderhacker Mar 7, 2024
faf6cdc
Updaten't Component.svelte
enderhacker Mar 7, 2024
6a5f501
try to fix erm what i caused
enderhacker Mar 7, 2024
82e06ff
remove eval
JeremyGamer13 Mar 8, 2024
6184397
cleanup search bar & some unrelated weird code
JeremyGamer13 Mar 8, 2024
feed62e
implement search recommendations
JeremyGamer13 Mar 8, 2024
94b1898
Update Box2D.js
pooiod Mar 8, 2024
4614aa4
Merge pull request #153 from pooiod/patch-8
RedMan13 Mar 8, 2024
c299dbe
Update PenPlus.js
David-Orangemoon Mar 9, 2024
f709daf
revert PenPlus
SharkPool-SP Mar 9, 2024
094c07e
Update Extra-Control.md
SharkPool-SP Mar 9, 2024
de6bb24
Delete static/images/MubiLop/_Temp
JeremyGamer13 Mar 10, 2024
82d8cb6
Merge branch 'main' into patch-4
JeremyGamer13 Mar 10, 2024
974c913
Update penguingpt.js
JeremyGamer13 Mar 10, 2024
359c756
Update object.js
Skyhigh173 Mar 10, 2024
b35e175
Merge pull request #155 from Skyhigh173/patch-2
JeremyGamer13 Mar 10, 2024
13e1d72
Atualizar o penguingpt.js
cicerorph Mar 10, 2024
0f1f30a
Atualizar o penguingpt.js
cicerorph Mar 10, 2024
b9a6657
E
pooiod Mar 12, 2024
266ff0f
Add files via upload
pooiod Mar 12, 2024
c11161c
Delete static/images/pooiod/e
pooiod Mar 12, 2024
71334ad
Add files via upload
pooiod Mar 12, 2024
4249d97
Merge pull request #160 from pooiod/main
RedMan13 Mar 12, 2024
5d51791
Display-Text (Bug Fix)
SharkPool-SP Mar 14, 2024
cd67a4c
Uninstalled error from discordauth extension
enderhacker Mar 14, 2024
9dbbbcf
reuninstall the error duh
enderhacker Mar 14, 2024
a9a523a
fix a bug in More-Types.js
lego7set Mar 14, 2024
2e8f579
Merge pull request #161 from lego7set/patch-1
Ianyourgod Mar 15, 2024
a0d0c85
Add boxed physics svg
pooiod Mar 15, 2024
3f4b983
Delete static/images/pooiod/Boxed Physics svg source.svg
pooiod Mar 15, 2024
6bf208c
Rename boxed Physics svg.svg to B2Dimg.svg
pooiod Mar 15, 2024
38c847c
Update b2d img in extensions.js
pooiod Mar 15, 2024
27729c5
Merge branch 'PenguinMod:main' into main
pooiod Mar 15, 2024
8736d16
Merge pull request #162 from pooiod/main
RedMan13 Mar 15, 2024
2da4ede
gsa can you like not merge things for no reason
Ianyourgod Mar 15, 2024
e885fc3
Update Extra-Control.md
SharkPool-SP Mar 16, 2024
1976680
Update Sprite-Effects.js
SharkPool-SP Mar 17, 2024
cd64816
add OOP (Object Oriented Programming) to More-Types.js
lego7set Mar 17, 2024
e846001
make the print to console block prefix everything with MORE TYPES LOG:
lego7set Mar 17, 2024
826a407
Add section on reading the console
lego7set Mar 17, 2024
930e1b4
add documentation for the oop update of more-types
lego7set Mar 17, 2024
7029580
add instanceof block to more-types.js
lego7set Mar 17, 2024
926f17a
fix instanceof error message
lego7set Mar 17, 2024
124c935
add docs for instanceof block
lego7set Mar 17, 2024
767b55d
fix docs so that blocks render properly
lego7set Mar 17, 2024
1a12199
fix & change some weird stuff
JeremyGamer13 Mar 18, 2024
1e16537
Merge pull request #133 from cicerorph/patch-4
JeremyGamer13 Mar 18, 2024
2a02840
Merge pull request #163 from lego7set/main
JeremyGamer13 Mar 18, 2024
ebb7c8a
Update penguinhook.js
JeremyGamer13 Mar 18, 2024
72173ed
Merge branch 'main' into patch-3
JeremyGamer13 Mar 18, 2024
d980152
Merge pull request #110 from cicerorph/patch-3
JeremyGamer13 Mar 18, 2024
2ab742c
github shut up about This diff contains a change i
JeremyGamer13 Mar 19, 2024
e67576b
delist mouth washer due to no one maintaining it
JeremyGamer13 Mar 19, 2024
1434856
Update Sprite-Effects.js
SharkPool-SP Mar 19, 2024
78774a2
Create BoxedPhysics.md
pooiod Mar 19, 2024
5a338c4
Update Box2D.js
pooiod Mar 19, 2024
b7b644f
Update pages.js
pooiod Mar 19, 2024
e636887
Sprite-Effects (I did a silly)
SharkPool-SP Mar 20, 2024
9ed0d44
Sprite-Effects (stop auto-loading skins)
SharkPool-SP Mar 20, 2024
5f645a6
Create ttsr.js
PuzzlingGGG Mar 21, 2024
8cf4950
Create gsz
PuzzlingGGG Mar 21, 2024
b2b3034
Add files via upload
PuzzlingGGG Mar 21, 2024
c3ea739
Delete static/images/PuzzlingGGG/gsz
PuzzlingGGG Mar 21, 2024
6748139
Update extensions.js
PuzzlingGGG Mar 21, 2024
6470149
Merge pull request #167 from PuzzlingGGG/main
RedMan13 Mar 21, 2024
6442af9
Add Toast Notifications
cicerorph Mar 22, 2024
d81d857
Add files via upload
cicerorph Mar 22, 2024
c7bfacb
Update extensions.js
cicerorph Mar 22, 2024
df2323c
Update toastnotifs.js
cicerorph Mar 22, 2024
c1bedb6
frontend: change sizing & limit ext size
JeremyGamer13 Mar 22, 2024
3985059
Update Sprite-Effects.js
SharkPool-SP Mar 23, 2024
b48fd70
Update Extra-Control.md
SharkPool-SP Mar 26, 2024
123fce7
Update Extra-Control.md
SharkPool-SP Mar 26, 2024
7d0ffaf
Update Time-Calculations.js
SharkPool-SP Mar 26, 2024
fcad7c9
Update Variables-Expanded.js
SharkPool-SP Mar 30, 2024
04cce2a
Merge pull request #164 from pooiod/main
TheShovel Mar 30, 2024
cef5c25
Merge pull request #165 from pooiod/patch-10
TheShovel Mar 30, 2024
6702459
Fix static object detection
TheShovel Mar 30, 2024
0f1afd2
Update Variables-Expanded.js
SharkPool-SP Apr 1, 2024
dae0411
Update Recording.js
SharkPool-SP Apr 1, 2024
2cb0240
Update Recording.js
SharkPool-SP Apr 1, 2024
5c73203
fix bug somewhere
JeremyGamer13 Apr 1, 2024
6b99fce
fix another bug yea
JeremyGamer13 Apr 1, 2024
d87142c
images
JeremyGamer13 Apr 1, 2024
1e464ff
Update Variables-Expanded.js
SharkPool-SP Apr 3, 2024
574d3d1
Update BoxedPhysics.md
pooiod Apr 3, 2024
1b61a05
Merge pull request #171 from pooiod/patch-11
SharkPool-SP Apr 3, 2024
abbe4bb
Update Sprite-Effects.js
SharkPool-SP Apr 6, 2024
fda82b0
Create Scratchblocks.js
pooiod Apr 6, 2024
13726fd
Add files via upload
pooiod Apr 6, 2024
38a37a3
Update extensions.js
pooiod Apr 6, 2024
428d7f1
Update Scratchblocks.js
pooiod Apr 6, 2024
7432340
Update Scratchblocks.js
pooiod Apr 7, 2024
0051616
Update Scratchblocks.js
pooiod Apr 7, 2024
54dca02
Update Scratchblocks.js
pooiod Apr 7, 2024
3e7cb89
Update Scratchblocks.js
pooiod Apr 7, 2024
a5c3ce7
Update Scratchblocks.js
pooiod Apr 7, 2024
6062bd6
downscale PenguinHook thumbnail (1.55 GB bandwidth
JeremyGamer13 Apr 12, 2024
9a7d8b3
Merge branch 'main' of https://github.com/PenguinMod/PenguinMod-Exten…
JeremyGamer13 Apr 12, 2024
9de3738
downscale large images for bandwidth usage
JeremyGamer13 Apr 12, 2024
d10216f
Update BetterInput.js (newline support)
SharkPool-SP Apr 13, 2024
8474586
Merge pull request #173 from pooiod/main
TheShovel Apr 13, 2024
4da7f93
Dumb logs that destroy performance while packaged removed
TheShovel Apr 13, 2024
dc35eeb
Merge pull request #168 from cicerorph/main
TheShovel Apr 13, 2024
89642f5
fix
mariocraft987 Apr 13, 2024
56aa72f
Merge pull request #175 from mariocraft987/main
SharkPool-SP Apr 14, 2024
c36f273
Update Box2D.js
pooiod Apr 16, 2024
ea31996
Merge pull request #178 from pooiod/patch-12
RedMan13 Apr 16, 2024
c04c757
Update Box2D.js
pooiod Apr 16, 2024
3b76c3d
Merge pull request #179 from pooiod/patch-13
RedMan13 Apr 16, 2024
87d60d5
Update Box2D.js
pooiod Apr 16, 2024
dc001f6
Merge pull request #180 from pooiod/patch-14
JeremyGamer13 Apr 16, 2024
ec65bf4
Change credits that were requested by 2digits (themeatly2)
cicerorph Apr 20, 2024
5f8a267
Add files via upload
MikeDev101 Apr 22, 2024
ff5f7cc
Add files via upload
MikeDev101 Apr 22, 2024
baa4f51
Update extensions.js
MikeDev101 Apr 22, 2024
a5edb34
Fix: webrtc.js
MikeDev101 Apr 22, 2024
d1c2e21
Update toastnotifs.js
SharkPool-SP Apr 23, 2024
f222669
Update extensions.js
SharkPool-SP Apr 23, 2024
6343a47
pull request #181 -- Update Credits + Organize Extension List by Usef…
SharkPool-SP Apr 23, 2024
47ee6b6
Update e2ee.js
MikeDev101 Apr 23, 2024
0518565
Update webrtc.js
MikeDev101 Apr 23, 2024
0442271
Fix AI Images to be OpenAI response type.
cicerorph Apr 25, 2024
00cd864
Minecraft Commander Prompt
cicerorph Apr 26, 2024
7c8df68
Merge pull request #186 from cicerorph/patch-6
TheShovel Apr 27, 2024
b2a6b54
Remove Ruby devs
cicerorph Apr 27, 2024
7c02338
Fix dalle 3
cicerorph Apr 27, 2024
3a7e593
Merge pull request #187 from cicerorph/patch-7
TheShovel Apr 27, 2024
32d3fbd
Merge pull request #183 from MikeDev101/main
TheShovel Apr 27, 2024
7d8003e
Change models
cicerorph Apr 28, 2024
cbae25f
Update Font-Manager.js
SharkPool-SP Apr 29, 2024
7b74f50
Update BetterInput.js (Set dimensions)
SharkPool-SP Apr 29, 2024
e22e704
Update and rename ScreenSharing.js to VideoSharing.js
pooiod Apr 29, 2024
cd3bc19
Update VideoSharing.js
pooiod Apr 30, 2024
e6e008f
Update VideoSharing.js
pooiod Apr 30, 2024
4ed3e78
Merge pull request #20 from pooiod/patch-2
RedMan13 Apr 30, 2024
6e79073
part 1 of adding VideoSharing
RedMan13 Apr 30, 2024
e791b20
part 2 of adding videosharing (moving to pooiod)
RedMan13 Apr 30, 2024
30835a9
moving the file
RedMan13 Apr 30, 2024
99b8589
Update extensions.js
RedMan13 Apr 30, 2024
45976cf
Merge pull request #188 from cicerorph/patch-8
TheShovel Apr 30, 2024
d3d4ed6
Oh look syntax errors yay
cicerorph Apr 30, 2024
566403a
Merge pull request #190 from cicerorph/patch-9
JeremyGamer13 Apr 30, 2024
56042ff
Pen+ version 7
David-Orangemoon May 2, 2024
174a5d5
You get one more block as a treat
David-Orangemoon May 3, 2024
565fcc8
performance
David-Orangemoon May 4, 2024
a6c5f9f
Custom attribute bugfixes
David-Orangemoon May 4, 2024
c72c161
Alltrue bug fixes
David-Orangemoon May 4, 2024
cfd8adb
Fix
David-Orangemoon May 4, 2024
f3305f6
fixes from vadik 1
David-Orangemoon May 4, 2024
db763b2
Update PenPlus.js
David-Orangemoon May 5, 2024
b4ce8b3
#1 bestie
David-Orangemoon May 6, 2024
b53b725
Wowee
David-Orangemoon May 7, 2024
696073c
Display-Text (Bug Fix + Clickable Texts)
SharkPool-SP May 12, 2024
9da9109
Garbos requested changes
David-Orangemoon May 12, 2024
90e3a3a
Update SoundCloud-API.js
SharkPool-SP May 13, 2024
45c2cae
Update SoundCloud-API.js
SharkPool-SP May 13, 2024
fe4c0e0
Update Scratchblocks.js
pooiod May 14, 2024
107221c
Update Sprite-Effects.js
SharkPool-SP May 15, 2024
f03eccf
Merge pull request #194 from pooiod/patch-15
SharkPool-SP May 15, 2024
bb4fe73
Update penguingpt.js
cicerorph May 15, 2024
330906b
Big ol U_res patch.
David-Orangemoon May 15, 2024
1da057e
Update VideoSharing.js
pooiod May 15, 2024
90f527e
Merge pull request #195 from cicerorph/patch-9
RedMan13 May 16, 2024
06375fd
Merge pull request #196 from pooiod/patch-16
RedMan13 May 16, 2024
f8e6a61
Security issue in VideoSharing.js
pooiod May 17, 2024
d17ae29
Merge pull request #197 from pooiod/patch-17
Ianyourgod May 17, 2024
690e8a1
Add files via upload
AshimeeAlt May 20, 2024
b65b124
Update extensions.js
AshimeeAlt May 20, 2024
f101dda
Add files via upload
AshimeeAlt May 20, 2024
92bafae
OnlineCaptcha.js beta release
enderhacker May 21, 2024
c4b0981
Update extensions.js
enderhacker May 21, 2024
76201c1
Add files via upload
enderhacker May 21, 2024
000c133
Update OnlineCaptcha.js to include more understanding
enderhacker May 21, 2024
72367cf
Pause-Utilities -- Faster & Better Code
SharkPool-SP May 24, 2024
d8b2299
Update Pause-Utilities.js
SharkPool-SP May 24, 2024
e584f0c
fun happy changes
jwklong May 25, 2024
362b799
Merge pull request #200 from AshimeeAlt/MoreFields
jwklong May 25, 2024
6a5daa3
let me see my beautiful thumbnails in full rahhh
jwklong May 25, 2024
0459f0d
made it slightly better on mobile
minidogg May 25, 2024
107ee4c
Made it more mobile compatible
minidogg May 25, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/temp
117 changes: 115 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
# Extension Gallery

## Submitting an extension

### NOTE!
Once submitted, your extension CANNOT be removed from the files. Your extension may be delisted, but the code must NEVER be removed.

This is to prevent projects being broken. If we remove your code, anyone who used your extension will have to remake their ENTIRE project without editing their file manually.

### Step 1.
Create your extension. You can find a lot of details [here](https://docs.turbowarp.org/development/extensions/introduction).

#### Important notes:
#### Important Guidelines:
- Your extension should not already exist on the gallery. Please check the
[Pull Requests](https://github.com/PenguinMod/PenguinMod-ExtensionsGallery/pulls)
and [Gallery page](https://penguinmod-extensions-gallery.vercel.app/) to confirm.
and [Gallery page](https://extensions.penguinmod.com/) to confirm.
- Your extension should be created for a specific purpose. An extension with random blocks someone might need will likely not get accepted if the blocks are not in a certain theme, like math or rendering.
- Your extension should be easily explainable in 1-2 sentences or a single picture. This is what will determine whether you can be on the gallery or not.
- Your extension should be MIT licensed (not compatible with the MIT license, should be the actual MIT license. This may change in the future.)
- Your extension **CANNOT** reference or use any content from a website not suitable for ages 13+
- Your extension **CANNOT** contain content not suitable for ages 10+ (including extension icon and extension code)
- Your extension **CANNOT** contain discriminatory content or content that is against a certain group or minority

### Step 2.
Create info for your extension, like a description and a banner / thumbnail.
Expand Down Expand Up @@ -54,6 +63,7 @@ You can post your extension banner / thumbnail and or description in the pull re
Once your pull request is merged, it'll be on the site or upcoming onto the site. You may get responses about things you should change or fix though.

*Note: Vercel may comment on your pull request. This is the hosting service we use.*

*If it has a link to visit a preview, you can click on it and see your changes. See the Optional Steps for more info on how to edit the site to show your extension.*

# Optional Steps
Expand All @@ -78,6 +88,108 @@ If you are using the website to add the file:
This should create the folder with the uploaded image inside.

### Step 7.
Create instructions on using your extension.

***This really only makes sense if your extension has features that may need explanation.***

Enter the `src/lib/Documentation` folder in the repository.

Inside this folder are a lot of `.md` files. You will need to make one for your documentation.
These are **Markdown** files. It's a simple way to write information nicely. Right now, you are reading a markdown file.

To learn how to write markdown, you can visit https://www.markdowntutorial.com/
or just write your `.md` file using the same formatting tools that Discord has.

If you are using the website to add the `.md` file:

1. Click `Add File` at the top and click `Create new file`.
2. At the top where the file name is, type your extensions name, and then `.md`. **DO NOT TYPE A `/` HERE!**
3. Now type your markdown code. GitHub may actually show you a preview of your markdown.

#### Typing Scratch Blocks in your tutorial
You might notice documentation pages like the one for [Particle Tools](https://extensions.penguinmod.com/docs/particle-tools)
have blocks on them.

To do this, `.md` files have something called code-blocks. You type \`\`\` and then some code, then type \`\`\` again.

Example:
````
```
this is probably code
```
````
will become
```
this is probably code
```

You can also specify a programming language (which will be important for showing blocks)

Example:
````
```js
console.log("Hello world!");
```
````
will become
```js
console.log("Hello world!");
```

To type blocks in your documentation, specify `scratch` as the programming lanugage.

Example:
````
```scratch
hello, i am a scratch block ()
```
````
will become

<img src="example_block.png" alt="Block" height="64"></img>

*(visit https://scratchblocks.github.io to play with creating blocks like this)*

Note that GitHub, Visual Studio Code or other Markdown editors likely will not support this. **This only works on the PenguinMod site.** This is also why Vercel may allow you to preview your pull request.

#### Adding the tutorial to the site
So far we have covered creating and filling out the `.md` file, but it's not available yet.

To do this, enter the `src/lib/Documentation/pages.js` file.

In this file you will see some instructions. First off at the start of the file, follow the instructions to import your `.md` file.

Example:
*The documentation file is called `extension.md` in these examples.*
```js
import PageExtension from "./extension.md?raw";
```
```js
import PageDocumentationExtension from "./extension.md?raw";
```

Now you will see some more instructions below. Here, you will create the page that leads to the documentation.

Example:
*The above example helps visualize this section easier.*
```js
"extension": PageExtension,
```
`/docs/extension` will lead to the docs here
```js
"extension": PageDocumentationExtension,
```
`/docs/extension` will lead to the docs here
```js
"afdoiewhfoqwijel": PageExtension,
```
`/docs/afdoiewhfoqwijel` will lead to the docs here

Do not type a `/` or any characters that cannot be used in a URL here. Uppercase letters may also not work for the page link.

Also try to keep the name recognizable to your extension as this name will also be used on the `/docs` page.

### Step 8.
Add your extension onto the actual website.

Enter the `src/lib/extensions.js` file in the repository.
Expand All @@ -91,6 +203,7 @@ Each extension is incased in `{}` brackets. Look below on how to copy it.
description: "Blocks to return the result of an expression.", // The description for the extension.
code: "Username/extension.js", // The folder and file name for the code of the extension.
banner: "Username/Extension.png", // The folder and file name for the banner of the extension.
documentation: "page-name", // Only applies if you created a documentation page. This is the page name for that documentation.
creator: "Username", // Your username. Adds a link to your profile.
isGitHub: false, // Optional. false means this is your Scratch username, true means this is your GitHub username.
},
Expand Down
Binary file added example_block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"svelte": "^4.0.5",
"vite": "^4.4.2"
},
"type": "module"
"type": "module",
"dependencies": {
"markdown-it": "^13.0.1"
}
}
32 changes: 32 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,46 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
<title>PenguinMod Extra Extensions</title>

<meta name="title" content="PenguinMod Extra Extensions">
<meta name="description" content="More community extensions that haven't made it to the menu yet.">
<meta property="theme-color" content="#51D3F4">

<meta property="og:type" content="website">
<meta property="og:url" content="https://extensions.penguinmod.com/">
<meta property="og:title" content="PenguinMod Extra Extensions">
<meta property="og:image" content="https://extensions.penguinmod.com/favicon.ico">

<meta property="twitter:url" content="https://extensions.penguinmod.com/">
<meta property="twitter:title" content="PenguinMod Extra Extensions">
<meta property="twitter:description" content="More community extensions that haven't made it to the menu yet.">
<meta property="twitter:image" content="https://extensions.penguinmod.com/favicon.ico">

<meta name="viewport" content="width=device-width" />
<style>
:root {
font-family: Arial, Helvetica, sans-serif;
}
.sb3-comment-label {
fill: black !important;
}
a {
color: dodgerblue;
}
a:visited {
color: #862aff;
}
body.dark-mode a {
color: #00c3ff;
}
body.dark-mode a:visited {
color: #af72ff;
}
</style>
%sveltekit.head%
</head>

<body data-sveltekit-preload-data="hover" id="PAGE_BODY">
<div style="display: contents">%sveltekit.body%</div>
</body>
Expand Down
Loading