Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fachgruppenwebseite Metadaten
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fginfo
Fachgruppenwebseite Metadaten
Commits
a9fbf0ef
Verified
Commit
a9fbf0ef
authored
6 months ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
updated Makefile
parent
70a927f3
No related branches found
No related tags found
No related merge requests found
Pipeline
#512881
passed
5 months ago
Stage: build
Stage: deploy
Changes
3
Pipelines
41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
Makefile
+15
-6
15 additions, 6 deletions
Makefile
README.md
+2
-3
2 additions, 3 deletions
README.md
with
19 additions
and
11 deletions
.gitlab-ci.yml
+
2
−
2
View file @
a9fbf0ef
...
...
@@ -16,7 +16,7 @@ site:
CHECKOUT_BRANCH
:
$UPSTREAM_BRANCH
-
when
:
on_success
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common
-
apt-get update && apt-get install -y --no-install-recommends python3-pip python3
python3-venv
make git wget software-properties-common
-
pip3 install -r requirements.txt
-
"
echo
\"
CHECKOUT_BRANCH:
$CHECKOUT_BRANCH
UPSTREAM_BRANCH:
$UPSTREAM_BRANCH
\"
"
-
git clone https://gitlab.gwdg.de/GAUMI-fginfo/fg-website-data.git content --branch $CHECKOUT_BRANCH
...
...
@@ -30,7 +30,7 @@ site:
docs
:
stage
:
build
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common
-
apt-get update && apt-get install -y --no-install-recommends python3-pip python3
python3-venv
make git wget software-properties-common
-
pip3 install -r requirements.txt
script
:
-
make docs
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
15
−
6
View file @
a9fbf0ef
...
...
@@ -5,20 +5,26 @@ html: docs build
publish
:
build
.PHONY
:
build
build
:
pandoc mathjax
cd
fgs
&&
python3 __main__.py
"../content"
"../output"
"../theme"
"../config.json"
"../lang.json"
build
:
venv/bin/activate
pandoc mathjax
.
venv/bin/activate
&&
cd
fgs
&&
python3 __main__.py
"../content"
"../output"
"../theme"
"../config.json"
"../lang.json"
.PHONY
:
docs
docs
:
pandoc mathjax
cd
fgs
&&
python3 __main__.py
"../docs"
"../docs-output"
"../theme"
"../config.json"
"../lang.json"
docs
:
venv/bin/activate
pandoc mathjax
.
venv/bin/activate
&&
cd
fgs
&&
python3 __main__.py
"../docs"
"../docs-output"
"../theme"
"../config.json"
"../lang.json"
.PHONY
:
mathjax
mathjax
:
git submodule init
git submodule update
[
!
-d
output/mathjax
]
&&
mkdir
-p
output
&&
cp
-vr
mathjax/es5 output/mathjax
||
true
.PHONY
:
devserver
devserver
:
python
-m
http.server 8000
devserver
:
venv/bin/activate
.
venv/bin/activate
&&
python3
-m
http.server 8000
.PHONY
:
clean
clean
:
$(
RM
)
-r
venv output
.PHONY
:
pandoc
pandoc
:
pandoc-2.18
...
...
@@ -32,4 +38,7 @@ pandoc-2.18:
||
true
[
-x
pandoc-2.18/bin/pandoc
]
venv/bin/activate
:
requirements.txt
python3
-m
venv venv
.
venv/bin/activate
&&
pip3
install
-r
requirements.txt
This diff is collapsed.
Click to expand it.
README.md
+
2
−
3
View file @
a9fbf0ef
...
...
@@ -24,10 +24,9 @@ Um an der Seite zu arbeiten ist es meistens sinnvoll diese auch lokal zu hosten.
Die folgenden Befehle sind für Ubuntu 20.04 LTS (Focal) gedacht.
1.
Pakete installieren:
`apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common`
1.
Metarepo klonen:
`git clone
--recurse-submodules
git@gitlab.gwdg.de:GAUMI-fginfo/fg-website.git`
1.
Pakete installieren:
`apt-get update && apt-get install -y --no-install-recommends python3-pip python3
python3-venv
make git wget software-properties-common`
1.
Metarepo klonen:
`git clone git@gitlab.gwdg.de:GAUMI-fginfo/fg-website.git`
1.
`cd fg-website`
1.
Python Pakete installieren:
`pip3 install -r requirements.txt`
1.
Inhaltsrepo klonen:
`git clone git@gitlab.gwdg.de:GAUMI-fginfo/fg-website-data.git content`
### (Automatisch) Bauen und Hosten
...
...
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