Compare commits
6 Commits
DEV
...
1f34a326ad
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f34a326ad | |||
| d6e575ea45 | |||
| 438251f75d | |||
| b720e17c61 | |||
| 02dbc94f31 | |||
| dd92f1a77e |
30
.drone.yml
Normal file
30
.drone.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
kind: pipeline
|
||||
name: Opytex 2020-2021
|
||||
type: docker
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- 2020-2021
|
||||
|
||||
steps:
|
||||
- name: Deploy
|
||||
image: python:3.8-alpine
|
||||
commands:
|
||||
- apk add --no-cache openssh-client ca-certificates bash rsync git imagemagick-dev imagemagick
|
||||
- git submodule init
|
||||
- git submodule update
|
||||
- git clone https://git.opytex.org/lafrite/2020-2021.git content
|
||||
- pip install --no-cache-dir -r requirements.txt
|
||||
- export MAGICK_HOME=/usr
|
||||
- pelican ./content/ -o output -s publishconf.py --relative-urls
|
||||
- eval `ssh-agent -s`
|
||||
- echo "$SSH_KEY" | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||
- ssh sshcontent@91.121.90.228 'mkdir -p ~/opytex.org/www/enseignements/2020-2021/'
|
||||
- rsync -rv --delete -e "ssh -p 22" ./output/ sshcontent@91.121.90.228:~/opytex.org/www/enseignements/2020-2021/ --checksum
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: sshcontent-key
|
||||
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ content
|
||||
__pycache__
|
||||
*.pid
|
||||
venv/
|
||||
.vim/
|
||||
|
||||
@@ -10,9 +10,8 @@ MENUITEMS = [
|
||||
#("Dernières modifications", SITEURL+"blog_index.html"),
|
||||
("Accueil", "/"),
|
||||
("Contenus de cours", "/pages/tout-sur-mes-cours.html"),
|
||||
('blog', '/blog_index.html'),
|
||||
('Opytex', "/opytex/"),
|
||||
("pyMath", "/pymath/"),
|
||||
('Blog', '/blog_index.html'),
|
||||
('Informatique', "/pages/projets-informatiques.html"),
|
||||
('À propos', "/pages/a-propos.html"),
|
||||
]
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@ from globalconf import *
|
||||
AUTHOR = 'Benjamin Bertrand'
|
||||
SITENAME = 'OpyTex'
|
||||
SITETITLE = 'OpyTex'
|
||||
SITESUBTITLE = "DEV"
|
||||
#SITEURL = 'https://0.0.0.0:8000/enseignements/DEV'
|
||||
SITESUBTITLE = "2020-2021"
|
||||
SITEURL = ''
|
||||
|
||||
CC_LICENSE_COMMERCIAL = True
|
||||
@@ -43,7 +42,7 @@ PLUGINS = [
|
||||
"pelican-page-hierarchy",
|
||||
"always_modified",
|
||||
"tag_cloud",
|
||||
# 'pdf-img',
|
||||
'pdf-img',
|
||||
]
|
||||
|
||||
ALWAYS_MODIFIED = True
|
||||
|
||||
@@ -11,7 +11,7 @@ sys.path.append(os.curdir)
|
||||
from pelicanconf import *
|
||||
|
||||
# If your site is available via HTTPS, make sure SITEURL begins with https://
|
||||
SITEURL = 'n'
|
||||
SITEURL = 'https://opytex.org/enseignements/2020-2021/'
|
||||
RELATIVE_URLS = False
|
||||
|
||||
FEED_ALL_ATOM = 'feeds/all.atom.xml'
|
||||
@@ -22,4 +22,4 @@ DELETE_OUTPUT_DIRECTORY = True
|
||||
# Following items are often useful when publishing
|
||||
|
||||
#DISQUS_SITENAME = ""
|
||||
#GOOGLE_ANALYTICS = ""
|
||||
#GOOGLE_ANALYTICS = ""
|
||||
|
||||
15
requirements.txt
Normal file
15
requirements.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
beautifulsoup4==4.9.1
|
||||
blinker==1.4
|
||||
bs4==0.0.1
|
||||
docutils==0.16
|
||||
feedgenerator==1.9.1
|
||||
Jinja2==2.11.2
|
||||
MarkupSafe==1.1.1
|
||||
pelican==4.2.0
|
||||
Pygments==2.6.1
|
||||
python-dateutil==2.8.1
|
||||
pytz==2020.1
|
||||
six==1.15.0
|
||||
soupsieve==2.0.1
|
||||
Unidecode==1.1.1
|
||||
Wand==0.6.2
|
||||
Reference in New Issue
Block a user