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
9d6300ac
Verified
Commit
9d6300ac
authored
2 years ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
don't use system pandoc
parent
ea83b2c1
No related branches found
No related tags found
No related merge requests found
Pipeline
#394447
passed
1 year ago
Stage: build
Stage: deploy
Changes
6
Pipelines
355
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+0
-2
0 additions, 2 deletions
.gitlab-ci.yml
Makefile
+15
-2
15 additions, 2 deletions
Makefile
README.md
+0
-1
0 additions, 1 deletion
README.md
fgs/pandoc.py
+1
-1
1 addition, 1 deletion
fgs/pandoc.py
pandoc
+1
-0
1 addition, 0 deletions
pandoc
with
19 additions
and
6 deletions
.gitignore
+
2
−
0
View file @
9d6300ac
...
...
@@ -2,5 +2,7 @@
/docs-output
/public
/content
/pandoc-*
/venv
__pycache__
*.swp
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
0
−
2
View file @
9d6300ac
...
...
@@ -17,7 +17,6 @@ site:
-
when
:
on_success
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common
-
wget -O pandoc.deb https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb && dpkg -i pandoc.deb && rm --interactive=never pandoc.deb
-
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
...
...
@@ -32,7 +31,6 @@ docs:
stage
:
build
before_script
:
-
apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common
-
wget -O pandoc.deb https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb && dpkg -i pandoc.deb && rm --interactive=never pandoc.deb
-
pip3 install -r requirements.txt
script
:
-
make docs
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
15
−
2
View file @
9d6300ac
...
...
@@ -5,11 +5,11 @@ html: docs build
publish
:
build
.PHONY
:
build
build
:
mathjax
build
:
pandoc
mathjax
cd
fgs
&&
python3 __main__.py
"../content"
"../output"
"../theme"
"../config.json"
"../lang.json"
.PHONY
:
docs
docs
:
mathjax
docs
:
pandoc
mathjax
cd
fgs
&&
python3 __main__.py
"../docs"
"../docs-output"
"../theme"
"../config.json"
"../lang.json"
.PHONY
:
mathjax
...
...
@@ -20,3 +20,16 @@ mathjax:
devserver
:
python
-m
http.server 8000
.PHONY
:
pandoc
pandoc
:
pandoc-2.18
ln
-svf
pandoc-2.18 pandoc
pandoc-2.18
:
[
!
-x
pandoc-2.18/bin/pandoc
]
\
&&
wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-linux-amd64.tar.gz
-O
pandoc.tar.gz
\
&&
tar
xzvf pandoc.tar.gz
\
&&
rm
-v
pandoc.tar.gz
\
||
true
[
-x
pandoc-2.18/bin/pandoc
]
This diff is collapsed.
Click to expand it.
README.md
+
0
−
1
View file @
9d6300ac
...
...
@@ -25,7 +25,6 @@ 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.
Pandoc 2.18 installieren:
`wget -O pandoc.deb https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb && dpkg -i pandoc.deb && rm --interactive=never pandoc.deb`
1.
Metarepo klonen:
`git clone --recurse-submodules git@gitlab.gwdg.de:GAUMI-fginfo/fg-website.git`
1.
`cd fg-website`
1.
Python Pakete installieren:
`pip3 install -r requirements.txt`
...
...
This diff is collapsed.
Click to expand it.
fgs/pandoc.py
+
1
−
1
View file @
9d6300ac
...
...
@@ -27,7 +27,7 @@ def run_pandoc(source, factories, lang, base="markdown", extensions=[], extra_ar
ext_str
=
ext_str
+
flag
+
ext_key
#print(ext_str)
pandoc_bin
=
"
pandoc
"
pandoc_bin
=
"
../pandoc/bin/
pandoc
"
args
=
[
pandoc_bin
,
"
-f
"
,
base
+
ext_str
,
"
-t
"
,
to
]
+
extra_args
p
=
subprocess
.
Popen
(
args
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
out
,
_
=
p
.
communicate
(
source
.
encode
(
'
utf-8
'
,
errors
=
'
strict
'
))
...
...
This diff is collapsed.
Click to expand it.
pandoc
0 → 120000
+
1
−
0
View file @
9d6300ac
pandoc-2.18
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Jake
@j.vondoemming
mentioned in issue
#60
·
1 year ago
mentioned in issue
#60
mentioned in issue #60
Toggle commit list
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