Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simbricks-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SimBricks
simbricks-website
Commits
399208e9
Verified
Commit
399208e9
authored
4 months ago
by
Jakob Görgen
Browse files
Options
Downloads
Patches
Plain Diff
code example: added scalability + some css fixes
parent
b043e174
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#109954
passed
4 months ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_data/code-example.yml
+18
-1
18 additions, 1 deletion
_data/code-example.yml
_layouts/home.html
+9
-6
9 additions, 6 deletions
_layouts/home.html
_sass/home.scss
+22
-22
22 additions, 22 deletions
_sass/home.scss
with
49 additions
and
29 deletions
_data/code-example.yml
+
18
−
1
View file @
399208e9
...
...
@@ -10,6 +10,23 @@ code-example:
def run_cmds(self, node: NodeConfig) -> tp.List[str]:
return ['memcached -u root -t 1 -c 4096']
```
-
ident
:
scalable
feature
:
name
:
Scalable
icon
:
scalable-icon
description
:
SimBricks, is the most scalable platform for full-system virtual prototyping, believe me.
code
:
|
```python
am_clients = 255
for ip in range(am_clients):
client_config = CorundumLinuxNode()
client_config.ip = f'10.0.0.{ip}'
client_config.app = PingClient(
server_ip=f'10.0.0.{am_clients}', count=10
)
client = QemuHost(client_config)
e.add_host(client)
```
-
ident
:
full-system
feature
:
name
:
Full-System
...
...
@@ -18,7 +35,7 @@ code-example:
code
:
|
```python
server_config = I40eLinuxNode()
server_config.ip = '10.0.0.
2
'
server_config.ip =
f
'10.0.0.
{am_clients}
'
server_config.app = IdleHost()
server = Gem5Host(server_config)
server_nic = I40eNIC()
...
...
This diff is collapsed.
Click to expand it.
_layouts/home.html
+
9
−
6
View file @
399208e9
...
...
@@ -92,17 +92,15 @@ layout: base
<div
class=
"code-section"
>
{% for cex in site.data.code-example.code-example %}
<div
class=
"code"
id=
"{{ cex.ident }}"
>
<pre>
{%- capture code -%}{{ cex.code }}{%- endcapture -%}
{{ code | markdownify }}
</pre>
{%- capture code -%}{{ cex.code }}{%- endcapture -%}
{{ code | markdownify }}
</div>
{% endfor %}
</div>
<div
class=
"feature-section"
>
{% for cex in site.data.code-example.code-example %}
<div
class=
"feature"
id=
"{{ cex.ident }}"
>
<
h4
class=
"{{ cex.feature.icon }}"
>
{{ cex.feature.name }}
</
h4
>
<
div
class=
"{{ cex.feature.icon }}"
>
{{ cex.feature.name }}
</
div
>
<p>
{{ cex.feature.description }}
</p>
</div>
{% endfor %}
...
...
@@ -135,7 +133,12 @@ layout: base
function
set_highlight_all_except_id
(
id
,
value
)
{
codeElements
.
forEach
(
code
=>
{
if
(
code
.
id
!=
id
)
{
c
=
$
(
$
(
`#
${
code
.
id
}
`
)[
0
]).
css
(
"
opacity
"
,
value
);
$
(
$
(
`#
${
code
.
id
}
.code`
)[
0
]).
css
(
"
opacity
"
,
value
);
}
});
featureElements
.
forEach
(
feature
=>
{
if
(
feature
.
id
!=
id
)
{
$
(
$
(
`#
${
feature
.
id
}
.feature`
)[
0
]).
css
(
"
opacity
"
,
value
);
}
});
}
...
...
This diff is collapsed.
Click to expand it.
_sass/home.scss
+
22
−
22
View file @
399208e9
...
...
@@ -80,6 +80,7 @@ body.home {
.learnmore
{
text-align
:
center
;
font-weight
:
bold
;
padding
:
20px
;
h3
,
a
{
...
...
@@ -96,22 +97,22 @@ body.home {
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
10px
;
margin-bottom
:
10px
;
gap
:
20px
;
height
:
fit-content
;
.code-section
{
display
:
flex
;
flex-direction
:
column
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
width
:
fit-content
;
width
:
calc
(
$width
/
1
.6
);
max-width
:
100%
;
height
:
fit-content
;
border-radius
:
$border-radius
;
color
:
black
;
background-color
:
$col-os-grey_l2
;
overflow
:
scroll
;
max-width
:
100%
;
.code
{
opacity
:
1
;
...
...
@@ -120,60 +121,59 @@ body.home {
border-radius
:
$border-radius
;
padding-left
:
10px
;
padding-right
:
10px
;
.pre
{
opacity
:
0
;
}
}
}
.feature-section
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
height
:
fit-content
;
align-items
:
center
;
max-width
:
100%
;
.feature
{
display
:
flex
;
flex-direction
:
column
;
color
:
black
;
font-size
:
xx-large
;
padding
:
20px
;
padding
:
10px
;
border-radius
:
$border-radius
;
border
:
solid
2px
;
border-color
:
white
;
width
:
330px
;
max-width
:
90%
;
height
:
fit-content
;
opacity
:
1
;
h4
{
div
{
font-size
:
x-large
;
font-weight
:
bold
;
height
:
fit-content
;
}
p
{
font-size
:
large
;
height
:
fit-content
;
}
h4
:
:
before
,
h4
::
after
{
div
:
:
before
,
div
::
after
{
content
:
""
;
text-align
:
center
;
font-family
:
$font-fa
;
font-weight
:
bold
;
font-size
:
x-large
;
color
:
$col-sb-blu
;
// $col-sb-org;
padding-bottom
:
-0
.1rem
;
padding-left
:
1rem
;
padding-right
:
1rem
;
height
:
fit-content
;
}
h4
.
full-system-icon
:
:
before
{
div
.
full-system-icon
:
:
before
{
content
:
"\f6ff"
;
}
h4
.
extensible-icon
:
:
before
{
div
.
extensible-icon
:
:
before
{
content
:
"\f12e"
;
}
div
.
scalable-icon
:
:
before
{
content
:
"\e4b7"
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment