Skip to content

Commit 0478e65

Browse files
authored
Restructure website to use npm workspaces (eclipse-langium#46)
1 parent f54b1f2 commit 0478e65

8 files changed

+289
-1724
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/public/
2-
/hugo/static/css/
32
/hugo/resources/
43
node_modules/
54
.DS_Store

.gitpod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
- init: npm install
3-
command: npm run start:gitpod
3+
command: npm run watch:gitpod
44
ports:
55
- port: 1313
66
onOpen: open-browser

hugo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ enableRobotsTXT = true
4141
# geekdocPrivacyPolicy = "https://www.typefox.io/imprint-privacy/#privacy"
4242

4343
geekdocRepo = "https://github.com/langium/langium-website"
44-
geekdocEditPath = "blob/main/content"
44+
geekdocEditPath = "blob/main/hugo/content"
4545

4646
# (Optional, default true) Add an anchor link to headlines.
4747
#geekdocAnchor = true

hugo/package.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "langium-website-hugo",
3+
"version": "0.0.0",
4+
"description": "Source code for langium.org",
5+
"author": "TypeFox",
6+
"license": "MIT",
7+
"private": true,
8+
"scripts": {
9+
"build": "cross-env NODE_ENV=production hugo --config ./config.toml -b / -d ../public --gc --minify ",
10+
"watch": "cross-env NODE_ENV=development hugo server --config ./config.toml -D -b localhost:1313 -d ../public --appendPort=false",
11+
"watch:gitpod": "cross-env NODE_ENV=development hugo server --config ./config.toml -D -b `gp url 1313` -d ../public --appendPort=false"
12+
}
13+
}

0 commit comments

Comments
 (0)