Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fixed the link to the feed
· 5e688ceb
Emmanuel Bourg
authored
May 04, 2016
5e688ceb
Replaced the deployment to Alioth with the Gitlab Pages on Salsa
· 5add89b7
Emmanuel Bourg
authored
May 03, 2018
5add89b7
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
5add89b7
image
:
debian:9
pages
:
script
:
-
apt-get update -qq && apt-get install -qq pelican
-
make html
artifacts
:
paths
:
-
output
only
:
-
master
Makefile
View file @
5add89b7
...
...
@@ -8,11 +8,6 @@ OUTPUTDIR=$(BASEDIR)/output
CONFFILE
=
$(
BASEDIR
)
/pelicanconf.py
PUBLISHCONF
=
$(
BASEDIR
)
/publishconf.py
SSH_HOST
=
alioth.debian.org
SSH_PORT
=
22
SSH_USER
=
SSH_TARGET_DIR
=
/srv/home/groups/pkg-java/htdocs/blog
DEBUG
?=
0
ifeq
($(DEBUG), 1)
PELICANOPTS
+=
-D
...
...
@@ -35,7 +30,6 @@ help:
@
echo
' make serve-global [SERVER=0.0.0.0] serve (as root) to
$(
SERVER
)
:80 '
@
echo
' make devserver [PORT=8000] start/restart develop_server.sh '
@
echo
' make stopserver stop local server '
@
echo
' make upload upload the web site via rsync+ssh '
@
echo
' '
@
echo
'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
@
echo
'Set the RELATIVE variable to 1 to enable relative urls '
...
...
@@ -79,13 +73,4 @@ stopserver:
publish
:
$(
PELICAN
)
$(
INPUTDIR
)
-o
$(
OUTPUTDIR
)
-s
$(
PUBLISHCONF
)
$(
PELICANOPTS
)
ssh_upload
:
publish
scp
-P
$(
SSH_PORT
)
-r
$(
OUTPUTDIR
)
/
*
$(
SSH_USER
)
@
$(
SSH_HOST
)
:
$(
SSH_TARGET_DIR
)
rsync_upload
:
publish
rsync
-e
"ssh -p
$(
SSH_PORT
)
"
-P
-rvzc
--delete
$(
OUTPUTDIR
)
/
$(
SSH_HOST
)
:
$(
SSH_TARGET_DIR
)
--cvs-exclude
--perms
--chmod
=
g+w
ssh
$(
SSH_HOST
)
'chgrp --quiet -R pkg-java
$(
SSH_TARGET_DIR
)
'
upload
:
rsync_upload
.PHONY
:
html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload upload
.PHONY
:
html help clean regenerate serve serve-global devserver publish
README.txt
View file @
5add89b7
...
...
@@ -15,10 +15,14 @@ Updating the blog
2. Edit the content of the file
3. Push the changes to the Git repository on
Alioth
3. Push the changes to the Git repository on
Salsa
4. Ask the other team members to review the article
5. Change the status of the article from 'draft' to 'published'
6. Publish the site with 'make upload'
6. Run 'make html' to generate the pages
7. Commit and push the final changes to Salsa
8. Wait for the Gitlab job to regenerate the site
theme-bits/templates/base.html
View file @
5add89b7
...
...
@@ -47,9 +47,9 @@
{% endif %}
<li><a
href=
"{{ SITEURL }}/archives.html"
>
Archives
</a>
<li><a
href=
"{{ FEED_DOMAIN }}/{{ FEED_ATOM }}"
rel=
"alternate"
>
Atom feed
</a></li>
<li><a
href=
"{{ FEED_DOMAIN }}/{{ FEED_
ALL_
ATOM }}"
rel=
"alternate"
>
Atom feed
</a></li>
{% if FEED_RSS %}
<li><a
href=
"{{ FEED_DOMAIN }}/{{ FEED_RSS }}"
rel=
"alternate"
>
RSS feed
</a></li>
<li><a
href=
"{{ FEED_DOMAIN }}/{{ FEED_
ALL_
RSS }}"
rel=
"alternate"
>
RSS feed
</a></li>
{% endif %}
</ul>
</div>
...
...