Skip to content

Commit 21288e7

Browse files
committed
Template improvements and new pages.
1 parent 36988f5 commit 21288e7

16 files changed

Lines changed: 702 additions & 282 deletions

eleventy.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export default async function(eleventyConfig)
44
eleventyConfig.setIncludesDirectory("_includes");
55
eleventyConfig.addPassthroughCopy("src/css");
66
eleventyConfig.addPassthroughCopy("src/img");
7-
eleventyConfig.addPassthroughCopy("src/fonts");
7+
eleventyConfig.addPassthroughCopy("src/js");
88
};

src/_includes/base.njk

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>{{ title }} | BIMROCKET</title>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="description" content="BIMROCKET - The Open BIM Platform">
8+
<meta name="keywords" content="BIM, THREEJS, OrientDB, MongoDB">
9+
10+
<link rel="stylesheet" href="/css/styles.css">
11+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
12+
<link rel="preconnect" href="https://fonts.googleapis.com" />
13+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
14+
<link href="https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;family=Montserrat:ital,wght@0,100..900;1,100..900&amp;family=Open+Sans:ital,wght@0,300..800;1,300..800&amp;family=Raleway:ital,wght@0,100..900;1,100..900&amp;family=Work+Sans:ital,wght@0,100..900;1,100..900&amp;display=swap" rel="stylesheet" />
15+
</head>
16+
<body>
17+
<header>
18+
<a href="/"><h1><img src="/img/bimrocket.svg" alt="bimrocket" class="logo"></h1></a>
19+
<nav>
20+
<button class="image-button menu-toggle"><span class="material-symbols-outlined">menu</span></button>
21+
<ul id="menu">
22+
<li><a href="/">Home</a></li>
23+
<li class="submenu">
24+
<a href="#">Product <span class="material-symbols-outlined">keyboard_arrow_down</span></a>
25+
<ul>
26+
<li><a href="/features">Features</a></li>
27+
<li><a href="/architecture">Architecture</a></li>
28+
<li><a href="/license">License</a></li>
29+
</ul>
30+
</li>
31+
<li class="submenu">
32+
<a href="#">Documentation <span class="material-symbols-outlined">keyboard_arrow_down</span></a>
33+
<ul>
34+
<li><a href="/install">Install</a></li>
35+
<li><a href="/configuration">Configuration</a></li>
36+
<li><a href="/user_guides">User guides</a></li>
37+
</ul>
38+
</li>
39+
<li><a href="/download">Download</a></li>
40+
</ul>
41+
</nav>
42+
</header>
43+
44+
<main>
45+
<div class="content">
46+
<h2><span class="material-symbols-outlined">{{ icon }}</span> {{ title }}</h2>
47+
48+
{{ content | safe }}
49+
</div>
50+
</main>
51+
52+
<footer>
53+
<p><a href="/">© 2025 BIMROCKET</a></p>
54+
<a href="https://github.com/bimrocket/bimrocket" class="github"><img src="/img/github.svg" alt="github" /> GitHub</a>
55+
</footer>
56+
57+
<button id="up-button" title="Anar amunt">
58+
<span class="material-symbols-outlined">arrow_upward</span>
59+
</button>
60+
61+
<script src="/js/main.js">
62+
</script>
63+
64+
</body>
65+
</html>

src/_includes/template.njk

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

src/architecture.njk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Architecture
3+
layout: base.njk
4+
icon: dashboard_2
5+
---
6+
7+
<a href="/img/architecture.png" title="view image">
8+
<img src="/img/architecture.png" alt="architecuture" style="max-width: 100%">
9+
</a>

src/configuration.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
---
2+
title: Configuration
3+
layout: base.njk
4+
icon: settings
5+
---
6+
7+
Bimrocket server configuration is managed with the [smallrye-config](https://smallrye.io/smallrye-config) library that follows the [microprofile-config](https://microprofile.io/specifications/microprofile-config-2/) specification. This library can obtain configuration parameters from multiple sources at the same time (environment variables, JVM properties, external files, etc.).
8+
By default, bimrocket defines these parameters in a yaml file like this:
9+
10+
```yaml
11+
# bimrocket-server config
12+
13+
# service config
14+
services:
15+
16+
# security service
17+
security:
18+
adminPassword: bimrocket
19+
passwordPattern: '^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=_\-\.])(?=\S+$).{8,}$'
20+
authorizationCacheTimeout: 300
21+
userCacheTimeout: 300
22+
roleCacheTimeout: 300
23+
ldap:
24+
enabled: false
25+
url: ldap://dc1.santfeliu.local
26+
domain: santfeliu.local
27+
searchBase: DC=santfeliu,DC=local
28+
adminUsername: admin
29+
adminPassword: changeit
30+
store:
31+
class: org.bimrocket.service.security.store.SecurityOrientDaoStore
32+
orient:
33+
database: bimdb
34+
35+
# file service
36+
file:
37+
store:
38+
class: org.bimrocket.service.file.store.filesystem.FileSystemFileStore
39+
filesystem:
40+
directory: ${BIMROCKET_DATA_PATH}/cloudfs
41+
folders:
42+
- models
43+
- scripts
44+
- reports
45+
- ifc_snapshots
46+
47+
# bcf service
48+
bcf:
49+
projectTemplate:
50+
store:
51+
class: org.bimrocket.service.bcf.store.BcfOrientDaoStore
52+
orient:
53+
database: bimdb
54+
mail:
55+
createTopic:
56+
subject: '#{project.name}##{index}: #{title} [#{priority}]'
57+
body: '#{description}'
58+
59+
# ifcdb service
60+
ifcdb:
61+
schemas:
62+
- IFC2X3
63+
- IFC4
64+
maxFileSizeMb: 200
65+
store:
66+
class: org.bimrocket.service.ifcdb.store.orient.OrientIfcStore
67+
68+
# task service
69+
task:
70+
taskCacheSize: 10
71+
store:
72+
class: org.bimrocket.service.task.store.orient.TaskOrientDaoStore
73+
orient:
74+
database: bimdb
75+
76+
# print service
77+
print:
78+
directory: ${BIMROCKET_DATA_PATH}/printsvc
79+
title: 'Bimrocket print'
80+
creator: 'Bimrocket PrintService'
81+
82+
# mail service
83+
mail:
84+
enabled: false
85+
host: helios
86+
port: 25
87+
startTls: false
88+
auth: false
89+
username: none
90+
password: none
91+
from: 'admin@bimrocket.org'
92+
contentType: 'text/plain;charset=ISO-8859-1'
93+
94+
# proxy service
95+
proxy:
96+
validUrls:
97+
- https://api.openai.com/
98+
- https://api.bsdd.buildingsmart.org/
99+
aliases:
100+
chatgpt:
101+
url: https://api.openai.com/v1/chat/completions
102+
ipFilter: ''
103+
authorization: changeit
104+
105+
# database config
106+
databases:
107+
bimdb:
108+
url: embedded:${BIMROCKET_DATA_PATH}/db/bimdb
109+
username: root
110+
password: orientdb
111+
IFC2X3:
112+
url: embedded:${BIMROCKET_DATA_PATH}/db/IFC2X3
113+
username: root
114+
password: orientdb
115+
IFC4:
116+
url: embedded:${BIMROCKET_DATA_PATH}/db/IFC4
117+
username: root
118+
password: orientdb
119+
```
120+
During server startup, a yaml configuration file is created (if not exists) in this path: `${BIMROCKET_DATA_PATH}/bimrocket-server.yaml`
121+
where `${BIMROCKET_DATA_PATH}` points to `${user.home}/bimrocket` by default.
122+
Edit this yaml file to change the parameters you need and restart the bimrocket server for the parameters to take effect.
123+
124+
The value of `BIMROCKET_DATA_PATH` can be changed via an environment variable or a JVM property:
125+
- Environment variable: `BIMROCKET_DATA_PATH=<my_location>`
126+
- JVM property: In tomcat installations, edit `<TOMCAT_HOME>/conf/catalina.properties` and add this line: `BIMROCKET_DATA_PATH=<my_location>`
127+
128+
By default, OrientDB embedded databases are created automaticaly in `${BIMROCKET_DATA_PATH}/db`.\
129+
You can change the database urls in `bimrocket-server.yaml` file to create the databases in a remote OrientDB server.
130+
131+
The default password of the `admin` user is `bimrocket`.
132+
It can be changed through the `services.security.adminPassword` property of the `bimrocket-server.yaml` file.

0 commit comments

Comments
 (0)