Skip to content

Commit fcf2b4c

Browse files
author
Billy Charlton
committed
update project-site docs
1 parent 3572c00 commit fcf2b4c

1 file changed

Lines changed: 94 additions & 9 deletions

File tree

docs/guide-project-sites.md

Lines changed: 94 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,114 @@ id: guide-project-sites
33
title: Building a project site
44
---
55

6-
You can hide all of the SimWrapper "chrome" such as the folder browser, and provide custom header/footer for each page using CSS. This is useful for building special-purpose tools that might be outward-facing, for example.
6+
You can hide all of the SimWrapper "chrome" such as the folder browser, and provide custom header/footers for each page. This is useful for building special-purpose websites that might be outward-facing, for example.
77

88
## Setting up a project site
99

1010
- Create `simwrapper-config.yaml` in your project folder
11-
- Define the custom footer and header in markdown files
12-
- Use css in a custom CSS file to present as you wish
11+
- Define the top bar, side bar, and config as shown below
12+
- Define any custom footer and header content in markdown files
13+
- Use css in a custom CSS file to modify look
1314

14-
There are two general configuration options:
15+
## simwrapper-config.yaml
1516

16-
**hideLeftBar:** True/false, hides the left-side folder browser panel
17+
**General configuration options:**
1718

18-
**fullWidth:** True/false, true removes the fixed-width centered panel if you want a full-screen experience
19+
|**Field**|**Description**|**Default**|
20+
|---------|---------------|-----------|
21+
|**hideLeftBar** | True/false, hides the left-side SimWrapper configuration panels | true |
22+
| **fullWidth** | True/false, use the full window width | true |
23+
| **theme** | Set to "light" or "dark" if you want to begin with this theme. Note user can always override this with their own config. | unset |
24+
| **header** | Filename containing markdown text to be shown at top of page. Language-specific header can be in header_en or header_de | none |
25+
| **footer** | Filename containing markdown text to be shown at bottom of page. Language-specific footer text can be in footer_en or footer_de | none |
26+
| **css** | Custom CSS for styling. See below. | none |
1927

20-
#### Sample simwrapper-config.yaml file
28+
**topNavBar** - Set logo and links for a top nav bar at the top of the page.
29+
30+
This section defines optional top-left logo and links in the left- and right- sides of the header.
31+
32+
Top-level links can also have one level of drop-down menu children. (Top navbar only)
33+
34+
```yaml
35+
topNavBar:
36+
logo:
37+
image: http://mysite.org/images/logo.png # this should be a full URL
38+
url: https://mysite.org
39+
left:
40+
- text: Scenarios
41+
url: /scenarios
42+
children:
43+
- text: Scenario 1
44+
url: /scenarios/s1
45+
- text: Scenario 2
46+
url: /scenarios/s2
47+
right:
48+
- text: About
49+
url: /about
50+
- text: Help
51+
url: /help
52+
```
53+
54+
**leftNavBar** - Set logo and links for a left-side nav bar
55+
56+
This section defines optional left side links for navigation, in top-, middle- and bottom- sections.
57+
58+
```yaml
59+
leftNavBar:
60+
top:
61+
- image: /images/logo.png
62+
url: /
63+
middle:
64+
- text: Scenario 1
65+
url: /scenarios/s1
66+
- text: Scenario 2
67+
url: /scenarios/s2
68+
bottom:
69+
- text: About
70+
url: /about
71+
- text: Help
72+
url: /help
73+
```
74+
### Example simwrapper-config.yaml
75+
76+
Putting it all together:
2177
2278
```yaml
23-
hideLeftBar: true
79+
hideFilesSection: true
2480
fullWidth: true
81+
theme: dark
2582
header: header.md
83+
footer: footer.md
2684
footer_en: footer.md
2785
footer_de: footer.md
2886
css: custom.css
87+
topNavBar:
88+
logo:
89+
image: http://localhost:8000/viz-tests/project-site/dfg.jpg
90+
left:
91+
- text: Hello
92+
children:
93+
- text: hello2
94+
- text: Fingers
95+
url: /images/dfg.jpg
96+
right:
97+
- text: Hello
98+
url: /images/dfg.jpg
99+
- text: Fingers
100+
url: /images/dfg.jpg
101+
leftNavBar:
102+
top:
103+
- image: http://localhost:8000/viz-tests/project-site/dfg.jpg
104+
middle:
105+
- text: Scenario 1
106+
url: /scenarios/s1
107+
- text: Scenario 2
108+
url: /scenarios/s2
109+
bottom:
110+
- text: About
111+
url: /about
112+
- text: Help
113+
url: /help
29114
```
30115
31116
#### Sample header.md
@@ -50,7 +135,7 @@ css: custom.css
50135

51136
<div class="menu">
52137
VSP / TU Berlin
53-
© 2023 TU Berlin. <a href="https://vsp.berlin/impressum">Impressum</a>
138+
© 2025 TU Berlin. <a href="https://vsp.berlin/impressum">Impressum</a>
54139
</div>
55140
</div>
56141

0 commit comments

Comments
 (0)