Better definition layout, page_status labels, content changes

This commit is contained in:
magmaus3 2023-08-10 14:17:28 +02:00
parent e46e36412d
commit 4d4ee393af
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
19 changed files with 367 additions and 14 deletions

View file

@ -0,0 +1,19 @@
---
title: "{{ replace .Name "-" " " | title }}"
description: "description"
layout: "definition"
page_status:
- 'stub'
---
## Usage
```txt
{{ .Name }} required, [optional] // type these in manually
```
<!--
optional arguments are written in square brackets
below you can add examples
--->

View file

@ -1,15 +1,15 @@
--- ---
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
description: "{{ .Description }}" description: "description"
date: {{ .Date }} layout: "definition"
type: "lua_func" page_status:
- 'stub'
--- ---
# `{{ .Name }}` {{ .Description }}
## Usage ## Usage
```lua
{{ .Name }}(required, [optional]) <!-- type these in manually --> {{ .Name }}(required, [optional]) -- type these in manually
```
<!-- <!--
optional arguments are written in square brackets optional arguments are written in square brackets

View file

@ -0,0 +1,8 @@
---
title: 'List of builtin commands'
layout: 'list'
---
These commands are accessible through [`mgCommand()`](/luafunctions/mgcommand)
<!-- Some commands might have documentation on the [Smashing Tech Wiki](https://antifandom.com/smashhitlab/wiki/List_of_Lua_Functions) -->

View file

@ -0,0 +1,19 @@
---
title: "level.skip"
description: "skips the level if the user has enough coins (same as pressing the skip level button)"
layout: "definition"
page_status:
- stub
---
## Usage
```txt
level.skip
```
<!--
optional arguments are written in square brackets
below you can add examples
--->

View file

@ -1,7 +1,7 @@
--- ---
title: 'mgCameraShake' title: 'mgCameraShake'
description: 'used to visually shake the camera' description: 'used to visually shake the camera'
layout: 'LuaFunctions' layout: 'definition'
page_status: page_status:
- 'stub' - 'stub'
--- ---

View file

@ -0,0 +1,22 @@
---
title: "mgCommand"
description: "Executes internal commands"
layout: "LuaFunctions"
page_status:
- stub
see_also:
- "/builtincommands/"
---
## Usage
```lua
mgCommand(command)
```
`command` includes both the command itself and parameters used
<!--
optional arguments are written in square brackets
below you can add examples
--->

View file

@ -1,3 +1,4 @@
Welcome to the wiki! # Welcome to the wiki!
It's unfinished, but hopefully it'll be! It's unfinished, but hopefully it'll be soon!
Meanwhile you can check out the categories below:

View file

@ -0,0 +1,67 @@
audio.playBackgroundMusic
audio.playForegroundMusic
movie.start
level.restart
level.replay
level.start
level.startreplay
.motion
level.skip
game.quit
game.menu
game.leaderboards
game.achievements
game.saveConfig
game.url
game.difficulty
hud.reload
player.buy
player.buycoins
com.mediocre.grannysmith.coins1000
com.mediocre.grannysmith.coins3000
player.unlockall
player.restorepurchases
player.rate
player.unlockallchar
player.selectcharacter
player.ischaracteravailable
player.reset
player.adsshown
game.signin
game.signout
audio.playBackgroundMusic
audio.playForegroundMusic
movie.start
level.restart
level.replay
level.start
level.startreplay
level.skip
game.quit
game.menu
game.leaderboards
game.achievements
game.saveConfig
game.url
game.difficulty
audio.playBackgroundMusic
audio.playForegroundMusic
movie.start
level.restart
level.replay
level.start
level.startreplay
level.skip
game.quit
game.menu
game.leaderboards
game.achievements
game.saveConfig
game.url
game.difficulty
hud.reload
player.buy
player.buycoins
player.unlockall
player.restorepurchases
com.mediocre.grannysmith.unlockall3

View file

@ -0,0 +1,63 @@
mgCreateImage
mgCreateUi
mgCreateText
mgSetOrigo
mgSetCrop
mgRadioSelect
mgSetUiEnabled
mgSetUiModal
mgSetText
mgSetPos
mgSetRot
mgSetScale
mgSetAlpha
mgSetColor
mgGetPos
mgGetRot
mgGetScale
mgGetAlpha
mgGetColor
mgIsVisible
mgDraw
mgGet
mgSet
mgCommand
mgScriptTime
mgScriptFrame
mgFullScreenColor
mgCreateSound
mgPlaySound
mgIsTouched
mgGetLastTouch
mgGetScreenCoord
mgGetLevelInfo
mgIsCharacterAvailable
mgCreateCanvas
mgPushCanvas
mgPopCanvas
mgSetCanvasEnabled
mgSetCanvasWindow
mgSetCanvasMovable
mgGetUiSelectionCount
mgGetUiSelectionInfo
mgDrawReplay
mgGetPose
mgSetPose
mgGetVelocity
mgSetVelocity
mgSetFilter
mgSetDynamic
mgMove
mgRotate
mgGetDistanceBetweenBodies
mgGetDistanceToPoint
mgInSensor
mgBreakJoint
mgSetSensorEnabled
mgIsGrabbed
mgIsBroken
mgCreateEffect
mgParticle
mgRnd
mgParticlePoof
mgCameraShake

View file

@ -7,3 +7,7 @@ title = 'Granny Smith Technical'
page_status = 'page_status' page_status = 'page_status'
# tag = 'tags' # tag = 'tags'
[markup]
[markup.highlight]
noClasses = false
style = 'github-dark'

View file

@ -5,6 +5,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/index.css" rel="stylesheet"> <link href="/index.css" rel="stylesheet">
{{ block "head" . }}
{{ end }}
</head> </head>
<body> <body>
{{ block "main" . }} {{ block "main" . }}

View file

@ -1,3 +1,6 @@
{{ define "head" }}
<link rel="stylesheet" href="/syntax_highlighting.css">
{{ end }}
{{ define "main" }} {{ define "main" }}
{{ partial "header.html" }} {{ partial "header.html" }}
<article> <article>
@ -6,7 +9,9 @@
</header> </header>
{{ .Content }} {{ .Content }}
<footer> <footer>
{{ partial "see_also" . }}
{{ partial "categories.html" }} {{ partial "categories.html" }}
{{ partial "content_notices.html" . }}
</footer> </footer>
</article> </article>
{{ end }} {{ end }}

View file

@ -1,11 +1,11 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<div> <div>
{{ partial "header.html" . }}
<h1>{{ .Name | lower }}</h1> <h1>{{ .Name | lower }}</h1>
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
<ul> <ul>
{{ range .Pages }} {{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li> <li><a href="{{ .Permalink }}">{{ .Title }}</a> {{ printf "%#v" .Kind }}</li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>

View file

@ -0,0 +1,13 @@
{{ define "main" }}
<main>
<div>
{{ partial "header.html" . }}
<h1>Pages marked as <code>{{ .Type | lower }}.{{ .Name | lower }}</code></h1>
<ul>
{{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
</main>
{{ end }}

View file

@ -0,0 +1,9 @@
<div class="content_notice">
{{ range .Params.page_status }}
{{ if eq . "stub" }}
<div class="stub">
This page is a <a href="/page_status/stub">stub</a>, you might want to expand it.
</div>
{{ end }}
{{ end }}
</div>

View file

@ -0,0 +1,8 @@
<div class="see_also">
<h3>See also: </h3>
<ul>
{{ range .Params.see_also }}
<li><a href="{{ (site.GetPage .).Permalink }}">{{ (site.GetPage . ).LinkTitle }}</a></li>
{{ end }}
</ul>
</div>

View file

@ -11,9 +11,14 @@ nav {
box-shadow: 0px 5px 15px #121212; box-shadow: 0px 5px 15px #121212;
} }
pre > code { article {
padding: 10px; padding: 1em;
}
.chroma {
padding: 1em;
font-size: inherit; font-size: inherit;
/* background-color: #20202a; */
} }
nav a { nav a {
@ -45,3 +50,25 @@ blockquote {
border-left: 2px solid gray; border-left: 2px solid gray;
padding-left: 1em; padding-left: 1em;
} }
.content_notice > * {
padding: 1em;
border: 1px solid gray;
max-width: max-content;
border-radius: 0.5em;
}
.content_notice .stub {
background-color: #FFFF00A0;
color: black;
}
.content_notice .stub a {
color: inherit;
font-weight: bolder;
text-shadow: 0px 0px 2px cyan;
transition: 100ms text-shadow ease-in-out;
} .content_notice .stub a:hover {
text-shadow: 0px 0px 5px red;
}

View file

@ -0,0 +1,86 @@
/* Background */ .bg { color: #abb2bf; background-color: #282c34; }
/* PreWrapper */ .chroma { color: #abb2bf; background-color: #282c34; }
/* Other */ .chroma .x { }
/* Error */ .chroma .err { }
/* CodeLine */ .chroma .cl { }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #55595f }
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #55595f }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #c678dd }
/* KeywordConstant */ .chroma .kc { color: #e5c07b }
/* KeywordDeclaration */ .chroma .kd { color: #c678dd }
/* KeywordNamespace */ .chroma .kn { color: #c678dd }
/* KeywordPseudo */ .chroma .kp { color: #c678dd }
/* KeywordReserved */ .chroma .kr { color: #c678dd }
/* KeywordType */ .chroma .kt { color: #e5c07b }
/* Name */ .chroma .n { color: #e06c75 }
/* NameAttribute */ .chroma .na { color: #e06c75 }
/* NameBuiltin */ .chroma .nb { color: #e5c07b }
/* NameBuiltinPseudo */ .chroma .bp { color: #e06c75 }
/* NameClass */ .chroma .nc { color: #e5c07b }
/* NameConstant */ .chroma .no { color: #e06c75 }
/* NameDecorator */ .chroma .nd { color: #61afef }
/* NameEntity */ .chroma .ni { color: #e06c75 }
/* NameException */ .chroma .ne { color: #e06c75 }
/* NameFunction */ .chroma .nf { color: #61afef; font-weight: bold }
/* NameFunctionMagic */ .chroma .fm { color: #56b6c2; font-weight: bold }
/* NameLabel */ .chroma .nl { color: #e06c75 }
/* NameNamespace */ .chroma .nn { color: #e06c75 }
/* NameOther */ .chroma .nx { color: #e06c75 }
/* NameProperty */ .chroma .py { color: #e06c75 }
/* NameTag */ .chroma .nt { color: #e06c75 }
/* NameVariable */ .chroma .nv { color: #e06c75 }
/* NameVariableClass */ .chroma .vc { color: #e06c75 }
/* NameVariableGlobal */ .chroma .vg { color: #e06c75 }
/* NameVariableInstance */ .chroma .vi { color: #e06c75 }
/* NameVariableMagic */ .chroma .vm { color: #e06c75 }
/* Literal */ .chroma .l { }
/* LiteralDate */ .chroma .ld { }
/* LiteralString */ .chroma .s { color: #98c379 }
/* LiteralStringAffix */ .chroma .sa { color: #98c379 }
/* LiteralStringBacktick */ .chroma .sb { color: #98c379 }
/* LiteralStringChar */ .chroma .sc { color: #98c379 }
/* LiteralStringDelimiter */ .chroma .dl { color: #98c379 }
/* LiteralStringDoc */ .chroma .sd { color: #98c379 }
/* LiteralStringDouble */ .chroma .s2 { color: #98c379 }
/* LiteralStringEscape */ .chroma .se { color: #98c379 }
/* LiteralStringHeredoc */ .chroma .sh { color: #98c379 }
/* LiteralStringInterpol */ .chroma .si { color: #98c379 }
/* LiteralStringOther */ .chroma .sx { color: #98c379 }
/* LiteralStringRegex */ .chroma .sr { color: #98c379 }
/* LiteralStringSingle */ .chroma .s1 { color: #98c379 }
/* LiteralStringSymbol */ .chroma .ss { color: #98c379 }
/* LiteralNumber */ .chroma .m { color: #d19a66 }
/* LiteralNumberBin */ .chroma .mb { color: #d19a66 }
/* LiteralNumberFloat */ .chroma .mf { color: #d19a66 }
/* LiteralNumberHex */ .chroma .mh { color: #d19a66 }
/* LiteralNumberInteger */ .chroma .mi { color: #d19a66 }
/* LiteralNumberIntegerLong */ .chroma .il { color: #d19a66 }
/* LiteralNumberOct */ .chroma .mo { color: #d19a66 }
/* Operator */ .chroma .o { color: #56b6c2 }
/* OperatorWord */ .chroma .ow { color: #56b6c2 }
/* Punctuation */ .chroma .p { }
/* Comment */ .chroma .c { color: #7f848e }
/* CommentHashbang */ .chroma .ch { color: #7f848e }
/* CommentMultiline */ .chroma .cm { color: #7f848e }
/* CommentSingle */ .chroma .c1 { color: #7f848e }
/* CommentSpecial */ .chroma .cs { color: #7f848e }
/* CommentPreproc */ .chroma .cp { color: #7f848e }
/* CommentPreprocFile */ .chroma .cpf { color: #7f848e }
/* Generic */ .chroma .g { }
/* GenericDeleted */ .chroma .gd { }
/* GenericEmph */ .chroma .ge { }
/* GenericError */ .chroma .gr { }
/* GenericHeading */ .chroma .gh { }
/* GenericInserted */ .chroma .gi { }
/* GenericOutput */ .chroma .go { }
/* GenericPrompt */ .chroma .gp { }
/* GenericStrong */ .chroma .gs { }
/* GenericSubheading */ .chroma .gu { }
/* GenericTraceback */ .chroma .gt { }
/* GenericUnderline */ .chroma .gl { }
/* TextWhitespace */ .chroma .w { }