Skip to content

Commit 038cdee

Browse files
authored
Merge pull request #292 from noah-severyn/rhw-updates
Update RealHighway page
2 parents b5a8d11 + 99d569f commit 038cdee

247 files changed

Lines changed: 2060 additions & 1267 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,31 @@ There are a handful of Hugo shortcodes that can be used to make developing docum
104104

105105
Shortcodes are written in the `{{< SHORTCODE >}}` syntax. However there may be some cases where you need to use a particular shortcode inside an automatically-generated heading. For these, you will need to use the `{{% SHORTCODE %}}` syntax.
106106

107+
Some shortcodes take arguments which can be used to customize their content or appearance.
108+
Depending on how the shortcode is set up, arguments may either be relative (specified one after each other, in order), or named.
109+
Named arguments are useful for clarity, or if you only wish to specify some arguments to the shortcode, not all.
110+
In a single shortcode, you cannot mix and match relative and named arguments.
111+
112+
``` c#
113+
// relative arguments
114+
{{< shortcode "value1" "value2" "value3">}}
115+
116+
// named arguments
117+
{{< shortcode arg1="value1" arg2="value2" arg3="value3">}}
118+
{{< shortcode arg1="value1" arg3="value3">}}
119+
120+
// invalid
121+
{{< shortcode "value1" arg3="value3">}}
122+
```
123+
107124
#### Alert
108125

109126
Shortcode:
110127
```
111128
{{< alert context="CONTEXT" text="This is an example alert." >}}
112129
```
113-
The above shortcode uses a simple string to create the alert.
114-
115-
The following contexts are supported:
130+
The above shortcode uses a simple string to create the alert.
131+
These alerts are styled off of the [Bootstrap Alerts](https://getbootstrap.com/docs/5.3/components/alerts/), and the following contexts are supported:
116132
* primary
117133
* info
118134
* success
@@ -140,14 +156,27 @@ A carousel is a slideshow for cycling through a series of images. List the image
140156
```
141157

142158
#### Details
143-
This shortcode is simply a wrapper for the HTML [details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details). Specify the summary text and optionally choose whether to have the element open by default instead of closed.
159+
This shortcode is simply a wrapper for the HTML [details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details).
160+
Specify the summary text.
161+
Optionally choose whether to show a badge (currently `deprecated` and `legacy` are supported), and whether to have the element open by default instead of closed.
144162

145163
```
146164
{{< details "Summary text" >}}
147165
Content goes here. This will be hidden until the user clicks to expand.
148166
{{< /details >}}
149167
150-
{{< details "Summary text" "open" >}}
168+
{{< details "Summary text" "deprecated" >}}
169+
Content goes here. This will be hidden until the user clicks to expand.
170+
{{< /details >}}
171+
172+
{{< details summary="Summary text" badge="deprecated" >}}
173+
Content goes here. This will be hidden until the user clicks to expand.
174+
{{< /details >}}
175+
```
176+
177+
To specify the state without a badge, you must use named arguments:
178+
```
179+
{{< details summary="Summary text" state="open" >}}
151180
This content will be visible by default because state is set to "open".
152181
{{< /details >}}
153182
```
@@ -270,6 +299,7 @@ MARKDOWN_TABLE
270299
* h3ndofry
271300
* jflann
272301
* memo33
302+
* nos.17
273303
* Tarkus
274304
* ulisse99
275305

assets/scss/common/_dark.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,3 +583,8 @@ $navbar-dark-active-color: $link-color-dark;
583583
background: $body-overlay-dark;
584584
border: 1px solid $body-overlay-dark;
585585
}
586+
587+
[data-dark-mode] .img-invert-dark {
588+
// Invert black → white, but keep the red unchanged
589+
filter: invert(1) hue-rotate(180deg) saturate(500%);
590+
}

config/_default/params.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ defaultImage = "default-image.png" # put in `./assets/images/`
5151
fillImage = "1270x740 Center" # normalize image size
5252

5353
# Footer
54-
footer = "Copyright (c) 2008-2024 NAM Team"
54+
footer = "Copyright © 2008-2026 NAM Team"
5555

5656
# Feed
57-
copyRight = "Copyright (c) 2008-2024 NAM Team"
57+
copyRight = "Copyright © 2008-2026 NAM Team"
5858

5959
# Alert
6060
alert = false

content/contributors/_index.it.md

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

content/contributors/_index.md

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

content/docs/feature-guides/automata-plugins/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Automata Plugins are also referred as **Automata Controllers**, in the sense
1616

1717
## Automata Options
1818
The Network Addon Mod provides a variety Automata Controllers to choose from, and each of them made from a combination of options which affect automata in a slightly different way. The two base options are:
19-
* **Standard** - Maintains the default Maxis values for the quantity of automata and speed they visually travel over a network. The only exception is for the [RealHighway](/docs/feature-guides/realhighway-mod) network, which has had its speed increased to give more of an accurate representation of the speed the vehicles traveling at on a highway network.
19+
* **Standard** - Maintains the default Maxis values for the quantity of automata and speed they visually travel over a network. The only exception is for the [RealHighway](/docs/feature-guides/realhighway) network, which has had its speed increased to give more of an accurate representation of the speed the vehicles traveling at on a highway network.
2020

2121
* **Radical** - Increases the speed of automata travel and the maximum amount of automata able to be visible at a given time.
2222

95.9 KB
Loading
94.5 KB
Loading
68.2 KB
Loading
86.9 KB
Loading

0 commit comments

Comments
 (0)