Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Add 'CI Approval Required' Label"
if: (github.event.action == 'synchronize' || github.event.action == 'reopened') || ((github.event.action == 'opened' || github.event.action == 'labeled') && !contains(github.event.pull_request.labels.*.name, 'CI Cleared'))
if: (github.event.action == 'opened' || github.event.action == 'labeled' || github.event.action == 'synchronize' || github.event.action == 'reopened') && !contains(github.event.pull_request.labels.*.name, 'CI Cleared')
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf
with:
labels: CI Approval Required
Expand Down Expand Up @@ -84,4 +84,4 @@ jobs:
umbrella-dir: ./pr-preview/
deploy-repository: ${{ env.DEPLOY_REPO_OWNER }}/${{ env.DEPLOY_REPO }}
custom-url: "ref.opendre.am"
action: deploy
action: deploy
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We can use shortcodes to render specific HTML within our Markdown files. They're
```

Currently, we have 4 callout shortcodes, which all take a `description` argument:
- never_implemented
- unsupported
- od_only
- parity
- unimplemented
Expand Down
6 changes: 4 additions & 2 deletions content/language/proc/bounds_dist.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
+++
title = "bounds_dist"
[extra]
od_unimplemented = true # AUTOGEN FIELD
[[extra.args]]
name = "Ref" # AUTOGEN STATIC
type = "/atom" # AUTOGEN FIELD
[[extra.args]]
name = "Target" # AUTOGEN STATIC
type = "/atom" # AUTOGEN FIELD
[extra.return]
type = "num" # AUTOGEN FIELD
+++
2 changes: 1 addition & 1 deletion content/language/proc/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Where the user should be connected to."

This is combined with the [<< output](@/language/operators/lessless/output.md) operator to send a link to a client. This will open in the user's browser.

{% never_implemented() %}
{% unsupported() %}
In BYOND, a BYOND server address can be provided. This will disconnect and reconnect the user to the provided world, eg:

```dm
Expand Down
2 changes: 2 additions & 0 deletions content/objects/client/proc/checkpassport.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "CheckPassport"
slug = "CheckPassport" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
[[extra.args]]
name = "passport_identifier" # AUTOGEN STATIC
+++
1 change: 1 addition & 0 deletions content/objects/client/proc/isbyondmember.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = "IsByondMember"
slug = "IsByondMember" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
+++
2 changes: 2 additions & 0 deletions content/objects/client/proc/sendpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "SendPage"
slug = "SendPage" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
[[extra.args]]
name = "msg" # AUTOGEN STATIC
[[extra.args]]
Expand Down
2 changes: 1 addition & 1 deletion content/objects/client/var/byond_build.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "byond_build"
[extra]
default_value = "1633" # AUTOGEN FIELD
default_value = "1655" # AUTOGEN FIELD
is_override = false # AUTOGEN FIELD
+++
2 changes: 1 addition & 1 deletion content/objects/client/var/byond_version.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "byond_version"
[extra]
default_value = "515" # AUTOGEN FIELD
default_value = "516" # AUTOGEN FIELD
is_override = false # AUTOGEN FIELD
+++
3 changes: 2 additions & 1 deletion content/objects/client/var/gender.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title = "gender"
[extra]
default_value = "neuter" # AUTOGEN FIELD
is_override = false # AUTOGEN FIELD
type = "text" # AUTOGEN FIELD
type = "text, unsupported" # AUTOGEN FIELD
od_unsupported = true # AUTOGEN FIELD
+++
2 changes: 2 additions & 0 deletions content/objects/world/proc/addcredits.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "AddCredits"
slug = "AddCredits" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
[[extra.args]]
name = "player" # AUTOGEN STATIC
[[extra.args]]
Expand Down
1 change: 1 addition & 0 deletions content/objects/world/proc/clearmedal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = "ClearMedal"
slug = "ClearMedal" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
+++
2 changes: 2 additions & 0 deletions content/objects/world/proc/getcredits.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "GetCredits"
slug = "GetCredits" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
[[extra.args]]
name = "player" # AUTOGEN STATIC
+++
1 change: 1 addition & 0 deletions content/objects/world/proc/getmedal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = "GetMedal"
slug = "GetMedal" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
+++
1 change: 1 addition & 0 deletions content/objects/world/proc/getscores.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = "GetScores"
slug = "GetScores" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
+++
2 changes: 2 additions & 0 deletions content/objects/world/proc/issubscribed.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "IsSubscribed"
slug = "IsSubscribed" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
[[extra.args]]
name = "player" # AUTOGEN STATIC
[[extra.args]]
Expand Down
2 changes: 2 additions & 0 deletions content/objects/world/proc/paycredits.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
+++
title = "PayCredits"
slug = "PayCredits" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
[[extra.args]]
name = "player" # AUTOGEN STATIC
[[extra.args]]
Expand Down
1 change: 1 addition & 0 deletions content/objects/world/proc/setmedal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = "SetMedal"
slug = "SetMedal" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
+++
1 change: 1 addition & 0 deletions content/objects/world/proc/setscores.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = "SetScores"
slug = "SetScores" # AUTOGEN FIELD
[extra]
od_unsupported = true # AUTOGEN FIELD
+++
2 changes: 1 addition & 1 deletion content/objects/world/var/byond_build.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "byond_build"
[extra]
default_value = "1633" # AUTOGEN FIELD
default_value = "1655" # AUTOGEN FIELD
is_override = false # AUTOGEN FIELD
+++
2 changes: 1 addition & 1 deletion content/objects/world/var/byond_version.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "byond_version"
[extra]
default_value = "515" # AUTOGEN FIELD
default_value = "516" # AUTOGEN FIELD
is_override = false # AUTOGEN FIELD
+++
6 changes: 3 additions & 3 deletions content/reference/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ We can use shortcodes to render specific HTML within our Markdown files. They're
```

Currently, we have 4 callout shortcodes, which all take a `description` argument. However, the preferred way of invoking them is:
### never_implemented
### unsupported

```go
{%/* never_implemented() */%}
{%/* unsupported() */%}
Like this!
{%/* end */%}
```
{% never_implemented() %}
{% unsupported() %}
Like this!
{% end %}

Expand Down
22 changes: 20 additions & 2 deletions templates/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<div class="{% if not list %}text-xl{% endif %}">Arguments:</div>
<div class="flex flex-col">
{% for arg in page.extra.args %}
<div class="pl-5">{{arg.name}}{% if arg.type %} ({{ self::render_single_type(type=arg.type)}}){% endif %}{%- if arg.default_value %} = {{arg.default_value}}{% endif %}{% if arg.description %}: {{arg.description}}{% endif %}{%- if arg.od_unimplemented -%}<div class="text-sm text-red-400 border-l-2 border-red-400 pl-2 inline ml-2">Unimplemented 🏗️</div>{%- endif -%}</div>
<div class="pl-5">{{arg.name}}{% if arg.type %} ({{ self::render_single_type(type=arg.type)}}){% endif %}{%- if arg.default_value %} = {{arg.default_value}}{% endif %}{% if arg.description %}: {{arg.description}}{% endif %}{%- if arg.od_unimplemented -%}<div class="text-sm text-red-400 border-l-2 border-red-400 pl-2 inline ml-2">Unimplemented 🏗️</div>{%- endif -%}{%- if arg.od_unsupported -%}<div class="text-sm text-[#b91c1c] border-l-2 border-[#b91c1c] pl-2 inline ml-2">Unsupported ⛔</div>{%- endif -%}</div>
{% endfor %}
</div>
</div>
Expand All @@ -195,7 +195,7 @@
{% for form in page.extra.format %}
<div class="pl-5">{{ page.title }}(
{%- for arg in form -%}
{% if arg.type %}{{ self::render_single_type(type=arg.type)}}/{% endif %}{{arg.name}}{%- if arg.default_value %} = {{ arg.default_value }}{% endif %}{% if not loop.last %},{% endif %}{%- if arg.od_unimplemented -%}<div class="text-sm text-red-400 border-l-2 border-red-400 pl-2 inline ml-2">Unimplemented 🏗️</div>{%- endif -%}{% if not loop.last %} {% endif -%}
{% if arg.type %}{{ self::render_single_type(type=arg.type)}}/{% endif %}{{arg.name}}{%- if arg.default_value %} = {{ arg.default_value }}{% endif %}{% if not loop.last %},{% endif %}{%- if arg.od_unimplemented -%}<div class="text-sm text-red-400 border-l-2 border-red-400 pl-2 inline ml-2">Unimplemented 🏗️</div>{%- endif -%}{%- if arg.od_unsupported -%}<div class="text-sm text-[#b91c1c] border-l-2 border-[#b91c1c] pl-2 inline ml-2">Unsupported ⛔</div>{%- endif -%}{% if not loop.last %} {% endif -%}
{% endfor -%}
){% for arg in form %}
{%- if arg.description -%}
Expand Down Expand Up @@ -362,6 +362,16 @@ <h4 class="pt-3">See also:</h4>
smalltext=list)
}}
{% endif %}
{%- if arg.od_unsupported -%}<div class="text-sm text-[#b91c1c] border-l-2 border-[#b91c1c] pl-2 inline ml-2">Unsupported ⛔</div>{%- endif -%}

{% if page.extra.od_unsupported %}
{{ sc::render_callout(color="#b91c1c",
title="Unsupported ⛔",
body="In the OpenDream implementation of DreamMaker, this proc will not be supported.",
smalltext=list)
}}
{% endif %}


<div class="page-content">
{{ page.content | safe }}
Expand Down Expand Up @@ -462,6 +472,14 @@ <h4 class="pt-3">See also:</h4>
}}
{% endif %}

{% if page.extra.od_unsupported %}
{{ sc::render_callout(color="#b91c1c",
title="Unsupported ⛔",
body="In the OpenDream implementation of DreamMaker, this variable will not be supported.",
smalltext=list)
}}
{% endif %}

<div class="page-content">
{{ page.content | safe }}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%- set contents = description -%}
{%- endif -%}
{{ sc::render_callout(color="#b91c1c",
title="Never Implemented ⛔",
body="In the OpenDream implementation of DreamMaker, this feature will not be implemented:",
title="Unsupported ⛔",
body="In the OpenDream implementation of DreamMaker, this feature will not be supported:",
contents=contents)
}}
2 changes: 1 addition & 1 deletion tools/OpenDreamDocumentationTool/OpenDream
Submodule OpenDream updated 183 files
Loading
Loading